ngDfp
ngDfp copied to clipboard
When is the best time to configure services?
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);
Try doing that in your config block, otherwise I should probably add a way to execute extra configuration.
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.