Forum Moderators: martinibuster
I signed up recently but was told by Google rep that the Ads cannot go on dynamic pages. My site is ASP (with pages indexed in G) and I have been seeing AdSense ads on dynamic pages around the web. Am I missing something? Has anyone here implemented AdSense on dynamic pages?
1. What types of pages and content trigger the most relevant ads?
You can place our HTML ad code on any content-based web page on which you would like to display AdWords ads, providing that the page complies with our program policies. However, if we are unable to crawl or understand those pages, we may not be able to serve relevant ads on those pages. In such cases, we may display public service ads or your specified Alternate Ads, for which you will not accrue any AdSense earnings. In order for us to serve the most relevant ads on each of your pages, here are a few tips for you to follow:If your page has frames, our script should be placed within the frame containing content.
Form-loaded content, dynamic content, flash movies, and images cannot be used to target ads to your pages.
If your page requires a login, we won't be able to crawl it.
If you have a robots.txt file, you'll need to remove it or add the following two lines to your robots.txt to allow our content bot to crawl your site:User-agent: Mediapartners-Google*
Disallow:
With session ids, the adsense bot believes every individual SID is an individual page.
This is a dynamic URL with a session id - http:*//www.yourdomain.com/index.php?s=7443300880d2bacb38235b9f81d63861
That s=7443300880d2bacb38235b9f81d63861 is the session ID, and it will be a different string of characters for each visitor, and it will change to a new string when they return for another visit.
Mediabot will visit every single one of those URLs that each of your visitors view, because it views each as an individual URL, not the same URL. The URLs have to be changed in order to use AdSense.
Does your site make use of session IDs or other dynamic variables such as them, which could be the issue Google has with your site?
The main issue is dynamic URLs, which are unable to display targeted ads. Dynamic URLs are those that would give both you and me a different URL when we visit the identical page, usually by way of session IDs.
Another important issue is pages whose content is so dynamic that the content at time X is unrelated to the content at time Y. This is because if Mediapartners visits at time X and decides the page is about foo, but then at time Y the content changes and the page is now about bar, but ads for foo are still being shown, the ads aren't relevant. Relevancy is critical to the success of AdSense.
So the main issues are that 1. if URLs (including query strings) are always unique (for example include session IDs) or don't get repeat visits (for example many SERPs), content-targeted ads will never be displayed and 2. pages whose content change regularly and widely (blogs, pages with random content, database-driven pages whose underlying data change frequently) could end up showing ads that are mistargeted (targeted towards content from a previous version of the page).
But if your dynamic urls operate in a way similar to static urls, then you will be ok.
Not to be picky, but the issue is simply whether the content regularly changes and if it changes enough so that Mediapartner's rather infrequent visits to the page would result in ads being displayed which are often mis-targeted.
If I have a database-driven page with secondary content (side boxes, random photos, real-time date/time, a random blurb, etc.), but the primary content of the page is fairly static AdSense will work well. It makes no difference whether the URL has a query string (?key=value) in it or whether the file extension is .html (could still be database-driven but only updated on a regular schedule or as DB data changes, could still be extremely dynamic), .php (could be completely static).
If anyone would like to take a look at the code to see if they can make the necessary modifications sticky me and we can discuss terms. I think there's a way to just do it through mod_rewrite.
[edited by: matthew288 at 8:53 pm (utc) on Oct. 17, 2003]
One of my sites is in PHP and uses Session ID's. Is there any general rule for eliminating the session ID's so that I can use AdSense?
Sure. Instead of carrying the session ID in the URL, store it in a cookie. As a programmer I can tell you that what it will take to make that change depends on how your site is coded. The fact that your programmer doesn't know about this option may be a red flag.
Even though you're not a programmer, you should be able to understand enough from the following page of the PHP manual to discuss with your programmer.
[php.net...]
If you have a robots.txt file, you'll need to remove it or add the following two lines to your robots.txt to allow our content bot to crawl your site:
User-agent: Mediapartners-Google*
Disallow:
That's a (semi) wrong advice! As long as you don't explicitly disallow mediapartners' bot (or all bots), you neither have to remove robots.txt nor have to explicitly allow mediapartners bot!