Share your feedback about the Google Mobile Ads SDK! Take the annual survey.

Integrating Verizon Media with Mediation

This guide is for publishers who want to use the Google Mobile Ads SDK to load and display ads from Verizon Media ads via mediation. It covers how to add Verizon Media to an ad unit's mediation configuration, how to set up Ad Network Optimization (ANO), and how to integrate the Verizon Media SDK and adapter into an Android app.

Supported ad formats and features

The AdMob mediation adapter for Verizon Media has the following capabilities:

Formats
Banners
Interstitials
Rewarded Video
Native Advanced
Features
Smart Banners
Ad Network Optimization (ANO)

Requirements

  • Android SDK 4.1 (API level 16) or later
  • Latest Google Mobile Ads SDK

Step 1: Set up Verizon Media

Sign up or log in to Verizon Media's SSP. Under Applications and Sites, click the button to create your app and select Android as the platform.

Fill out the form and click Save and Add Placement to create your app.

Once you create an app, you will need to create a Placement. Select a Placement Type, fill out the form, and click Save & Monetize. Take note of your Placement ID. You will need this in the next step.

You will need to add an Ad Source to your placement. On the next form, select Oath Ad Platforms SSP as an Ad Source and fill out the form with the required information. Once you complete the form, click Save.

Finally, drag the Ad Source that you just created under the Waterfall Ad Sources table to add it to your placement. Take note of the Site ID, just beside your app's name. You will also need this in the next step.

Open the Navigation menu and select Reporting Credentials under Account Settings.

Take note of the Company ID and Company Access Key.

Step 2: Configure mediation settings for your AdMob ad unit

You need to add Verizon Media to the mediation configuration for your ad unit.

First, sign in to your AdMob account. Next, navigate to the Mediation tab. If you have an existing mediation group you'd like to modify, click the name of that mediation group to edit it, and skip ahead to Add Verizon Media as an ad source.

To create a new mediation group, select Create Mediation Group.

Enter your ad format and platform, then click Continue.

Give your mediation group a name, and select locations to target. Next, set the mediation group status to Enabled, and then click Add Ad Units.

Associate this mediation group with one or more of your existing AdMob ad units. Then click Done.

You should now see the ad units card populated with the ad units you selected:

Add Verizon Media as an ad source

In the Ad Sources card, select Add Ad Network. Then select Verizon Media.

Select Oath Ad Platforms (Verizon Media) and enable the Optimize switch. Enter the Company ID and Company Access Key obtained in the previous section to set up ANO for ANO for Oath(Verizon). Then enter an eCPM value for Verizon Media and click Continue.

Enter the Placement ID and the Site ID obtained in the previous section.

Step 3: Import the Verizon Media Ads SDK and adapter

Step 3: Import the Verizon Media Ads SDK and Adapter Android Studio integration (recommended) Add the following implementation dependencies with the latest versions of the Verizon Media Ads SDK and adapter in the app-level build.gradle file:


...
dependencies {
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'com.google.android.gms:play-services-ads:18.2.0'
    implementation 'com.google.ads.mediation:verizonmedia:1.1.1.0'
}
...

Step 4: Additional code required

No additional code required for Verizon Media integration.

Step 5: Test your implementation

Verizon Media ads can be tested by creating a Test Ad Source and adding it into your placement's Waterfall Ad Sources. Navigate to your Placement ID's settings, click the Add button and select Test Ad Source.

Once you created the Ad Source, drag it into your placement's Waterfall Ad Sources.

That's it! You now have a working mediation integration with Verizon Media.

Optional steps

Under the Google EU User Consent Policy, you must ensure that certain disclosures are given to, and consents obtained from, users in the European Economic Area (EEA) regarding the use of device identifiers and personal data. This policy reflects the requirements of the EU ePrivacy Directive and the General Data Protection Regulation (GDPR). When seeking consent, you must identify each ad network in your mediation chain that may collect, receive, or use personal data and provide information about each network's use. Google currently is unable to pass the user's consent choice to such networks automatically.

Enabling/disabling personalized ads

The Verizon Media adapter has the VerizonConsent.getInstance().setConsentData() method that forwards consent information to the Verizon Ads SDK once it's initialized. The method takes two parameters:

  • A consent data map to pass to the Verizon Ads SDK
  • A boolean indicating whether the user is in a restricted origin as defined by the Verizon Ads SDK

Sample usage:

import com.google.ads.mediation.verizon.VerizonConsent;

Map<String, String> consentMap = new HashMap<>();
consentMap.put(VASAds.IAB_CONSENT_KEY), "IAB consent string");

VerizonConsent.getInstance().setConsentData(map, false);
Visit Verizon Media's Privacy Settings guide for more information about what inputs can be passed.

Verizon Media Android Mediation Adapter Changelog

Version 1.1.1.0

  • Adapter has been rebranded to "Verizon Media".
  • Compatible with Verizon Media SDK 1.1.1.

Earlier versions

  • Supports banner and interstitial ads.

Send feedback about...

Need help? Visit our support page.