Skip to content
awallace87 edited this page Aug 23, 2016 · 1 revision

Doubleclick for Publishers (DFP)

Introduction

This page outlines the integration steps needed to support DFP and how to integrate Yieldmo SDK to deliver a banner ad. As always, please work with your account manager for creating Placement ID’s for each of your ad locations. This is required while configuring DFP to use Yieldmo ads as “Custom Network”.

Requirements

  • Integrate Google Mobile Ads SDK
  • Yieldmo SDK 4.0 or above
  • DFP should be configured to allow creative size 300x250 for Window/Pull/Hyperscroller
  • Get the following from your account manager
    • App ID ­ Needed to initialize the SDK
    • Placement ID(s) ­ Needed for each ad location

Features

  • Delivers 300x250 ads in­-content
  • Uses location information if passed to DFP

DFP Setup

Add every placement/ad unit with Yieldmo as a Custom Network

Custom Network Details

  • In the Parameter field, enter your Yieldmo Application ID, followed by an _, then followed by the Yieldmo Placement ID
    • Example: if your Yieldmo Application ID is abcdef, and the Placement ID is 123456, your parameter should be abcdef_123456
  • In the Class Name field, enter com.yieldmo.sdk.dfp.YMDFPPlacement

Integration

  • Integrate the Yieldmo Android SDK according to instructions here
  • Create a PublisherAdView with a 300x250 size as follows:
PublisherAdView publisherAdView = new PublisherAdView(parent.getContext());
publisherAdView.setAdUnitId(dfpUnitId);

AdSize adSize = new AdSize(300, 250);
publisherAdView.setAdSizes(adSize);

PublisherAdRequest adRequest = new PublisherAdRequest.Builder().build();
publisherAdView.loadAd(adRequest);

Android-SDK-Beta

  • Home
  • [Key Terms](Key Terms)

Start Here


  • [Listening for Ad Events](Listening for Ad Events)
  • Additional Settings
  • [Page View](Page View)
  • [Custom Content Frame](Content Frame)
  • Proguard

Have a previous SDK?

  • [Upgrade Guide](Upgrade Guide)

Clone this wiki locally