|
本帖最后由 858833215 于 2016-6-14 13:05 编辑 5 c# Q. [" j+ i9 w/ \/ X
/ e% z: A5 ~# b1 a
准备用google dfp 广告管理系统 调用content.ad 广告代码.测试发现不显示呢!google dfp里广告素材选的是html.然后直接贴的是content.ad 广告代码- <div id="contentad"></div>* s. M+ [9 A2 n! b# }* b) O
- <script type="text/javascript">5 X- l2 A' {9 e i# S
- (function(d) {
* Y6 O. A, H& d" O4 x: @ - var params =3 s, C9 _& N6 ]0 |6 _2 E' T
- {9 L' o& M. y/ ^% D5 h8 f6 X- C
- id: "*",
8 ^7 P' W) i: w- c! l6 M - d: "*",
( c& D" F9 {9 S0 u0 n - wid: "*",2 z$ n7 b8 U4 T- V' |2 J
- cb: (new Date()).getTime()
5 @' h; r5 ]. A* m! v# n - };) V/ b8 M% V% n6 V. q( e
" J& J0 C& L3 U2 S" a5 V$ S- var qs=[];! J' n$ ?9 Y# `" h
- for(var key in params) qs.push(key+'='+encodeURIComponent(params[key]));
% a( A1 Y7 ?4 s5 @+ S3 Q - var s = d.createElement('script');s.type='text/javascript';s.async=true;
4 W6 k7 _! G7 Z* a - var p = 'https:' == document.location.protocol ? 'https' : 'http';
& O/ h; S- D8 q1 y - s.src = p + "://api.content.ad/Scripts/widget2.aspx?" + qs.join('&');# C, d" r1 k; d4 R
- d.getElementById("contentad").appendChild(s);
( ^3 P6 q# a# { - })(document);" I) c9 ?# t- d2 ?+ S. R- p
- </script>
复制代码
+ m8 I+ @$ @9 x/ k) w, H* M; h9 X/ S' g
|
|