If you want to measure ad revenue with the AdMob SDK, you can use the SDK-to-SDK integration to pass this information to Adjust’s servers.
If you have any questions about ad revenue measurement with AdMob, please contact your dedicated account manager or send an email to support@adjust.com .
Before you begin
Configure the Adjust SDK and integrate it in your app .
Configure impression-level ad revenue (ILAR) in Admob. See Google’s documentation for instructions .
Example
- ( void )requestRewardedAd {
__weak ViewController * weakSelf = self ;
GADRequest * request = [GADRequest request ];
loadWithAdUnitID: @"ad unit ID"
completionHandler: ^ (GADRewardedAd * ad, NSError * error) {
self .rewardedAd.paidEventHandler = ^void (GADAdValue * _Nonnull value) {
ViewController * strongSelf = weakSelf;
// for more information, please check AdMob official docs at:
// https://developers.google.com/admob/ios/impression-level-ad-revenue
GADAdNetworkResponseInfo * loadedAdNetworkResponseInfo = strongSelf.rewardedAd.responseInfo.loadedAdNetworkResponseInfo;
// send ad revenue info to Adjust
ADJAdRevenue * adRevenue = [[ADJAdRevenue alloc ] initWithSource: ADJAdRevenueSourceAdMob];
[adRevenue setRevenue: value.value currency: value.currencyCode];
[adRevenue setAdRevenueNetwork: loadedAdNetworkResponseInfo.adSourceName]
[Adjust trackAdRevenue: adRevenue];