网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   Google Adsense (https://www.0058.net/forumdisplay.php?f=2)
-   -   google_alternate_ad_url (https://www.0058.net/showthread.php?t=93)

topvip 2006-02-07 07:57 AM

google_alternate_ad_url
 
http://www.google.com/support/adsense/bin/static.py?page=alternateads.html#html

1. you must specify the URL of the ad that you want to use as your alternate for the Adsense.

for example if your adpage is http://mydomain.com/ad.html then on the code it should be written


....
google_alternate_ad_url = "http://mydomain.com/ad.html";
...

And if you are using a script it should be written:

....
google_alternate_ad_url = "http://mydomain.com/myadscript?someotheroptions1234";
...

And it is true that the alternate ad is placed in an iframe that Google Adsense automatically created.

So in your case, you are using this code:
Quote:

google_alternate_ad_url = "http://mydomain.com";
the URL that you use is not actually an ad page but a base domain of a website. You must change that with the URL of an ad page or ad script.


2. Just make sure it's the same size as your ad unit. E.g if you use 468x60 then you need to create a 468x60 banner.

Then all you need to do is create a html file for example. myad.html and insert the following code into the file:
Quote:

<a href="http://yoursite.com"><img src="yourbanner" alt="your info" title="your title" border="0"></a>
And you should be all set.


All times are GMT +8. The time now is 03:18 AM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.