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 Automatic Data Collection, and how to integrate the Verizon Media SDK and adapter into an Android app.

Supported ad formats and features

The Ad Manager mediation adapter for Verizon Media has the following capabilities:

Formats
Banners
Interstitials
Rewarded Video
Native Advanced
Features
Smart Banners
Automatic Data Collection

Requirements

  • Android API level 16 or higher
  • 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've created 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've completed 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 ad unit

Sign in to your Ad Manager account. Navigate to Delivery > Yield groups and click the New yield group button.

Enter a unique Name for your yield group, set the Status to Active, select your Ad Format, and set the Inventory type to Mobile App. Under the Targeting > Inventory section, select the Ad Unit ID to which you want to add mediation.

Next, click the Add yield partner button.

If you already have a Yield partner for Verizon Media, you can simply select it. Otherwise, select Create a new yield partner.

Select Verizon Media - App & Display as the Ad network and enter a unique Name. Enable Mediation and turn on Automatic data collection, enter the Company ID and Secret Key obtained from your Verizon account, and click Save when done.

Once the Yield partner is created, select Mobile SDK Mediation as the Integration type, Android as the Platform, and Active as the Status. Enter the Placement ID and Site ID obtained in the previous section, and a Default CPM value.

Click Save at the bottom of the page when done.

Using rewarded video ads

In the settings for your rewarded video ad unit, provide values for the reward amount and reward type. Then, to ensure you provide the same reward to the user no matter which ad network is served, check the Override reward settings from third-party ad networks when using mediation box.

If you don't apply this setting, the Verizon Media adapter defaults to a reward of type "" (empty string) with a value of 1. The Verizon Media SDK does not provide specific reward values for its rewarded video ads.

Step 3: Import the Verizon Media SDK and adapter

Add the following implementation dependencies with the latest versions of the Verizon Media Ads SDK and adapter in the app-level build.gradle file:

repositories {
    jcenter()
}

...
dependencies {
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'com.google.android.gms:play-services-ads:19.5.0'
    implementation 'com.google.ads.mediation:verizonmedia:1.8.0.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've 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 VerizonPrivacy.getInstance().setPrivacyData() method that forwards consent information to the Verizon Ads SDK once it's initialized. The method takes one parameter:

  • A consent data map to pass to the Verizon Ads SDK

Sample usage:

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

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

VerizonPrivacy.getInstance().setPrivacyData(consentMap);
Visit Verizon Media's Privacy Settings guide for more information about what inputs can be passed.

Using native ads

Ad rendering

The Verizon Media adapter populates the following fields for a UnifiedNativeAd.

Field Populated by Verizon Media adapter
Headline
Image
Body
App icon
Call to action
Advertiser Name
Star rating
Store
Price

Verizon Media Android Mediation Adapter Changelog

Next Version

  • Fixed an issue where the adapter returns an incorrect version string.

Version 1.8.0.0

  • Support for Verizon Media SDK v1.8.0.
  • Updated the minimum required Google Mobile Ads SDK version to 19.4.0.

Built and tested with:

  • Google Mobile Ads SDK version 19.4.0.
  • Verizon Media SDK 1.8.0.

Version 1.7.0.0

  • Support for Verizon Media SDK v1.7.0.
  • Updated the minimum required Google Mobile Ads SDK version to 19.3.0.
  • Updated the adapter to support inline adaptive banner requests.
  • Added androidx.browser:browser as a dependency per Verizon's documentation.

Built and tested with:

  • Google Mobile Ads SDK version 19.3.0.
  • Verizon Media SDK 1.7.0.

Version 1.6.0.0

  • Support for Verizon Media SDK v1.6.0.
  • Updated the minimum required Google Mobile Ads SDK version to 19.1.0.

Built and tested with:

  • Google Mobile Ads SDK version 19.1.0.
  • Verizon Media SDK 1.6.0.

Version 1.5.0.0

  • Support for Verizon Media SDK v1.5.0.
  • Updated the minimum required Google Mobile Ads SDK version to 19.0.1.

Built and tested with:

  • Google Mobile Ads SDK version 19.0.1.
  • Verizon Media SDK 1.5.0.

Version 1.4.0.0

  • Support for Verizon Media SDK v1.4.0.

Built and tested with:

  • Google Mobile Ads SDK version 18.3.0.
  • Verizon Media SDK 1.4.0.

Version 1.3.1.0

  • Support for Verizon Media SDK v1.3.1.

Built and tested with:

  • Google Mobile Ads SDK version 18.3.0.
  • Verizon Media SDK 1.3.1.

Version 1.3.0.0

  • Support for Verizon Media SDK v1.3.0.
  • Removed VerizonConsent.getInstance().setConsentData() API.
  • Added VerizonPrivacy.getInstance().setPrivacyData() API. Publishers must now pass GDPR information to Verizon Media's SDK through this API.

Built and tested with:

  • Google Mobile Ads SDK version 18.3.0.
  • Verizon Media SDK 1.3.0.

Version 1.2.1.0

  • Support for Verizon Media SDK v1.2.1.
  • Support for Native ads added.
  • Support for Rewarded Video added.

Built and tested with:

  • Google Mobile Ads SDK version 18.2.0.
  • Verizon Media SDK 1.2.1.

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.