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 YOUR_OGURY_AD_UNIT_ID.
Ogury Banner Ad ad units are designed to display only the size that they have been created with.
When loading your Xandr Banner Ad, please make sure to load using an Ad size matching the size of your Ogury ad unit:
For a small banner, set 320p as the width and 50 as the height
For a MPU, set 320p as the width and 250 as the height
Step 2: Create a Mediation Network
Go to the Xandr dashboard.
Select Mediation > Networks from the navigation menu.
Click on + New to open the Add a network dialog.
Select Custom Mobile Network.
Type Ogury in the Network Name field before saving.
Step 3: Create a Mobile Network Bid
In order to display Ogury Banner Ad through Xandr mediation, you need to configure a Custom Mobile Network Bid for Ogury.
Select the Ogury Network in the dropdown menu.
Type in Ogury Banner as the bid name.
Set an eCPM.
Set Banner asthe Media Type.
Choose either 320x50 or 300x250 as the Ad Size.
Check the Support SSL checkbox.
Choose Android Class Name as Device Class Name, and enter the following configuration:
Android Class Name:
For Network Parameter, the JSON quotes should be escaped by prepending it with \ as shown above.
For eCPM, you need to set the value that you agreed with your Ogury Account Manager.
Click on Save.
If you wish to set up multi-placements for Ogury, you can add multiple bids. 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
After a successful integration, the first impressions of your application will be replaced by a Congratulations Ad, regardless of the ad format you have chosen to integrate.
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.
Additionally, you can follow the integration logs to get useful information on your integration status and any issue that might occur when displaying ads. Connect your device to Android Studio. Then filter the logs after the OGURY keyword to separate them from everything else.