Michael A Michael A - 1 year ago 102
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)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download