Closed damjan25 closed 4 years ago
Hello @damjan25 ,
It is possible to view the VAST XML response in Chrome's network tab (see screenshot).
However, IMA does not provide a method of logging this VAST XML response.
@Kiro705 is it possible to console.log firstQuartile link from the XML if you listen on event LOADED or maybe ADSREADY ? 🤔 for example like this:
player.ima.addEventListener(EventType.LOADED, (e) => {
console.log(e.firstQuartile)
})
Hello, @damjan25 ,
The most information about the ad is available using the getAdData() method. You can call it in the LOADED
event like this:
player.ima.addEventListener(google.ima.AdEvent.Type.LOADED, (e) => {
console.log(e.getAdData());
});
e.getAdData():
Hmm there is really not that much data in e.getAdData() obj :thinking: will there be support in there future to LOG xml from vast tags like this one ? Because it is really hard to debug in IOS real device when you get 303 error or 1009 error and you cant really check if some tracking links are missing in the XML or is the whole vast empty and its throwing the error :( (atleast not with the vast tags like the one in the ticket description, with some of them is really nice where you can log the hole vast xml and check it)
@damjan25 did you found how to get XML content from ad tag?
@komw unfortunately no. Found partial solution for some vast tags, but it did not work for all vast tags so it wasn't good enough for production and since then I havent looked into it anymore. :/
Is it possible to log vast XML response from ima ?
For example for vast tag like this: https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=
I would like to see what is inside vast XML before or after ad is loaded.