浏览代码

添加广告9

JXDS18FUJT 1 年之前
父节点
当前提交
33f29ae58e
共有 1 个文件被更改,包括 33 次插入0 次删除
  1. 33 0
      password2.html

+ 33 - 0
password2.html

@@ -269,7 +269,40 @@
             </div>
             <div style="height: 10vw;"></div>
         </div>
+        <div id="banner_2_0"></div>
         <script src="https://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
+        <script type="text/javascript">
+            // 腾讯广告全局申明只需运行一次
+            window.TencentGDT = window.TencentGDT || [];
+    
+            // 广告示例声明
+            TencentGDT.push({
+                app_id: '1205690058',
+                placement_id: '9037822631845911', // 广告位id,请从联盟平台广告位获取
+                type: 'native', // 广告类型
+                display_type: 'banner', // 广告播放类型: banner广告
+                carousel: 3000, // 轮播时间,> 3000数字类型,否则轮播会被取消
+                containerid: 'banner_2_0', // 广告容器
+                onComplete: function (res) {
+                    if (res.ret == 0) {
+                        console.log('广告播放成功');
+                    } else {
+                        console.log('广告播放失败', res);
+                    }
+                }
+            });
+            // H5 SDK接入全局只需运行一次
+            // (function () {
+            //     var doc = document,
+            //         h = doc.getElementsByTagName('head')[0],
+            //         s = doc.createElement('script');
+            //     s.async = true;
+            //     s.src = '//qzs.qq.com/qzone/biz/res/i.js';
+            //     h && h.insertBefore(s, h.firstChild);
+            // })();
+    
+        </script>
+        <script src="//qzs.gdtimg.com/union/res/union_sdk/page/h5_sdk/i.js"></script>
         <script>
             const formModel = {
                 city: "",