Mediate from AdMob by Google 

Mediate your AdMob inventory to ONE by AOL: Mobile, then run reports, view and manage everything from our UI.

Google Mobile Ads SDK Integration

Follow the instructions below to mediate your AdMob inventory to ONE by AOL: Mobile

Notice to Unity Engine developers: The AOL Mobile SDK can still deliver ads on an app developed through the Unity Engine if you are mediating through AdMob by Google. AdMob automatically supports Unity so integrating our adapter (Android | iOS) ensures proper delivery on all ad formats.

Android

  1. Integrate the AdMob or DFP SDK and create the placement in-app.
  2. Add the ONE by AOL: Mobile SDK to your app (Android Studio instructions).
  3. Integrate the Google Mediation Adapter.
  4. Create an Ad Source for ONE by AOL: Mobile (formerly Nexage) in AdMob with business needs for your Ad Unit or a Line Item for ONE by AOL: Mobile (formerly Nexage) in DFP with business needs (volume, estimated CPM, duration).
  5. AdMob: Create a New Ad Network for that ad unit.
    • Choose ONE by AOL: Mobile (formerly Nexage).
    • Type in your Site ID and Placement ID.
  6. DFP: Create an SDK Mediation creative for that line item.
    • Specify the ad size of the ad unit/placement.
    • Choose Network → ONE by AOL: Mobile (formerly Nexage).
    • Type in the Site ID and Placement ID that this creative is targeting.

iOS

  1. Integrate the AdMob or DFP SDK and create the placement in-app.
  2. Integrate the ONE by AOL: Mobile SDK (steps 1 through 6 here).
  3. Integrate the Google Mediation Adapter.
  4. Create an Ad Source for ONE by AOL: Mobile (formerly Nexage) in AdMob with business needs for your Ad Unit or a Line Item for ONE by AOL: Mobile (formerly Nexage) in DFP with business needs (volume, estimated CPM, duration).
  5. AdMob: Create a New Ad Network for that Ad Unit.
    • Choose ONE by AOL: Mobile (formerly Nexage).
    • Type in your Site ID and Placement ID.
  6. DFP: Create an SDK Mediation creative for that line item.
    •  Specify the ad size of the ad unit/placement.
    • Choose Network → ONE by AOL: Mobile (formerly Nexage).
    • Type in the Site ID and Placement ID that this creative is targeting.

Be sure to add both your Site ID and Placement ID to the mediation ad source configuration!

MedFromAdMob_screenShot.png

A Note for iOS Developers Using CocoaPods

If the AdMob SDK was integrating using CocoaPods, be sure to import the ONE by AOL: Mobile SDK and adapter file into the application project (not Pods) in the workspace.

 

Compatibility

Android Files Needed:

Google Mobile Ads SDK v11.0.4
MM Ad SDK v6.6.1
Google Mobile Ads Upstream Adapter v1.4.0

iOS Files Needed:

Google Mobile Ads SDK v7.24.1
MM Ad SDK v6.6.0
Google Mobile Ads Upstream Adapter v1.5.1

Rewarded Video

In order to mediate to AOL Mobile video demand, publishers must first adjust the integration to pass your Site ID to ONE Mobile. Then create and define a custom event in the AdMob interface for your rewarded video placements.

Google offers instructions for creating a custom event in their help center guide but we’ve also provided an AOL-specific step-by-step guide below.

Integration Update

Add this required piece of code so your SiteID will be passed to ONE Mobile.

Android

Bundle siteID = new Bundle();
siteID.putString("dcn","<YOUR_SITE_ID>");//Replace with a SiteID/DCN
AdRequest request = new AdRequest.Builder() .addNetworksExtrasBundle(NexageAdapter.class,siteId)
.build();

iOS

Add an MMSiteID entry to your info.plist.

<key>MMSiteID</key>
<string>REPLACE_WITH_YOUR_SITE_ID</string>

AdMob UI

  1. Select + New Ad Unit.
  2. Select Rewarded Interstitial.
  3. Choose your reward and frequency capping settings and name your Ad Unit.
  4. Find your newly created Ad Unit in the App View and select Configure third-party mediation in the Mediation column.
  5. Select + New Ad Network.
  6. Select + Custom Event.
  7. Enter the following information based on the app’s platform and front door.

    Android
    • ONE by AOL (Millennial Media)
      • Class Name: com.google.ads.mediation.millennial.MillennialAdapter
      • Label: ONE by AOL (Millennial Media)
      • Parameter: <Your Placement ID goes here>
    • ONE by AOL (Nexage)
      • Class Name: com.google.ads.mediation.nexage.NexageAdapter
      • Label: ONE by AOL (Nexage)
      • Parameter: <Your Nexage Position goes here>
    iOS
    • ONE by AOL
      • Class Name: GADMAdapterMillennial
      • Label: ONE by AOL (Millennial Media)
      • Parameter: <Your Placement ID goes here>
    • ONE by AOL (Nexage)
      • Class Name: GADMAdapterNexage
      • Label: ONE by AOL (Nexage)
      • Parameter: <Your Nexage Position goes here>
  8. Select Continue.
  9. Enter the desired eCPM value for the new Ad Source and any country-specific setting.
  10. Select Save.

NOTE: If non-skip video is preferred for your rewarded video placements, please submit a request to ensure your SDK configuration is changed accordingly. 

Google DFP Integrations via JavaScript Tags

DFP integrations can be via JavaScript tags or a server-to-server integration. JavaScript integrations are preferred and require set up of a passback tag.

Ad Tag Mobile Web jsweb


<div id="nexage_adreturn_banner" >
<script src="<BASE_URL>/js/admax/admax_api.js"></script>
<script>
var suid = getSuid();
var admax_vars = {
    "dcn": "<DCN>"
    ,"pos": "<POSITION>"
    ,"req(url)": document.URL
    /* ,"grp": "<impression group name>" */
 };
if (suid) admax_vars["u(id)"]=suid;
admaxAd(admax_vars);
</script>
</div>
<script>
   function setTarget() {
      var clickThru = document.getElementById('nexage_adreturn_banner').getElementsByTagName('a');
      if(clickThru.length > 0){
         for(var i =0; i< clickThru.length ; i++){clickThru[i].setAttribute('target', '_blank');} 
     } 
} 
setTarget(); 
</script> 

Passback Tags

For JavaScript integrations, a passback to the publisher/ad server is needed when the ONE by AOL: Mobile Marketplace does not have an ad to serve.

<script src="//www.googletagservices.com/tag/js/gpt.js">    googletag.pubads().definePassback(
    "/network_ID/ second_level_ad_unit", [468, 60]).display();
</script>

Google Mobile Ads SDKs via JavaScript Tags

Ad Tag Mobile Web

<script>src="/js/admax/admax_api.js"></script&gt
<script>
var suid = getSuid();
var admax_vars = {
    "dcn": ""
    ,"pos": ""
    ,"req(url)": document.URL
    /* ,"grp": ";" */
 };
if (suid) admax_vars["u(id)"]=suid;
admaxAd(admax_vars);
</script>

Rich Media Support

Type Status
MRAID Banner Yes
MRAID Interstitial Yes
VAST Video No
Have more questions? Submit a request