Integrate Yahoo with Mediation

This guide shows you how to use the Google Mobile Ads SDK to load and display ads from Yahoo using mediation, covering waterfall integrations. It covers how to add Yahoo to an ad unit's mediation configuration, and how to integrate the Yahoo Mobile SDK and adapter into an iOS app.

Supported integrations and ad formats

The Ad Manager mediation adapter for Yahoo has the following capabilities:

Integration
Bidding
Waterfall
Formats
Banner
Interstitial
Rewarded
Native

Requirements

  • iOS deployment target of 11.0 or higher
  • Latest Google Mobile Ads SDK

Step 1: Set up Yahoo

Log in to Yahoo's SSP. Under Applications and Sites, click the + button then Application.

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 to add an Ad Source to your placement. On the next form, select Yahoo 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.

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 Yahoo, you can simply select it. Otherwise, select Create a new yield partner.

Select Yahoo - App & Display as the ad network and enter a unique Name. Click Save.

Once the Yield partner is created, select Mobile SDK Mediation as the Integration type, iOS 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 ads

In the settings for your rewarded 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 Yahoo adapter defaults to a reward of type "" (empty string) with a value of 1. The Yahoo Mobile SDK does not provide specific reward values for its rewarded ads.

Step 3: Import the Yahoo Mobile SDK and adapter

Add the following line to your project's Podfile:

pod 'GoogleMobileAdsMediationYahoo'

From the command line run:

pod install --repo-update

Step 4: Additional code required

No additional code required for Yahoo integration.

Step 5: Test your implementation

Yahoo 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 Yahoo.

Optional steps

Add Yahoo to GDPR ad partners list

Follow the steps in GDPR settings to add Yahoo to the GDPR ad partners list in the Ad Manager UI.

CCPA

The California Consumer Privacy Act (CCPA) requires giving California state residents the right to opt out of the "sale" of their "personal information" (as the law defines those terms), with the opt-out offered via a prominent "Do Not Sell My Personal Information" link on the "selling" party's homepage. The CCPA preparation guide offers the ability to enable restricted data processing for Google ad serving, but Google is unable to apply this setting to each ad network in your mediation chain. Therefore, you must identify each ad network in your mediation chain that may participate in the sale of personal information and follow guidance from each of those networks to ensure compliance with CCPA.

The following sample code shows how to pass consent information to the Yahoo Mobile SDK. If you choose to call this method, it is recommended that you do so prior to requesting ads through the Google Mobile Ads SDK.

Swift

import YASAds
import YASCcpaConsent

// ...
let ccpaConsent = YASCcpaConsent(consentString: "<CCPA CONSENT>")
YASAds.sharedInstance.add(ccpaConsent)

Objective-C

#import <YASAds.h>
#import <YASCcpaConsent.h>

// ...
YASCcpaConsent *ccpaConsent = [[YASCcpaConsent alloc] initWithConsentString: @”<CCPA CONSENT>”];
[YASAds.sharedInstance addConsent: ccpaConsent];

See Publisher Privacy Settings for more details and the values that can be provided in the method.

Using native ads

Ad rendering

The Yahoo adapter returns its native ads as GADNativeAd objects. It populates the following fields for a GADNativeAd.

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

Yahoo iOS Mediation Adapter Changelog

Next Version

  • Now requires Google Mobile Ads SDK version 10.4.0 or higher.

Version 1.4.0.0

  • Rebranded Verizon Media adapter to "Yahoo" adapter.
  • Verified compatibility with Yahoo Mobile SDK version 1.4.0.
  • Updated the adapter to use the didRewardUser API.
  • Removed support of the armv7 architecture.
  • Removed use of deprecated gender, birthday and location mediation APIs.
  • Now requires a minimum deployment target of iOS 11.0.
  • Now requires Google Mobile Ads SDK version 10.0.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 10.3.0.
  • Yahoo Mobile SDK version 1.4.0