Support » Plugin: Ad Inserter - Ad Manager & AdSense Ads » Posts id causes ads to hidden in home page too

  • Resolved NUCUTA

    (@cuta)


    I have this article written about sex robots and artificial intelligence
    https://nucuta.com/danger-of-sex-dolls-with-artificial-intelligence/
    and even though it’s just a social discussion, google doesn’t allow their ads on pages like these, so I decided to use only amazon ads in it. I added this page’s ID in the “POST ID” field in adinsert and selected “blacklist” to make google ads to not appear in this page only, but for some reason the google ads now don’t even show in the homepage. yeah I selected the “homepage” checkbox, to overcome from this problem, currently I use the URL field instead of POSTID field. still I am wondering why postid field doesn’t work.

    • This topic was modified 2 years, 4 months ago by NUCUTA.
Viewing 16 replies (of 16 total)
  • I see. It’s true the widget exists on all pages, so the PHP code inserted to header.php. So how come the ID is defined when it’s inserted to widget, but when it’s header.php ID isn’t defined? As I see the plugin doesn’t see the difference between the “POST”, “HOMEPAGE” when the code is inserted into the header.php via PHP, so it treats the HOMEPAGE as another page. Since in this HOMEPAGE, post id isn’t defined like you said it causes an unpredictable result. however, strangely if the “HOMEPAGE” checkbox is unchecked, and URL is blacklisted then the ad doesn’t appear in the homepage, meaning the plugin treats the HOMEPAGE as HOMEPAGE even when the PHP code is used. It sounds a bit weird. thanks anyway for helping, I left the URL, as it’s functioning.

    • This reply was modified 2 years, 4 months ago by NUCUTA.
    • This reply was modified 2 years, 4 months ago by NUCUTA.
    • This reply was modified 2 years, 4 months ago by NUCUTA.
Viewing 16 replies (of 16 total)
  • The topic ‘Posts id causes ads to hidden in home page too’ is closed to new replies.