Hi there,
I'm currently trying to implement companion ads for my HTML5 player. My requirements don't exactly match the examples as laid out in the "Companion Ads" > "Using Google Publisher Tag"
So I decided to look at the Video Suite Inspector to try and see a working example of an HTML5 player with companion ads implemented. There are a couple of discrepancies with the docs and the implementation. Specifically, in the source of the Inspector, there are no googletag.display calls and the pubads() service is not registered on any of the slots that are defined. But with my test ad tag, the companions still seem to work:
http://pubads.g.doubleclick.net/gampad/ads?sz=512x288&iu=/4817/Test_BBCNewsAppiPad&ciu_szs=300x60,300x250&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&m_ast=vast&url=[referrer_url]&correlator=[timestamp]But if I remove the .addService(googletag.pubads()); or .display(slot) from my code, the companions don't show. Is there something that I'm missing?
For background info, I have ima.js and gpt_proxy.js and the video player loaded in an iframe, and I'm using gpt in the top window to define the companion slots, and that definition is triggered by code in the iframe.
I hope that's clear enough!
Thanks,
Tim