-
Notifications
You must be signed in to change notification settings - Fork 0
DFP
awallace87 edited this page Aug 23, 2016
·
1 revision
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”.
- 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
- Delivers 300x250 ads in-content
- Uses location information if passed to DFP
Add every placement/ad unit with Yieldmo as a Custom Network
- 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 is123456, your parameter should beabcdef_123456
-
Example: if your Yieldmo Application ID is
- In the Class Name field, enter
com.yieldmo.sdk.dfp.YMDFPPlacement
- Integrate the Yieldmo Android SDK according to instructions here
- Create a
PublisherAdViewwith a300x250size 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);- Home
- [Key Terms](Key Terms)
Start Here
- Integration
- Doubleclick for Publishers
- [Before you Launch](Before You Go Live)
- [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)