Adapter Setup

This guide explains how to import the Ogury SDK and adapter into your Android or iOS project for use with Google AdMob mediation.

Compatibility Requirements

Before integrating the Ogury SDK, make sure your project is compatible with it:

Android

  • Minimum API Level: 21 or higher.

  • Target SDK Version: 33 or higher.

  • Kotlin Version: 2.1.0 or higher.

  • Permissions (in AndroidManifest.xml):

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

iOS

  • Xcode version: 15 or later.

  • Target iOS version: 12 or later.

Import the Ogury SDK and Adapter on Android

Add the Ogury Maven repository in your settings.gradle:

// settings.gradle

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        // Add Ogury's repository
        maven {
            url 'https://maven.ogury.co'
        }
    }
}

Then, add the Ogury SDK and adapter dependencies in your module-level build.gradle (usually app/build.gradle):

// build.gradle (Module: app)

dependencies {
    // import the Ogury SDK
    implementation 'co.ogury:ogury-sdk:6.+'
    // import Ogury adapter for Google AdMob mediation
    implementation 'co.ogury:ogury-mediation-admob:6.+'
    // ... other dependencies
}

Using 6.+ allows you to automatically receive the latest minor and patch versions of the SDK.

Refer to the Ogury SDK Release Notes and the Adapter Release Notes for detailed changelogs and versioning information.

Import Ogury SDK and Adapter on iOS

Open your application's Podfile and add the following line inside your app target:

pod 'OguryMediationGoogleMobileAds'

Refer to the Ogury SDK Release Notes and the Adapter Release Notes for detailed changelogs and versioning information.


What’s Next?

Continue to the Dashboard Setup section to complete the integration and link your Ogury ad units within the Google AdMob interface.


Additional Resources

For information on privacy and regulatory compliance, see the Privacy Compliance section.

Last updated

Was this helpful?