Ios 是否可能在UIWebView中显示adsense?
我试图在UIWebView中显示adsense。像Ios 是否可能在UIWebView中显示adsense?,ios,uiwebview,adsense,Ios,Uiwebview,Adsense,我试图在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'
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];
NSString*test=@”
(adsbygoogle=window.adsbygoogle | |[]).push({});
"
[webView loadHTMLString:TestBaseURL:nil];
只有空的地方。
如何显示它?不,您不能在移动应用程序中使用AdSense for mobile违反AdSense策略 请检查此项,它将对您有所帮助。谢谢