Hi, I have recently been getting ads rejected from some publishers in regard to the polite load of an ad when using the export script for DoubleClick Studio.
I have been able to fix this issue on my local version of the export script, but it would be good for other users to have the downloadable export script updated also.
Thanks for sharing this snippet – do you think that majority of publishers would prefer to wait for PAGE_LOADED to init their ad? Or should we do perhaps both: PAGE_LOADED and isVisible ? I can see arguments both ways, but you (and others viewing this post) would know best.
I would say so, most specs I get through from the publishers usually have a low initial load kb value, and then allow for an additional 2.2mb once the page has loaded
By switching to PAGE_LOADED, this solves the problem by deferring the load of the image and video assets contained within the ad to satisfy the specs.
Can you imagine a situation where the publisher would not want to combine PAGE_LOADED and isVisible and only have PAGE_LOADED? Or are those safe to require at the same time?
Hi Daniel, I’ve been looking into this in a bit more detail. I’ve downloaded a few templates and generated some test ads from GWD (Google Web Designer) and it looks like they never combine the two.
In GWD when publishing an ad, there is an option of a checkbox to specify ‘polite loading’.
It might be a good idea to consider adding this option to the ‘Advanced Export’ Box when the DC Studio Export Script has been selected, when checked, the code would then export as Enabler.isPageLoaded PAGE_LOADED, if the box remains unchecked then the generated code would be Enabler.isVisible VISIBLE
I know this is now a much bugger job than just changing the ‘Export script’ and as such is now more of a feature request.
As most publishers still seem to be OK with IsVisible it is probably best to keep the Export Script as is for the time being as the exported file can easily be edited once published.
I cannot imagine that setting this as an option that shows up in hype as an option for the script should be too hard to do.
It would not be a check box and would need to be a string entry though.
Cannot look at it mysekf at the mo, as I am no were near a Mac for a few says…
I am no expert at py, these export scripts or do adverts (sleeping with the enemy ) but this seems to work as far as I can test
Does this work for you?