【问题标题】:Is it possible that display adsense in UIWebView?是否可以在 UIWebView 中显示 adsense?
【发布时间】:2017-06-02 18:51:46
【问题描述】:

我尝试在 UIWebView 中显示 adsense。喜欢...

NSString *test = @"
    <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--------------'
        data-ad-slot='-------'>
    </ins>
<script>
    (adsbygoogle = window.adsbygoogle || []).push({});
</script>
"
[webView loadHTMLString:test baseURL:nil];

只有空的空间。 如何显示?

【问题讨论】:

标签: ios uiwebview adsense


【解决方案1】:

不,您不能在移动应用程序中使用 AdSense 移动版违反了 AdSense 政策。

https://support.google.com/adsense/answer/3394713?hl=en&ref_topic=1250104#2

【讨论】:

    猜你喜欢
    • 2011-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-22
    • 2014-02-08
    • 1970-01-01
    相关资源
    最近更新 更多