|
本帖最后由 858833215 于 2016-6-14 13:05 编辑 " F* T& ~+ n5 d
5 r; D V, w8 T$ X- x' }9 y* A
准备用google dfp 广告管理系统 调用content.ad 广告代码.测试发现不显示呢!google dfp里广告素材选的是html.然后直接贴的是content.ad 广告代码- <div id="contentad"></div>& q+ c. |* {; u3 R. @
- <script type="text/javascript">" T4 ]' G4 w% m6 C4 b
- (function(d) {6 {0 O% n& e2 m( B0 x
- var params =8 O9 [" W. S+ ?3 E6 _
- {" H! p0 k3 x% Y% @/ w
- id: "*",6 R3 ?0 S* I& e) M
- d: "*",
U+ J5 V- i8 C6 V5 }1 ~ - wid: "*",6 X# Y( y) ?9 i. ^
- cb: (new Date()).getTime()& f, n6 J6 k' U5 F& W
- };) q4 X% m0 T7 v5 E" r6 C1 d
- 7 G& \8 l2 \% `* V c6 f8 N
- var qs=[];7 u u: A4 a Z) l V
- for(var key in params) qs.push(key+'='+encodeURIComponent(params[key]));
/ e+ |* z5 r$ K w' V - var s = d.createElement('script');s.type='text/javascript';s.async=true;% ~/ p& n6 ?9 T# f% L5 P f
- var p = 'https:' == document.location.protocol ? 'https' : 'http';
) ]" K8 B6 d: _/ F- u - s.src = p + "://api.content.ad/Scripts/widget2.aspx?" + qs.join('&');" ~1 v, Z8 Z1 o! t" G/ m
- d.getElementById("contentad").appendChild(s);$ L0 O. s; `5 x+ M7 n- {* q- z* i7 \
- })(document);( g; k) T ^1 `4 }- B' ~
- </script>
复制代码 0 `* \/ L/ d, f, Q) D' Z
$ z4 l% R, ~" p2 A9 t; ] k |
|