Welcome to WebmasterWorld Guest from 54.226.25.231

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

How to disable Adsense to a particular url page?

     

jbayabas

1:08 pm on Jul 22, 2013 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



I want to block adsense from appearing on a specific url.

Example: I want to stop adsense from showing on the url domain com/page/73/

I know I can block a domain but I only want to block a specific url as above. HOw do I do that? I'm using Wordpress.

Play_Bach

1:29 pm on Jul 22, 2013 (gmt 0)

WebmasterWorld Senior Member play_bach is a WebmasterWorld Top Contributor of All Time 5+ Year Member



You probably need to hack the PHP to do an 'else' or 'else if' function [php.net...] to have your AdSense code as an include serve up on all pages except 73. There might be a plugin that already does that, but if not, that's how I'd do it.

[edited by: Play_Bach at 1:55 pm (utc) on Jul 22, 2013]

jbayabas

1:54 pm on Jul 22, 2013 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



On adsense, there's the "Allow & block ads" option. Do you think i can just add the specific url of my site in there and the ads will stop appearing?

Play_Bach

2:00 pm on Jul 22, 2013 (gmt 0)

WebmasterWorld Senior Member play_bach is a WebmasterWorld Top Contributor of All Time 5+ Year Member



I doubt that would work since that's for advertiser URLs and not your domain, but who knows. You could test it and see. If it backfires, then you have to go another way such as hacking the PHP or using a plugin.

[edited by: Play_Bach at 2:09 pm (utc) on Jul 22, 2013]

netmeg

2:09 pm on Jul 22, 2013 (gmt 0)

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



How easy it is depends on the theme you are using and where and how you serve your ads (in the content or in the sidebar)

I don't want ads on my search results pages, 404 pages, privacy policy, contact page, etc. so I removed the sidebars from those pages and also wrote a theme function to keep them from showing on those pages in the content. I also use a plugin to manage my ads.

The Allow & Block feature is only for blocking advertiser URLs and/or specific ads from appearing on your site, as I understand it. You could go into the Account Settings and Access and Authorization, but that seems to be site level only, not specific URLs.

Play_Bach

2:13 pm on Jul 22, 2013 (gmt 0)

WebmasterWorld Senior Member play_bach is a WebmasterWorld Top Contributor of All Time 5+ Year Member



Thanks netmeg. I was just editing my post to clarify the advertiser URLs and there you were. Good morning! :-)

jbayabas

2:35 pm on Jul 22, 2013 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



What plugin are you using, Netmeg?

jbayabas

2:44 pm on Jul 22, 2013 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



I read this instruction from Google Support. Do you think this apply to my problem?

[support.google.com...]

Play_Bach

2:49 pm on Jul 22, 2013 (gmt 0)

WebmasterWorld Senior Member play_bach is a WebmasterWorld Top Contributor of All Time 5+ Year Member



Nope. That's for advertiser URLs, not your domain.

netmeg

5:01 pm on Jul 22, 2013 (gmt 0)

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



We're not supposed to mention specific tools, but it's called adrotate, I'm sure you can find it if you search the wordpress repository.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month