【问题标题】:Can I place Google Adsense Ads in Facebook Instant Articles despite the Iframes?尽管有 iframe,我可以在 Facebook Instant Articles 中放置 Google Adsense 广告吗?
【发布时间】:2016-06-27 00:46:51
【问题描述】:

我正在为我的网站实施 Facebook Instant Articles,但遇到了以下问题。

Facebook 表示您可以实现任何您希望的广告代码,甚至是 Google Double Click for Publishers,当您当前的广告资源中没有广告投放时,它使用 Adsense 作为默认备份,但代码位于 iframe 中:

<figure class="op-ad">
    <!-- Use this for your ads -->
    <iframe src="" height="50" width="320"></iframe>
</figure>

问题是,我使用 Google Adsense 投放广告,但 iframe 存在问题:

http://adsense.blogspot.ro/2011/06/clarifying-our-ad-implementation.html

有人知道如何解决这个难题吗?

【问题讨论】:

  • 那篇博文已经很老了 - 是否有更新的 DFP 文档可以涵盖这一点? AFAIK 一些发布商正在成功使用 DFP / adsense
  • OT:Instant Articles 的全部意义在于呈现超快速加载的轻量级内容……填充互联网的害虫,这是当今大多数网站加载时间长的主要原因 -又名广告,从外部供应商加载到它们中,似乎是对恕我直言概念的扭曲。
  • Facebook 政策目前仅允许您通过即时文章投放 FB 受众网络广告或直销广告 - 根据我们的经验,他们的政策团队将诸如 adsense 之类的网络广告标记为要删除的内容

标签: facebook iframe adsense facebook-instant-articles


【解决方案1】:

您可以使用 Adsense 标记。使用 iframe 对我来说效果很好。

别忘了在文章标题中使用这个:

<meta property="fb:use_automatic_ad_placement" content="true">

这是一个标签的例子:

<figure class="op-ad">

      <iframe height="250" style="border:0;margin:0;padding:0;" width="300">

      <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

   <ins class="adsbygoogle"

     style="display:inline-block;width:300px;height:250px"

     data-ad-client="ca-pub-XXXXXXXXXXXX"

     data-ad-slot="XXXXXXXXXXX"></ins>

<script>

(adsbygoogle = window.adsbygoogle || []).push({});

</script>

    </iframe>

</figure>

放置一个上下文,你的代码会是这样的:

    <!doctype html>
    <html lang="pt-br" prefix="op: http://media.facebook.com/op#">
    <head>
      <meta charset="utf-8">
      <link rel="canonical" href="https://yoursite/your-article/">
     <meta property="fb:use_automatic_ad_placement" content="true">

       <meta property="fb:article_style" content="default">

       <meta property="op:markup_version" content="v1.0">
    </head>
    <body>

        <article>
            <header>
                <!-- cover -->
                  <figure class="op-ad">

          <iframe height="250" style="border:0;margin:0;padding:0;" width="300">

          <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

    <!-- 300x250 - Rodapé Texto -->

    <ins class="adsbygoogle"

         style="display:inline-block;width:300px;height:250px"

         data-ad-client="ca-pub-XXXXXXXXXXXX"

         data-ad-slot="XXXXXXXXXXX"></ins>

    <script>

    (adsbygoogle = window.adsbygoogle || []).push({});

    </script>

        </iframe>

    </figure>
                                <figure>
                        <img src="https://yoursite/your-article/image.jpg" />

                                        </figure>

                <!-- The title and subtitle shown in your Instant Article -->
                <h1>Title;</h1>

                <!-- author(s) -->
                <address>
                    Writen by <a>Author</a>
                                </address>

                <!-- publication date/time -->
                <time class="op-published" datetime="2016-08-16T17:47:42+00:00">16 ago 2016</time>

                <!-- modification date/time -->
                <time class="op-modified" datetime="2016-08-16T17:47:42+00:00">16 ago 2016</time>

            </header>

 <!-- Article body goes here (CONTINUE LIKE A NORMAL INSTANT ARTICLE) -->

【讨论】:

    【解决方案2】:

    AdPlugg 可以做到这一点。你上面的标签会变成:

    <figure class="op-ad">
        <!-- Use this for your ads -->
        <iframe src="http://www.adplugg.com/serve/<your_adplugg_access_code>/html/1.1/index.html?zn=fb_zone_1" height="50" width="320"></iframe>
    </figure>
    

    然后,您可以将 AdSense 代码放入“自定义”AdPlugg 广告中,并将其配置为投放到您的“fb_zone_1”AdPlugg 区域(如上面示例网址中所指定)。

    使用此解决方案,您可以根据需要将其他广告(联属网络、直接购买等)轮流到该区域。它还允许您更新您的广告,而无需更新您的整个即阅文供稿。

    我在博客上发布了有关如何操作的更多信息:Facebook Instant Article Ads

    在这里提出/回答了一个类似的问题(可能有帮助):Add DFP DoubleClick inside a Facebook Instant article

    免责声明:我为 AdPlugg 工作。


    更新:目前的Facebook Instant Articles Policies 似乎只允许投放直销广告或 Facebook Audience Network 广告。不允许使用其他广告网络。根据这些政策,您仍然可以使用 AdPlugg,但只能投放您直接出售给广告商的广告资源,而不是 AdSense 广告。

    【讨论】:

    • 好吧,即使您为 AdPlugg 工作很辛苦,但从某种意义上说,您应该通过自己的广告代码以某种方式提供 Adsense。
    【解决方案3】:

    """Facebook 表示您可以实施任何您希望的广告代码,甚至使用 Adsense 作为默认备份的 Google Double Click for Publishers。"""

    您不能使用 adsense 作为默认备份。这是违反规则的。

    【讨论】:

      猜你喜欢
      • 2018-06-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多