If a user browses to a thread, the call for an ad results in a generic ad if Google has nothing for the request URL in the database. It will then fire off a spider and within a minute the next request for the same URL will result in a page-specific set of ads instead of the generic one. The problem is this: My logged-in users will always get the generic ad (which makes no money) because each and every one of them will see a different URL. The only way in this case for them to see targeted ads would eb multiple visits to the same page.
Now I am guessing the SQ section is there to prevent session hijacking and XSS, but I personally would prefer to balance decreased security with the ability to use Google adsense.
Anyhow, I am going to investigate alternate solutions and have contacted Google support to look for a solution. If there was a way to have a web browser strip the dynamic portion before making a request to google I would have something. This for example is the gode added to a google page:
<script TYPE="text/javascript"><!--
google_ad_client = "pub-2660766695269970";
google_alternate_ad_url = "http://www.vbmysql.com/includes/amazon.html";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_color_border = "2184BD";
google_color_bg = "FFFFFF";
google_color_link = "666666";
google_color_url = "000000";
google_color_text = "000000";
//--></SCRIPT>
<script TYPE="text/javascript"
SRC="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</SCRIPT>
I am pretty sure that Google operates by taking the referrerid as the page ads are needed for, and if I can get a browser to modify it and remove the trailing ?SQ portion then Google's bots will be happy. I shall have to talk to my Javascript experts.]]>