Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Google Adsense
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 8

laser
Advanced Member

Australia
3859 Posts

Posted - 31 October 2003 :  22:42:03  Show Profile
I didn't think you were allowed to modify their code at all ?
Go to Top of Page

TestMagic
Senior Member

USA
1568 Posts

Posted - 31 October 2003 :  23:10:30  Show Profile  Visit TestMagic's Homepage
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
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 31 October 2003 :  23:11:18  Show Profile
it's not modifying their code. they allow for you to place an alternate ad if their code ends up generating something generic.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

TestMagic
Senior Member

USA
1568 Posts

Posted - 31 October 2003 :  23:20:43  Show Profile  Visit TestMagic's Homepage
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
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 01 November 2003 :  00:02:14  Show Profile
ah, gotchya, I didn't see the need for it, but I do now
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 10 November 2003 :  23:28:01  Show Profile
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
Go to Top of Page

soxc
New Member

53 Posts

Posted - 10 November 2003 :  23:41:54  Show Profile
The code works just put it in a separate include file.
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 10 November 2003 :  23:47:13  Show Profile
Why use a separate file ?

Surely it can work like this Google say to do it ?
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 11 November 2003 :  00:01:38  Show Profile
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
Go to Top of Page

soxc
New Member

53 Posts

Posted - 11 November 2003 :  00:01:49  Show Profile
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
Go to Top of Page

soxc
New Member

53 Posts

Posted - 11 November 2003 :  00:07:42  Show Profile
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.
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 11 November 2003 :  00:10:23  Show Profile
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
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 11 November 2003 :  00:12:34  Show Profile
Thanks soxc, I misread it the same as you. I'll let you know my progress.
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 11 November 2003 :  04:40:46  Show Profile  Visit MarcelG's Homepage
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
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 11 November 2003 :  05:31:37  Show Profile  Visit D3mon's Homepage
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"
Go to Top of Page
Page: of 8 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.51 seconds. Powered By: Snitz Forums 2000 Version 3.4.07