Only one comment.

  1. rabsom

    You could use an event listener such as slotRenderEnded (documentation here)

    // This listener is called when a slot has finished rendering. googletag.pubads().addEventListener('slotRenderEnded', function(event) { var slot = event.slot; var isEmpty = event.isEmpty; if (isEmpty) { //add your default image } } );

    Alternatively, you might be interested in using googletag.content() as detailled here.

Add a new comment.