I'm using an asynchronous GPT to serve my expandable ad, but the creative is getting cut off because it seems that the asynchronous tags are not friendly iframes.
I used the DOM function to escape the iframe parent, but I think that i can't because the creative is rendering before the rendering of the page.
This is a sample of my tags
<script type='text/javascript' src='http://www.googletagservices.com/tag/js/gpt.js'>
googletag.pubads().definePassback('6917646/H24info/H24INFO_ATF_HOME_728x90', [[728,90]]).setClickUrl('[INSERT_CLICK_COUNTER_HERE]').display();
googletag.pubads().enableSingleRequest();
googletag.pubads().addEventListener('slotRenderEnded', function(event) {
var sas = document.getElementById("sas_format_33008");
var gpt = document.getElementById("gpt_unit_6917646/H24info/H24INFO_ATF_HOME_728x90_1_ad_container");
gpt.style.position = "absolute";
gpt.style.zIndex = "100";
sas.style.height = "90px";
});
googletag.enableServices();
</script>
Is there somebody who can help me please ?
Another option is to use Post Messages. But you will need to put an event listener in your main site. Something like this:
Then in the creative code, you will have to call the event listener to resize the elements that you need to expand. For example:
You may need to call this resize script several times if more than one element is actually fixing the size of your creative.