更改自适应广告单元的链接颜色

时间:2015-12-18 19:12:17

标签: css adsense

在“较旧”的adsense广告单元中,我可以更改广告的链接颜色,使其与使用google_color_linkgoogle_color_url参数的页面样式相匹配。

<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXX";
/* 120x600, created 10/10/10 */
google_ad_slot = "XXXXXX";
google_ad_width = 120;
google_ad_height = 600;
google_color_link="11aa11";
google_color_url="11aa11";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

如何使用新的自适应广告单元执行相同操作?

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- responsive test -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-XXXXX"
     data-ad-slot="XXXXX"
     data-ad-format="auto">
</ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

我怀疑它可能是style属性的一部分,但无法找到引用或示例。

0 个答案:

没有答案