WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks and Adsense (15 posts)

  1. carlytx
    Member
    Posted 1 year ago #

    We set up several pages on a wordpress site and implemented adsense ads in sidebar.php. The ads were displaying without a problem.

    We decided to change the permalinks from the default setting to the postname setting.

    All pages on the site appeared without a problem after this change however the adsense ads disappeared on all pages with the exception of the root URL (its address did not change from mysite.com while all others changed from mysite.com/?p=15 to mysite.com/my-post-name, etc.)

    I noticed that occasionally some ads appear on a page but on re-load they disappear. I also reverted back to the default permalink setting and all the ads re-appeared. On setting it back to the postname setting they disappeared again.

    It has been a day since I made the permalink change and the ads still do not appear.

    Anyone have a suggestion as to what is going on here?

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Are you using any plugin to inject ads or placing them manually?

  3. carlytx
    Member
    Posted 1 year ago #

    We placed them manually in sidebar.php.

    We took the code that google adsense generates and just pasted it in.

    The thing I don't understand is why the default permalink setting works without a problem but the postname setting doesn't. Same adsense code.

  4. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Theoretically it should work both ways. If you can post a link to your site, I can analyze and tell you why.

  5. carlytx
    Member
    Posted 1 year ago #

    I can't post a link to the site because it is under development but here is the sidebar.php code. I don't know if this helps at all. Thanks

    [162 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  6. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    OK, fine. You may post the link when your site goes live.
    Perhaps you know that the AdSense policies and terms prohibits you to display ads on sites under development/construction. If you do so, it is the surest way to get your account cancelled.

    Please mark this topic as resolved.

    No more questions on this topic please.

  7. carlytx
    Member
    Posted 1 year ago #

    thanks for the info.

    actually I would like to see if anyone else has run into this problem and how it was resolved. I saw a couple of posts about this on other sites but there was no clear resolution.

    BTW when I said the site is under development it is being updated for content not physical changes to the site.

  8. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Do you have an AdSense account? If so, why do you look into other sites when clear instructions are available just where your account is?

  9. carlytx
    Member
    Posted 1 year ago #

    I don't know what you are talking about. "look into other sites"?????

    I Googled the problem I had with changing from default permalinks to postname permalinks (a wordpress function) and found a few references to this identical problem. A couple of posts about this are on the Google site itself.

    I did not see a resolution so I posted here. This is a forum to try to solve problems right?

    I would like to hear from other people who may have run into this issue.

  10. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    A couple of posts about this are on the Google site itself.

    Please post it.

    This is a forum to try to solve problems right?

    Only WordPress problems. Not problems related to Google or others. I answered you only because of fellow-feeling.

    I don't know what you are talking about

    This shows you do not have your own AdSense account from where you can verify it immediately.

  11. carlytx
    Member
    Posted 1 year ago #

    Here is a link to the google thread I mentioned:

    http://productforums.google.com/forum/#!topic/adsense/QexchuiwcRs

    there are other mentions of this issue on other sites.

    Please don't respond to this any longer. I am sure that there are more experienced people on this site who truly are interested in helping. And this is a WordPress related issue since when I toggle between the default setting and the postname setting as permalinks the ads appear and disappear.

    As far as having an adsense account you are clueless again. How could I have this problem if I didn't have and adsense account. I set up the ads and installed them in the sidebar.php file as I indicated in my first post here.

    Again I thank you for your help but please move on. I would like to hear from others here who are interested in solving problems not attacking WordPress users.

  12. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    This is not a WordPress issue.

  13. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Here is a link to the google thread I mentioned:

    http://productforums.google.com/forum/#!topic/adsense/QexchuiwcRs

    This link contains nothing on the topic. Trying to mislead others?

  14. carlytx
    Member
    Posted 1 year ago #

    esmi

    if this is not a WordPress related issue why do the ads appear and disappear when you toggle between default and postname settings?

  15. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    This is specific to your site. No one else appears to be reporting this kind of issue and I'm sure, if the permalink structure was a problem with Adsense, we'd have heard about it by now. Very loudly.

Topic Closed

This topic has been closed to new replies.

About this Topic