|
I am trying to configure an OSQA install at fetchsparky.com. I have google adsense code in the sidebar upper and lower which appears fine on the main page. However, if I change the posts per page to either 15 or 50 both sidebar ads disappear, the other sidebar content such as tags question count still show just the upper and lower sidebar disappear. The sidebar is still spaced out as thought they were appearing. I checked inside questions.html and everything looks fine, I cant hard code content into that area and have it appear. Anyone have any idea what I might be doing wrong? Thanks in advance for any help or hints. |
|
Another update, I found the area on webmaster tools that allows me to test the google ad bots using robots.txt and now I have the ads working. Thanks so much for all your help! |
|
The code seems to be there. The thing is that google has not scanned those pages yet so it has no content to show. Instead of the google adsense code, change the blocks content to some random piece of text and you can verify that the text will be visible when you change the page sizes. Hi Hernani thanks for the help yesterday. I did play around with the add and confirmed that if i put static content in that area it will show up. How do I get google to scan those pages so the ads will show up? I looked in my robots.txt file to see if it was blocking google but everything appears to be set up fine. I have been comparing my page to other OSQA sites that have adsense on them and everything appears to be set up the same. Thanks in advance to any help.
(15 Jul '11, 12:05)
michael_nr
Just give it time. It will eventually show up I think.
(15 Jul '11, 12:17)
Hernani Cerq... ♦♦
I just checked my google webmaster tools account and ran Fetch as Googlebot for page http://fechsparky.com/questions/?sort=active&pagesize=30 and it gives me Fetch Status "Denied by robots.txt" The robots file i am using is the default file, I didn't make any changes. I removed all txt from the robots file and it is still giving me the "Denied by robots.txt" possible that i have to wait for the change to update with google? Any thoughts?
(15 Jul '11, 12:21)
michael_nr
|
Does this have anything to do with Markdown mode? Does adsense script work in Markdown? Would i need to convert the script to markdown or render the block with html? Anyone know? Thanks
yes, you need to use html mode, otherwise the markdown parser will strip your tags.
Thanks for the suggestion. I'm trying it in html mode now and it is still behaving the same way. Ads work fine on the main page, but if I change the posts per page or search the ads disappear.
Yes that is a different (and very weird) problem. Was just commenting about the fact that you were using markdown to render html tags. The solution to your problem will follow in an answer.