Getting started
This documentation will go through all the steps required to display Ogury ads through Google Ad Manager (GAM) mediation on Unity platform.

Step 1: Register your applications

In case you publish your application on both Android and iOS, you should do the following steps twice, once for the Android application and once for the iOS application. Otherwise just select the platform you publishes for.
  • Go to your Dashboard and register your application.
  • Copy the Asset Key from the Asset details, as shown in the screenshot below:
The Asset Key follows the pattern: OGY-XXXXXXXXXXXX, where X is an uppercase letter or digit. In all the following code samples, we will refer to:
  • the Asset Key of the Android application by using the string ANDROID_ASSET_KEY.
  • the Asset Key of the iOS application by using the string IOS_ASSET_KEY.

Step 2: Import the Ogury SDKs

The Ogury SDKs import is based on the Google dependency resolver: Google External Dependency Manager for Unity (formerly Play Services Resolver). It will enable you to download the latest versions of Ogury SDKs and adapters directly from your Unity development platform.

Import the Ogury SDKs and its adapters

Create an OguryDependencies.xml file in Assets/Editor directory with the following content:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<dependencies>
<androidPackages>
<androidPackage spec="co.ogury:ogury-sdk:5.+">
<repositories>
<repository>https://maven.ogury.co</repository>
</repositories>
</androidPackage>
<androidPackage spec="co.ogury:ogury-mediation-gam:5.+">
<repositories>
<repository>https://maven.ogury.co</repository>
</repositories>
</androidPackage>
</androidPackages>
<iosPods>
<iosPod name="OguryMediationGoogleMobileAds" version="~> 2.1.0.0"></iosPod>
</iosPods>
</dependencies>
To know more about the latest release of the Ogury SDKs and its adapters, you can check release notes below:

Step 3: Add Ogury as Yield Partner

In Google Ad Manager dashboard, configure Ogury as a yield partner.
  • Click on Admin > Companies in the left-menu.
  • Click on New company and select Ad Network.
  • In the New ad network pop-up, select Other company as Ad network and enter Ogury as Name. Then enable the Mediation option.
The newly created Ogury yield partner should show in the list of Ad Networks.

Step 4: Integrate Ogury ad formats

Congratulations, the Ogury SDK is now initialized! You are now ready to integrate your first ad. Ogury provides four different ad formats, (i) Interstitial Ads, (ii) Opt-in Video Ads and (iii) Banner Ads. You can refer to the following sections to proceed with the integration:

Before going live

Ogury is part of the IAB Authorized Sellers for Apps initiative to fight inventory fraud for applications. It is recommended to update your app-ads.txt to include Ogury as described in the app-ads.txt section.
Last modified 2mo ago
Copy link
On this page
Step 1: Register your applications
Step 2: Import the Ogury SDKs
Import the Ogury SDKs and its adapters
Step 3: Add Ogury as Yield Partner
Step 4: Integrate Ogury ad formats
Before going live