【问题标题】:How to create adsense ads using only the users account id?如何仅使用用户帐户 ID 创建 AdSense 广告?
【发布时间】:2014-01-27 00:37:14
【问题描述】:

我有一个包含文章的网站,我想与文章作者分享文章的广告收入(90% 的百分比)。我we created a PHP code that rotates the ads, but I have a problem. I我们发现账号ID不够,我还需要广告位号。

如果用户应该只向我发送他的帐户 ID 会好得多,因为否则每个用户都需要在自己的 adsense 帐户中创建广告并将整个代码发送给我,而不是我需要检查是否广告是我需要的尺寸。

有什么建议吗?是否可以仅按用户 ID 旋转广告?

【问题讨论】:

    标签: adsense


    【解决方案1】:

    您可以使用旧的(但运行良好的)AdSense 代码。它看起来像这样:

    <script>
        google_ad_client="YOUR-PUB-ID";
        google_ad_width=300;
        google_ad_height=250;
        google_ad_format="300x250_as";
        google_ad_type="image";
        google_color_border="f3f3f3";
        google_color_bg="f3f3f3";
        google_color_link="313135";
        google_color_text="626262";
        google_color_url="2c89bc";
        google_ui_features="rc:0";
    </script>
    <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
    

    可用的 google_ad_type: 'text_image', '文本', '图片', 对于链接单元:省略此参数。

    广告格式有: 728x90_as(排行榜), 468x60_as(横幅), 234x60_as(半幅), 125x125_as(按钮), 120x600_as(摩天大楼), 160x600_as(宽摩天大楼), 180x150_as(小矩形), 120x240_as(垂直横幅), 200x200_as(小广场), 250x250_as(方形), 300x250_as(矩形), 336x280_as(大矩形)

    链接单元格式: 120x90_0ads_al(4 个链接), 120x90_0ads_al_s(5 个链接), 160x90_0ads_al(4 个链接), 160x90_0ads_al_s(5 个链接), 180x90_0ads_al(4 个链接), 180x90_0ads_al_s(5 个链接), 200x90_0ads_al(4 个链接), 200x90_0ads_al_s(5 个链接), 468x15_0ads_al(4 个链接), 468x15_0ads_al_s(5 个链接), 728x15_0ads_al(4 个链接), 728x15_0ads_al_s(5 个链接)

    随便玩玩。其他值是不言自明的……宽度/高度必须与所选广告格式的宽度和高度相匹配。这就是我们在拥有数万用户的 Pagewizz.com 和 Wizzley.com 上的做法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-09-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-10
      • 1970-01-01
      相关资源
      最近更新 更多