Google DFP

If you need a passback for another Ad to be served in  when we are not having 100% fill, you can bind to the connatix_no_content event.

Use this below instead of the regular connatix script. REplace the below code into the Content area in the DFP Creative. Make sure you replace googletag.pubads().definePassback('/AD_UNIT_ID/AD_UNIT_NAME', [1, 1]).display(); with your generated Tag by Google. 

<script>

function bindEvent(element, type, handler) {
if (element.addEventListener) {
element.addEventListener(type, handler, false);
} else {
document.documentElement.attachEvent('onpropertychange', function (event) {
if (event.propertyName == type) {
handler();
}
});
}
}
</script>
<script type='text/javascript' src='https://www.googletagservices.com/tag/js/gpt.js'>
bindEvent(window, 'connatix_no_content', function(evt) {
googletag.pubads().definePassback('/AD_UNIT_ID/AD_UNIT_NAME', [1, 1]).display();
});
</script>
<script async type='text/javascript' src='//cdn.connatix.com/min/connatix.renderer.infeed.min.js' data-google-click='%%CLICK_URL_UNESC%%' data-connatix-token='PROVIDED CONNATIX TOKEN' >
</script>
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.