|
本帖最后由 858833215 于 2016-6-14 13:05 编辑 ) d5 z# V6 x6 _- ?. } V
% x, t7 Z# N4 J ?准备用google dfp 广告管理系统 调用content.ad 广告代码.测试发现不显示呢!google dfp里广告素材选的是html.然后直接贴的是content.ad 广告代码- <div id="contentad"></div>
% `4 t( K# V& ]% l: C f- f- J - <script type="text/javascript">7 u( U" w/ A, Y+ T B
- (function(d) {
g0 r( c/ a& Q4 ^% d - var params =
! T' }9 J) m- ]2 g8 s/ F& g - {2 l1 O$ y* j5 `0 N
- id: "*",3 |0 a1 v# y* q- _+ z
- d: "*",
$ @) E: C; O% ? - wid: "*",
# ^2 Y+ ]7 B, M- ]1 ^- z$ @& C - cb: (new Date()).getTime(). k! @* Z, k6 D5 n
- };5 O$ Y7 u0 ?7 C2 L$ g" u
- . x. h9 }. a q
- var qs=[];" S( }0 _9 @& y- E: X
- for(var key in params) qs.push(key+'='+encodeURIComponent(params[key]));
3 B$ h9 M9 h6 \6 Z- k& v - var s = d.createElement('script');s.type='text/javascript';s.async=true;7 {- Z3 J; X7 ^
- var p = 'https:' == document.location.protocol ? 'https' : 'http';
6 @% h9 w8 u2 ~ - s.src = p + "://api.content.ad/Scripts/widget2.aspx?" + qs.join('&');7 ~ j# N, w" U6 ~5 _2 c; |4 k+ S
- d.getElementById("contentad").appendChild(s);
2 C5 K6 ?) p9 N3 g V' S# ]: P1 I/ \) j - })(document); S$ i, L7 i- ~
- </script>
复制代码 " l4 N0 X" ~% Y! j$ @ l% u) i
/ c: M4 R: t; A* w3 y( W |
|