Best Blackhat Forum

Full Version: Block Ads in Wordpress, while mobile view
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,
Quite recently I've created a native app (webview app)of my wordpress website and this wordpress site is using responsive theme as well and showing adsense as well. Now I want to publish this app at play store. The problem is that Adsense are not allowed to be shown in a native android app. So I want to know how I can block adsense in this native android app? as I will place admob in this android app. I searched a lot but could not find that how I can do this? Adsense are showing in mobile view of my website but I want that these adsense would not show in mobile view, specially in android web view.

thanks in advance
I would like to recommend you to use this code

{% if not craft.request.isMobileBrowser %}
{your_ad_code}
{% endif %}
Reference URL's