...
Code Block |
---|
if(window.adngin && window.adngin.adnginLoaderReady) {
// When adnginLoaderReady boolean is true, it is safe to access command queues like adngin.queue or googletag.queue
adngin.queue.push(function() {
adngin.cmd.startAuction();
});
}); |
It is important to always use either the event adnginLoaderReady
or the boolean adngin.adnginLoaderReady
to safely call AdEngine. The two methods could be combined like shown in the following example:
...