Integrate with AdMob
If you already have AdMob ads serving in your app, but want to integrate AwesomeAds as well, without having to directly use the Android Publisher SDK, you can follow the steps below:
Add the AdMob plugin
You can either change your module’s
build.gradle file (usually the file under MyApplication/app/) to the following format:
Setup AdMob Mediation Groups
Login to the AdMob dashboard using your preferred account.
From here forward the tutorial assumes you have an Android app with three ad units setup in AdMob; one banner, one interstitial ad and one rewarded video ad:
Then, in the
Mediation menu, create a new Mediation Group:
Add Custom Event as an Ad Source:
and add your app’s banner
Ad Unit as target:
Then, in the
Ad Sources panel, add a new
and, as well, customise it:
Notice that the custom event class names required by AdMob are:
- for Banner Ads:
- for Interstitial Ads:
- for Rewarded Video Ads:
You should now have at least two different
Finally, save your changes. This will register
BannerCustomEvent as a custom event running on your ad units from now on. You’ll have to repeat the same process for interstitial(
SAAdMobInterstitialCustomEvent) and rewarded video ads(
Once the previous steps are done, you can add AdMob banners, interstitials and rewarded video ads just as you normally would:
Since the previously created custom events will run on these ads, and AwesomeAds is integrated alongside the AdMob plugin, you should start seeing ads playing.
Customise the Experience
Additionally, you can customize the experience of each ad unit.
- For banners:
- For interstitials:
- For rewarded video:
These parameters will be passed by the AdMob SDK to the AwesomeAds Plugin so that ads will display the way you want them to.