Mein Ziel adsense ist NICHT Dispaly wenn Browserjs: wie AdSense auf Cordova NICHT anzeigen?
So cordova ist, ich habe diese 2-Codes:
<script>
var app = document.URL.indexOf('http://') === -1 && document.URL.indexOf('https://') === -1;
if (!app) {
// DISPLAY adsense here
}
</script>
und adsense Block:
<div style="margin-bottom:25px;height:180px;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- responsive-adaptable -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-xxxxx"
data-ad-slot="6768980312"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
Ich weiß nicht, wie Leim Sie zusammen !
document.write() könnte hier dein Freund sein. – epascarello
wäre es in Ordnung mit AdSense-Politik? – yarek
Ich kenne die Adsense-Richtlinie nicht. Nicht sicher, warum document.write gegen die Richtlinie verstoßen würde. – epascarello