@dhayles wrote:
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.
Here is the official Google page on the issue:
https://support.google.com/richmedia/answer/2672514?hl=enThe fix I have implemented is to the init function as shown below, it changes the text isVisible to isPageLoaded as well as the EventListener:
Existing Export Script (Lines 49 to 56):
function init() { // Polite loading if (Enabler.isVisible()) { show(); } else { Enabler.addEventListener(studio.events.StudioEvent.VISIBLE, show); } }
Changes made:
function init() { // Polite loading if (Enabler.isPageLoaded()) { show(); } else { Enabler.addEventListener(studio.events.StudioEvent.PAGE_LOADED, show); } }
Posts: 5
Participants: 2