Michael A Michael A - 5 months ago 33
Android Question

Calling DFP ad with custom params via the SDK

I am displaying dfp ad inside my mobile android app

The id of the dfp ad looks like this:


Say i want to set custom params like this:


Is it possible to do in the mobile android sdk?


So the answer is to use to use the sdk for this like this:

final PublisherAdRequest adRequest = new PublisherAdRequest.Builder()
            .addCustomTargeting(key, val)