[英]Hide container if DFP ad not loaded
I want to hide container based on google DFP ad is not loaded or not. 我想隐藏基于Google的广告素材DFP广告未加载。 I get Iframe body blank as shown below when ad is not loaded. 当广告未加载时,我将iframe正文显示为空白,如下所示。
<iframe id="google_ads_iframe_/1009127/<id>_0__hidden__" name="google_ads_iframe_/1009127/<id>_0__hidden__" width="0" height="0" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="border: 0px; vertical-align: bottom; visibility: hidden; display: none;" src="javascript:"<html><body style='background:transparent'></body></html>""></iframe>
You are looking to the collapseEmptyDivs
method - this should do what you want. 你正在寻找collapseEmptyDivs
方法 - 这应该做你想要的。
This page should tell you everything you need to know: https://support.google.com/dfp_premium/answer/3072674?hl=en 此页面应告诉您需要了解的所有信息: https : //support.google.com/dfp_premium/answer/3072674?hl = zh-CN
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.