|
本帖最后由 858833215 于 2016-6-14 13:05 编辑
" C, N* h& d: ~; N0 ?5 a2 [" n" K- E- p5 a1 c
准备用google dfp 广告管理系统 调用content.ad 广告代码.测试发现不显示呢!google dfp里广告素材选的是html.然后直接贴的是content.ad 广告代码- <div id="contentad"></div>
5 {8 K, a0 N4 e: o# Q' f( n - <script type="text/javascript">; ^; z3 r% v' E0 U) g+ x
- (function(d) {
G9 U3 V! U z' n7 J8 s0 X - var params =
: L0 W7 A' x# H3 P0 o - {
1 c( Z% Y9 v$ K' f - id: "*",
7 \# D5 L% \( |, k - d: "*",
4 |/ B3 J' }- s; n# E8 }7 r& @ - wid: "*",
7 D4 m. g) d1 r* J3 ^0 b) G - cb: (new Date()).getTime()3 S$ c8 y4 J9 ?# s, q$ B, a
- };+ u$ j: Q. u7 T* r
- ( s: O8 F$ a% J( R8 D
- var qs=[];; D( N/ M( A- f' v8 u5 _
- for(var key in params) qs.push(key+'='+encodeURIComponent(params[key]));0 m# V1 J1 q. X" c1 m2 H
- var s = d.createElement('script');s.type='text/javascript';s.async=true;
5 b) G" G9 i! \8 i6 |! ^ - var p = 'https:' == document.location.protocol ? 'https' : 'http';
! H& P; V6 _) X! @/ A - s.src = p + "://api.content.ad/Scripts/widget2.aspx?" + qs.join('&');& q/ G6 U# z& y: j# S
- d.getElementById("contentad").appendChild(s);
1 s7 H1 Q5 [4 {9 L3 F3 y2 T/ n - })(document);0 D# f& j2 q& g L2 c* q2 a& W
- </script>
复制代码
9 B' G D! h8 r4 [) _, H$ J+ C* Q- b; ^: a1 {) _) ?9 J
|
|