我可以将 Google Adsense For Search (AFS) 广告单元与 AMP 结合使用吗?

问题描述 投票:0回答:4

我需要在我的网站上放置 Google Adsense for Search (AFS) 广告单元(参见屏幕截图)。

AFS

但是我正在查看 AMP 文档,但没有找到此广告类型。 https://www.ampproject.org/docs/reference/amp-ad.html

有办法做到这一点还是 AMP 不支持这些广告?

问候,卡德莫斯

adsense amp-html
4个回答
1
投票

有一个讨论此主题的 Github 问题:https://github.com/ampproject/amphtml/issues/2659

如果您想要的集成是这样的:https://support.google.com/adsense/answer/9879?hl=en那么您应该尝试将其放入 amp-iframe 中。


1
投票

是的,可以在 AMP 页面上放置 CSA 广告

<amp-ad width=auto height=300
    type='csa'
    layout='fixed-height'
    data-afs-page-options='{"pubId": "partner-pub-id", "query": "flowers"}'
    data-afs-adblock-options='{"width": "auto", "number": 2}'>
</amp-ad>

https://github.com/ampproject/amphtml/blob/master/ads/google/csa.md


0
投票

AMP 目前支持 AdSense 等提供商。您可以使用 amp-ad 组件在您的页面上放置广告。请参阅示例片段。

<amp-ad width="320" height="250"
        type="adsense"
        data-ad-client="ca-pub-8125901705757971"
        data-ad-slot="7783467241">
</amp-ad>

您需要在

type
属性上指定所需的提供程序,然后设置特定于该提供程序的一些其他属性。

您也可以查看此博客以供参考。


-1
投票

我对 AFS 查询感兴趣 - 我需要一些帮助。我们可以用 DM 交谈吗?

© www.soinside.com 2019 - 2024. All rights reserved.