Google Ad Manager Integration
Setting up Nimbus to run banners and interstitial ads within the Google ecosystem can be done by including our Google extension. This guide assumes you've already integrated Nimbus in your app. Before ads can be loaded using Google, Nimbus.initialize() must be called.
Setup
Include the Nimbus Google Extension
In your build.gradle include the following line in your dependencies block.
dependencies {
implementation "com.adsbynimbus.android:extension-google:1.11.6"
}
Configure the Nimbus Ad Network and Yield Group in Google Ad Manager
Below you will find the instructions for configuring Nimbus’ Android SDK as a yield partner with Google Ad Manager (GAM/DFP)
To begin, please sign into Google Ad Manager and follow the below steps:
Creating a Company
- Click Admin - Companies
- Click New Company - Select New Ad Network
- Click and Select - Other Company
- Type in the Name - Nimbus SDK
- Select/Check - Enable Mediation
- Save this configuration
Creating Yield Group
- Click on Delivery on the left side menu
- Continue onto Delivery and click - Yield Groups
- Create a new Yield Group - Named Nimbus SDK
- Save this configuration
Adding a Yield Partner
- Select Nimbus SDK from the list
- Set the Integration Type - Custom Event
- For Operating System/Platform - Android
- Set Status to - Active
- Label - NimbusCustomEvent
- Select - Override Dynamic CPM - Note: Our default is 1.00
- Class Name -
com.adsbynimbus.google.NimbusCustomEvent - Parameter - Used as the position field of the NimbusRequest. - If omitted will default to "GAM Banner" or "GAM Interstitial"
- Save this configuration
AdUnit
- Ad Units must be set up prior to being able to target it from the Yield Group
- Ad Unit sizes are passed through from the SDK as part of the request
Testing Ads
In order to test your integration, enable test mode by calling Nimbus.setTestMode(true) after initializing the sdk and turn off other networks for the line item you configured in Nimbus. A successful integration should show the test Nimbus Banner ad.
More Information
For more information on setting up a custom network, refer to this link https://support.google.com/admanager/answer/7387351