Forum Moderators: martinibuster
The other day I had an idea - since I have multiple sites,
why not use AdSense "google_alternate_ad_url" to do some
cross-advertising. That is, I'd look at my site URL and
show few links for other sections of the same site.
I figured this would be a simple task - I'd just point the
alternate_ad_url at an ASP page and inside the ASP, I'd
look at the URL of the page that runs the ad.
This way the alternate ads could be specific to the domain,
and thus relevant.
However, this is where I've encountered a problem: when I
access CGI variable SERVER_NAME, then instead of the
'current page URL', I am getting the 'URL of a page
where the alternate ad is hosted on'.
To illustrate, I am displaying a page from Server1, while
the alternate ad code is at Server2. When I try to figure
out which page the ad is being shown on, I am getting
Server2, but I want Server1, since this is how was planning
to target the alternate ads.
Any ideas?
Andy