【发布时间】:2015-12-16 05:06:53
【问题描述】:
在这样的 php 标签中使用 adsense 代码是否合法,这会影响广告的行为吗?
<?php function myfn(){
php code here ?>
<script async='async' src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="<?php echo $ad_client; ?>"
data-ad-slot="<?php echo $ad_slot; ?>"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<?php }?>
并在我想要广告的任何地方调用此函数。
【问题讨论】:
-
Adsense Ad placement policies