Google AdMob mediation
You can connect to the Boost via Google AdMob mediation. To add the Boost to Google AdMob mediation, follow these steps:
- Integrate Google AdMob mediation.
- Connect the adapter for the Yandex Mobile Ads SDK.
- Create an AdUnitId for your selected ad type in the Boost interface.
- Add the Boost in the Google AdMob web interface.
- Sync the ad unit settings between the two web interfaces.
Connecting an adapter for the Yandex Mobile Ads SDK
The YandexMobileAdsAdMobAdapters library has been adapted to work with the CocoaPods dependency management system and support static integration.
To connect the library, add the dependency to the project's Podfile:
pod 'YandexMobileAdsAdMobAdapters', '8.0.0.0'
Adding the Boost in the Google AdMob mediation web interface
For each ad placement (AdMob AdUnitId) in Google AdMob mediation, create a corresponding ad unit (Ad Unit ID) in the Boost interface.
Next, add the Boost in the Google AdMob mediation web interface:
1. Create a Google AdMob ad unit
- Go to your app section.
- Create an ad unit for the selected ad format and configure the ad placement parameters (for example, its name).
- After creating the ad unit, save its ID.
2. Create a Yandex ad unit
Guide for creating an ad unit in the Boost interface.
3. Set up Google AdMob mediation
-
Go to the Yandex Mediation section and click Create mediation group.
-
Select a platform.
-
Set the mediation group parameters, such as name and region, then proceed to adding the ad placement.
-
Select your app, select the ad unit you created, and add it. The ad unit you added should appear in the Ad Units section.
-
The Boost can be added to Google AdMob mediation only as a custom event. Click Add Custom Event to add a custom event. Set up your custom event for each adUnitId created in the Boost interface.
-
Configure a custom event for accessing the Boost by setting the event name and eCPM floor. The eCPM floor value must match the threshold you set for the ad placement in the Boost interface.
-
Set up mapping of the custom event to the Boost adapter:
- Set the mapping name.
- Set an adapter class name that corresponds to your selected ad format.
- Set the event parameters.
Each ad format has a corresponding Boost adapter class:
YMAAdMobCustomEventBannerfor banner ads.YMAAdMobCustomEventInterstitialfor interstitial ads.YMAAdMobCustomEventRewardedfor rewarded ads.YMAAdMobCustomEventNativefor native ads.
Under Parameter, configure the custom event settings in JSON format. Make sure to set the Ad Unit ID for your selected ad placement.
-
Save the changes.