ngDfp icon indicating copy to clipboard operation
ngDfp copied to clipboard

When is the best time to configure services?

Open Soviut opened this issue 11 years ago • 2 comments

I need to set targeting on the pubads() service. Is there a formal time I should do this?

googletag.pubads().setTargeting('section','example');
googletag.pubads().setTargeting('page','example');
googletag.pubads().setTargeting("site","example");
googletag.pubads().setTargeting("network","example");
googletag.pubads().enableVideoAds();
googletag.companionAds().setRefreshUnfilledSlots(true);

Soviut avatar Oct 01 '14 18:10 Soviut

Try doing that in your config block, otherwise I should probably add a way to execute extra configuration.

ianmurrays avatar Oct 01 '14 18:10 ianmurrays

Yeah, for now I'm adding them directly to the googletag.cmd async queue. Though it might be better if this were done as a promise in the config block.

Soviut avatar Oct 01 '14 18:10 Soviut