Michael A Michael A - 10 months ago 57
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?

Answer Source

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

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