Links

Banner Ad

This article will go through all the steps required to display banner ads in your application through AdMob mediation.
Banner Ads are small or medium rectangle ads that have specific dimensions and occupy a certain position of the screen width and they can be freely integrated within the content of the app.
The banner comes with two predefined dimensions:
  • small banner (320x50)
  • MPU (300x250)

Requirements

You have registered an application on your Ogury Dashboard. If not, please refer to the Getting Started section before the next steps.

Step 1: Create an Banner Ad ad unit

  • Go to your Asset list in the Ogury Dashboard and select your Asset.
  • Click on the Monetization settings in the left-menu.
  • Copy the Ad unit id as you will need this information later to finish the integration.
In all the following code samples, we will refer to this Ad unit id by using the string AD_UNIT_ID.
Ogury Banner Ad ad units are designed to display only the size that they have been created with.
When loading your AdMob Banner Ad, please make sure to load using the size matching the size of your Ogury ad unit:
  • For a small banner, use kGADAdSizeBanner.
  • For a MPU, usekGADAdSizeMediumRectangle.

Step 2: Create Mediation Group

Follow the AdMob guide to create a mediation group for your Banner ad unit.

Step 3: Add Ogury in your Mediation Group

In order to display Ogury Opt-in Video Ad through AdMob mediation, you need to configure a Custom Event for Ogury in your mediation group.
  • Go on the Mediation Group page, and click on the mediation group you want.
  • Click on ADD CUSTOM EVENT, in the Waterfall section
  • Enter Ogury as Label, set an eCPM and click on CONTINUE.
For eCPM, you need to set the value that you agreed with your Ogury Account Manager.
  • Next to the name of your Banner ad unit, enter the following configuration and click on DONE:
Class Name:
OguryBannerCustomEvents
Parameter:
{"assetKey":"ASSET_KEY","adUnitId":"AD_UNIT_ID"}
  • Click on SAVE.
If you wish to set up multi-placements for Ogury, you can add Ogury multiple times as an ad source / custom event inside your mediation group. Each time, you should make sure to use the corresponding Ad unit ids from Ogury dashboard, with the agreed eCPM value.

Step 4: Test your integration

As our algorithm works with personified targeting, you may not receive any ad while testing your application.
You can test your integration by adding the suffix _test to your interstitial ad unit id, for more details go to Test your implementation page.
Note that if you have just registered your application in the Ogury Dashboard, it will take around 15 minutes until you can successfully load an ad.