adjust-icon

Admob SDK integration

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.

Before you begin

  1. Configure the Adjust SDK and integrate it in your app.
  2. Configure impression-level ad revenue (ILAR) in Admob. See Google’s documentation for instructions.

Example

this.rewardedAd.OnPaidEvent += this.HandleAdPaidEvent;
public void HandleAdPaidEvent(object sender, AdValueEventArgs args)
{
// for more information, please check AdMob official docs at:
// https://developers.google.com/admob/unity/impression-level-ad-revenue
AdValue adValue = args.AdValue;
AdapterResponseInfo loadedAdapterResponseInfo = rewardedAd.GetResponseInfo().GetLoadedAdapterResponseInfo();
// send ad revenue info to Adjust
AdjustAdRevenue adRevenue = new AdjustAdRevenue("admob_sdk");
adRevenue.SetRevenue(adValue.Value / 1000000f, adValue.CurrencyCode);
adRevenue.AdRevenueNetwork = loadedAdapterResponseInfo.AdSourceName;
Adjust.TrackAdRevenue(adRevenue);
}