Custom events let you set up waterfall mediation for an ad source that isn't a supported ad source. First, you'll need to implement a custom event adapter for the ad source you want to integrate. Use the instructions for Android or iOS. Then, add the custom event in your mediation group using the following steps:
- Sign in to your AdMob account at https://apps.admob.com.
- Click Mediation in the sidebar.
- Click the name of the mediation group.
- Click Add custom event in the Waterfall ad sources table.
- Enter a descriptive label for the event.
- Enter a manual eCPM to use for this custom event. The eCPM will be used to dynamically position the event in the mediation chain where it will compete with other ad sources to fill ad requests.
- Click Continue.
- Enter a class name (required) and a parameter (optional) for each ad unit. Typically, the optional parameter contains an identifier that will be used by the custom event to load ads.
Note: If your class is implemented in Swift, you need to prefix the class name with the name of its app/framework module (for example,
appName.className
). - Click Done.
- Click Save. The mediation group will be saved.
- If you haven't already implemented the custom event in your app's code, do so now using the same name, classes, and parameters you used to create it in AdMob.