-
Notifications
You must be signed in to change notification settings - Fork 6
Advertising SDK adapter for DFP mediation
The Adform DFP adapter can be used to integrate Adform ads into the Google Mobile Ads mediation platform.
-
If you haven't integrated the Google Mobile Ads SDK, please do so, you could find documentation here.
-
You need to import Adform Advertising SDK to your project. Instructions on how to it you can find here.
-
Download our DFP adapter library and include into your project. You could download it from here.
-
Then you have to configure banner or interstitial custom event in DFP interface. More information on how to do so you can find here. There are two very important steps when defining a custom event:
- You must set master tag id provided by Adform in parameter field.
- You must use
com.adform.dfp.AdformBannerAdapter
class for inline ads andcom.adform.dfp.AdformInterstitialAdapter
class for interstitial ads (class name field).
Additionally you can pass key values to mediated Adform banners.
When creating the AdRequest for an AdMob interstitial create an Android Bundle object with your keyvalues as extras (see example below). Add your custom Bundle to the AdRequest using addCustomEventExtrasBundle(<adform adater class>, <var name for your bundle>)
Bundle bundle = new Bundle();
bundle.putString("age", "41");
PublisherAdRequest publisherAdRequest = new PublisherAdRequest.Builder()
.addCustomEventExtrasBundle(AdformBannerAdapter.class, bundle)
.build();
Basic integrations
- Integrating Inline Ad
- Integrating Full Screen Overlay Ad
- Integrating Interstitial Ad
- Integrating Adhesion Ad
- Video Ad Integration
Advanced integrations
- Advanced integration of Inline Ad
- Advanced integration of Full Screen Overlay Ad
- Advanced integration of Interstitial Ad
- Advanced integration of Adhesion Ad
- Advanced integration of AdInline ListView
- Advanced integration of AdInline RecyclerView
- Instream video ads integration
Other
- Adding Custom Values
- Adding Keywords
- Adding Key Value Pairs
- Adding Search Words
- Location
- Security
- Ad Tags
- Header Bidding
- Changing ADX domain
- Specifying banner loading behaviour
- GDPR
- Logs
Mediation adapters
Plugins