• Hi,

    I’m trying to split ads by tag and category due to Google problem. Some of my posts are considered offending and my domain was suspended…

    With the help of a friend we tried this for ads in header.php, footer.php, sidebar.php, index.php, archive.php, search.php and single.php

    <?php if ( is_tag(array(‘violent’,’gambling’)) || is_category(array(9,’blue-cheese’,’Stinky Cheeses’)) || in_category( ‘category-slug’ ) ) : ?>
    —An alternative Adsense advertiser, a MMA/fight betting affiliate would be good—
    <?php else : ?>
    —Your Adsense Code or Adsense Split Test Code—
    <?php endif; ?>

    For ads in tag.php template:

    <?php if ( is_tag(array(‘violent’,’gambling’)) ) : ?>
    —An alternative Adsense advertiser, a MMA/fight betting affiliate would be good—
    <?php else : ?>
    —Your Adsense Code or Adsense Split Test Code—
    <?php endif; ?>

    For ads in category.php template:

    <?php if ( is_category(array(9,’blue-cheese’,’Stinky Cheeses’))) : ?>
    —An alternative Adsense advertiser, a MMA/fight betting affiliate would be good—
    <?php else : ?>
    —Your Adsense Code or Adsense Split Test Code—
    <?php endif; ?>

    It works for the tag pages and the category pages but it doesn’t work with ads in the header and under the post on index page and post page.

    We couldn’t get any better than this. Anybody have an idea please?

Viewing 1 replies (of 1 total)
  • That looks as if it’s something that might be possible via the advanced options of the “Who Sees Ads ?” plugin…

Viewing 1 replies (of 1 total)
  • The topic ‘split ads by tag and category due to Google problem’ is closed to new replies.