Author |
Topic  |
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 31 October 2003 : 22:42:03
|
I didn't think you were allowed to modify their code at all ? |
 |
|
TestMagic
Senior Member
   
USA
1568 Posts |
Posted - 31 October 2003 : 23:10:30
|
quote: Originally posted by laser
I didn't think you were allowed to modify their code at all ?
It's a new program that allows you to default to your ads of choice instead of their PSA's. Works pretty well, too.  |
Snitz rocks! · Search 2 |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
|
TestMagic
Senior Member
   
USA
1568 Posts |
Posted - 31 October 2003 : 23:20:43
|
From their site:
quote: The new Alternate Ads feature enables you to monetize your ad space in the event that Google is unable to serve targeted ads to your page.
|
Snitz rocks! · Search 2 |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 01 November 2003 : 00:02:14
|
ah, gotchya, I didn't see the need for it, but I do now  |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 10 November 2003 : 23:28:01
|
quote: Originally posted by gpspassion
I must be missing something obvious...
I don't think you're missing anything - I was just implementing this and realised the same as you - their code won't work :
google_alternate_ad_url = "<a href="http://www.google.com"><img src="http://www.mydomain/images/Picture1.jpg" /></a>";
This is the Google (JavaScript) variable assignment which is obviously wrong ...
so is it better to :
1. Replace all the " with ' within the variable value
OR
2. Prefix all " with \ within the variable value
|
 |
|
soxc
New Member

53 Posts |
Posted - 10 November 2003 : 23:41:54
|
The code works just put it in a separate include file. |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 10 November 2003 : 23:47:13
|
Why use a separate file ?
Surely it can work like this Google say to do it ? |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 11 November 2003 : 00:01:38
|
OK, I'm still trying to get it working inline (all the rest does, so shouldn't this as well ? ).
The \ didn't translate properly, but the use of ' seems to work, Google translates it into a " but then produces an error image anyway  |
 |
|
soxc
New Member

53 Posts |
Posted - 11 November 2003 : 00:01:49
|
You need to link to another file that just has the href and image tag.
I have a page called altgoogle.htm. In this file all I have is:
<A target=_blank HREF="http://www.amazon.ca"><IMG border="0" SRC="amazon_dvds.gif" width="468" height="60"></A>
Nothing else (I mean nothing).
I then have an inc_google_adsense.asp with the following:
<script type='text/javascript'><!-- google_ad_client = 'xxxxxxxx'; google_alternate_ad_url = "http://www.myserver.com/forum/altgoogle.htm"; google_ad_width = 468; google_ad_height = 60; google_ad_format = '468x60_as'; google_color_border = 'CCCCCC'; google_color_bg = 'FFFFFF'; google_color_link = 'FFFFFF'; google_color_url = '000000'; google_color_text = '000000'; //--></script> <script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'> </script>
|
Edited by - soxc on 11 November 2003 00:04:05 |
 |
|
soxc
New Member

53 Posts |
Posted - 11 November 2003 : 00:07:42
|
From the Google site: "Clickable Images: To load a clickable image, specify an HTML page containing the link information for your ad."
I also misread this and it drove me nuts. The example that they use is misleading. |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 11 November 2003 : 00:10:23
|
quote: Nothing else (I mean nothing).
OK, but if I'm doing that can I cheat a bit ....
make the altgoogle.htm a altgoogle.asp instead and randomise my banners ? 
I'm trying it now anyway  |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 11 November 2003 : 00:12:34
|
Thanks soxc, I misread it the same as you. I'll let you know my progress. |
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 11 November 2003 : 04:40:46
|
sorry to come in here with this possible 'dumb' question, but is there a completed mod for GoogleAdsense somewhere ? I have started a website in English, so now AdSense is supported (it doesn't support Dutch...), and I was wondering if someone has a completed mod. Thanks in advance. |
portfolio - linkshrinker - oxle - twitter |
 |
|
D3mon
Senior Member
   
United Kingdom
1685 Posts |
Posted - 11 November 2003 : 05:31:37
|
Showing Adsense on your forums is really easy with My Site Integration MOD. Just install the MOD, enable one of the panels (top/left/right/bottom) and place the AdSense code in the approriate inc file. |
 Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod "In war, the victorious strategist only seeks battle after the victory has been won" |
 |
|
Topic  |
|