Forum Moderators: martinibuster

Message Too Old, No Replies

problem with setting up adsense

         

on way to fame

10:49 am on Jul 8, 2004 (gmt 0)

10+ Year Member



Hi,
i recently got approved by the google adsense program, and although i am no programming expert i know a little. so i added the code to the three main files, viewforum_body.tpl, viewtopic_body.tpl and index_body.tpl , now here's the situation, the ads r showing correctly on the index page, on the viewforum_body page i tried to put the code at diff. places but its still showing an error and on the viewtopic pages there is an extremely interesting situation, its showing ads on some topics whereas on most of them its showing an error...the site is located at <snip>

can anyone tell me what could be the reason for this? or can anyone who is using google adsense show me how they have pasted the code ( they may remove their id part the code). anyhelp would be greatly appreciated.

[edited by: Jenstar at 2:42 pm (utc) on July 8, 2004]
[edit reason] No URLS as per TOS, please! [/edit]

arrowman

12:42 pm on Jul 8, 2004 (gmt 0)

10+ Year Member



so i added the code to the three main files, viewforum_body.tpl, viewtopic_body.tpl and index_body.tpl

This doesn't tell us much, as we don't know what is going on on your server. You haven't even mentioned a programming language.

All that matters is the generated HTML.

its still showing an error

It? An error? Telepathy?

can anyone tell me what could be the reason for this?

There's an error in your code, that causes it to report an error message.

or can anyone who is using google adsense show me how they have pasted the code ( they may remove their id part the code).

Just copy & paste. Couldn't be any easier.

Jenstar

2:43 pm on Jul 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you go to the support site for your forum software, you will likely find support for adding AdSense to the forums. If it is phpbb, they have quite a lot of help on it, and I also believe a hack available.

on way to fame

9:50 pm on Jul 8, 2004 (gmt 0)

10+ Year Member



thanks for the help.
the problem is sorted now, the error msg was being displayed when no ads were available, it wasn;'t showing the other banner i had set up, but when i allowed public service ads it worked, has anyone faced this problem before?

richmondsteve

9:55 pm on Jul 8, 2004 (gmt 0)

10+ Year Member



on way to fame, did you enter a relative URL or absolute URL for the alternate ad? It must be an absolute URL. Please verify that it is and that the URL exists.

on way to fame

6:48 am on Jul 13, 2004 (gmt 0)

10+ Year Member



sorry if its a leame questions, but i guess an absolute url is the one where the url is given directly, for eg. www . ____ .com , whereas in a relative one we use a text link, for eg. check this out ..i may well be wrong....but if i am right, i used an absolute url......so please correct me?

rish

7:09 am on Jul 13, 2004 (gmt 0)

10+ Year Member



it needs to be absolute starting with http://
eg. [example.com...]

on way to fame

7:41 pm on Jul 13, 2004 (gmt 0)

10+ Year Member



thanks.
that was exactly what i tried but anyways i will retry.