2017-02-26 248 views
1

您能否请我帮助我如何实现IAB Clicktab到GDN横幅(使用谷歌网页设计软件创建)。我刚刚收到媒体公司的通知,GDN横幅广告已获得HTML5 Validator工具的批准,但尚未添加点击代码。 Screenshot - Asset validation谷歌网页设计师GDN横幅IAB-Clicktag实施

我为GDN创建了DoubleClick环境,但我不知道在哪里实现href链接并创建可点击的横幅。

GDN:

<body> 
 
<gwd-doubleclick id="gwd-ad" polite-load=""> 
 
    <gwd-metric-configuration></gwd-metric-configuration> 
 
    <div is="gwd-pagedeck" class="gwd-page-container" id="pagedeck"> 
 
     <div is="gwd-page" id="page1" class="gwd-page-wrapper gwd-page-size gwd-lightbox" data-gwd-width="160px" data-gwd-height="600px"> 
 
     <div class="gwd-page-content gwd-page-size"> 
 
      <img is="gwd-image" source="main_galaxy_wrapper.png" id="main_wrapper" class="gwd-img-bnpg gwd-gen-1mybgwdanimation"> 
 
      <img is="gwd-image" source="disrupter.png" id="disrupter" class="gwd-img-1svs gwd-gen-gx3lgwdanimation"> 
 
      <img is="gwd-image" source="logo.png" id="logo" class="gwd-img-1mfr"> 
 
      <img is="gwd-image" source="bg.jpg" id="bg" class="gwd-img-l5ff gwd-gen-1by8gwdanimation"> 
 
      <img is="gwd-image" source="galaxy.png" id="galaxy" class="gwd-img-n640 gwd-gen-1vlxgwdanimation"> 
 
      <img is="gwd-image" source="cta.png" id="cta" class="gwd-img-1p26 gwd-gen-4kmrgwdanimation"> 
 
     </div> 
 
     </div> 
 
    </div> 
 
    </gwd-doubleclick> 
 
    <script type="text/javascript" id="gwd-init-code"> 
 
    (function() { 
 
     var gwdAd = document.getElementById('gwd-ad'); 
 

 
     /** 
 
     * Handles the DOMContentLoaded event. The DOMContentLoaded event is 
 
     * fired when the document has been completely loaded and parsed. 
 
     */ 
 
     function handleDomContentLoaded(event) { 
 

 
     } 
 

 
     /** 
 
     * Handles the WebComponentsReady event. This event is fired when all 
 
     * custom elements have been registered and upgraded. 
 
     */ 
 
     function handleWebComponentsReady(event) { 
 
     // Start the Ad lifecycle. 
 
     setTimeout(function() { 
 
      gwdAd.initAd(); 
 
     }, 0); 
 
     } 
 

 
     /** 
 
     * Handles the event that is dispatched after the Ad has been 
 
     * initialized and before the default page of the Ad is shown. 
 
     */ 
 
     function handleAdInitialized(event) {} 
 

 
     window.addEventListener('DOMContentLoaded', 
 
     handleDomContentLoaded, false); 
 
     window.addEventListener('WebComponentsReady', 
 
     handleWebComponentsReady, false); 
 
     window.addEventListener('adinitialized', 
 
     handleAdInitialized, false); 
 
    })(); 
 
    </script> 
 

 

 
<script data-exports-type="gwd-studio-registration">function StudioExports() { 
 
}</script><script type="text/gwd-admetadata">{"version":1,"type":"DoubleClick","format":"","template":"Banner 3.0.0","politeload":true,"fullscreen":false,"counters":[],"timers":[],"exits":[],"creativeProperties":{"minWidth":160,"minHeight":600,"maxWidth":160,"maxHeight":600},"components":["gwd-doubleclick","gwd-image","gwd-page","gwd-pagedeck"],"responsive":false}</script></body></html>

这是旗帜(X轴),不同的环境,我这个搜索解决方案尝试添加下面开身标签的HREF,但仍缺少点击标签检查

<body> 
 
    <a href="https://streaming.grm-pro.com/__Vorlagen.HTML5/scripts/IAB.at.specs/iab.at.specs.txt" id="IAB_clicktag" target="_blank"> 
 
    <gwd-genericad id="gwd-ad"> 
 
     <div is="gwd-pagedeck" class="gwd-page-container" id="pagedeck"> 
 
     <div is="gwd-page" id="page1" class="gwd-page-wrapper gwd-page-size gwd-lightbox" data-gwd-width="160px" data-gwd-height="600px"> 
 
      <div class="gwd-page-content gwd-page-size"> 
 
      <img is="gwd-image" source="main_galaxy_wrapper_xaxis.png" id="main_wrapper" class="gwd-img-bnpg gwd-gen-1mybgwdanimation"> 
 
      <img is="gwd-image" source="disrupter_xaxis.png" id="disrupter" class="gwd-img-1svs gwd-gen-gx3lgwdanimation"> 
 
      <img is="gwd-image" source="logo_xaxis.png" id="logo" class="gwd-img-1mfr"> 
 
      <img is="gwd-image" source="bg_xaxis.jpg" id="bg" class="gwd-img-l5ff gwd-gen-1by8gwdanimation"> 
 
      <img is="gwd-image" source="galaxy_xaxis.png" id="galaxy" class="gwd-img-n640 gwd-gen-1vlxgwdanimation"> 
 
      <img is="gwd-image" source="cta_xaxis.png" id="cta" class="gwd-img-1p26 gwd-gen-4kmrgwdanimation"> 
 
      </div> 
 
     </div> 
 
     </div> 
 
    </gwd-genericad> 
 
    </a> 
 
    <script> 
 
    document.getElementById('IAB_clicktag').setAttribute('href', getUriParams.clicktag); 
 
    </script> 
 
    <script type="text/javascript" id="gwd-init-code"> 
 
    (function() { 
 
     var gwdAd = document.getElementById('gwd-ad'); 
 

 
     /** 
 
     * Handles the DOMContentLoaded event. The DOMContentLoaded event is 
 
     * fired when the document has been completely loaded and parsed. 
 
     */ 
 
     function handleDomContentLoaded(event) { 
 

 
     } 
 

 
     /** 
 
     * Handles the WebComponentsReady event. This event is fired when all 
 
     * custom elements have been registered and upgraded. 
 
     */ 
 
     function handleWebComponentsReady(event) { 
 
     // Start the Ad lifecycle. 
 
     setTimeout(function() { 
 
      gwdAd.initAd(); 
 
     }, 0); 
 
     } 
 

 
     /** 
 
     * Handles the event that is dispatched after the Ad has been 
 
     * initialized and before the default page of the Ad is shown. 
 
     */ 
 
     function handleAdInitialized(event) {} 
 

 
     window.addEventListener('DOMContentLoaded', 
 
     handleDomContentLoaded, false); 
 
     window.addEventListener('WebComponentsReady', 
 
     handleWebComponentsReady, false); 
 
     window.addEventListener('adinitialized', 
 
     handleAdInitialized, false); 
 
    })(); 
 
    </script> 
 

 

 
</body></html>

你能帮我如何硬编码吗?预先感谢您

回答