The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Google adsense script problem

3 posters

Go down

Solved Google adsense script problem

Post by bojantrbl December 28th 2009, 8:53 pm

Greetings to everyone,
as I saw I have a same problem like many people in this forum with google adsense. There are many posts and many answers. I tried all proposals , but I didn't solve the problem.So, if anyone know how to do this I 'll be more than happy! Also I think that if this problem cannot be solved, tell people once for ever,please!
thanks in advance!
avatar
bojantrbl
New Member

Posts : 19
Reputation : 0
Language : english

Back to top Go down

Solved Re: Google adsense script problem

Post by Etana December 28th 2009, 11:10 pm

Hello,


There is no problem with google adsense I think.

What is the problem ?

Cordially.
Etana
Etana
Forumember

Male Posts : 98
Reputation : 0
Language : French - English

http://kiniiri.forumactif.com/

Back to top Go down

Solved Re: Google adsense script problem

Post by bojantrbl December 28th 2009, 11:20 pm

Hi Etana,
problem is when I try to paste my "google adsense" html code on page it won't to display correctly. I
avatar
bojantrbl
New Member

Posts : 19
Reputation : 0
Language : english

Back to top Go down

Solved Re: Google adsense script problem

Post by Etana December 28th 2009, 11:41 pm

It's odd, but in some area, the line return are deteled, and so javascript comments can do problems, but you only need to remove these comment and that will be ok.

For exemple this in a widget doesn't work :

Code:
<script type="text/javascript"><!--
google_ad_client = "pub-2015175890842674";
/* 300x250, date de création 10/11/09 */
google_ad_slot = "4549510793";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
But if I remove :

Code:
<!--
And :

Code:
/* 300x250, date de création 10/11/09 */
And :

Code:
//-->
To have this code :

Code:
<script type="text/javascript">
google_ad_client = "pub-2015175890842674";
google_ad_slot = "4549510793";
google_ad_width = 300;
google_ad_height = 250;
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
The problem is solved Smile

But on an html page I've just tried it and that works even with the comments.

Cordially.
Etana
Etana
Forumember

Male Posts : 98
Reputation : 0
Language : French - English

http://kiniiri.forumactif.com/

Back to top Go down

Solved Re: Google adsense script problem

Post by bojantrbl December 28th 2009, 11:45 pm

Thanks for quick replay, I will try right now! thumleft

No this doesn't work,I have different code,if it isn't problem,and if you want to help me I can send you code, or paste here.


Last edited by bojantrbl on December 28th 2009, 11:52 pm; edited 1 time in total (Reason for editing : second opinion)
avatar
bojantrbl
New Member

Posts : 19
Reputation : 0
Language : english

Back to top Go down

Solved Re: Google adsense script problem

Post by Etana December 28th 2009, 11:54 pm

No problem, do like you want Wink


Cordially.
Etana
Etana
Forumember

Male Posts : 98
Reputation : 0
Language : French - English

http://kiniiri.forumactif.com/

Back to top Go down

Solved Re: Google adsense script problem

Post by bojantrbl December 28th 2009, 11:59 pm

ok this is the code:
Code:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-12215951-1");
pageTracker._trackPageview();
} catch(err) {}</script>
avatar
bojantrbl
New Member

Posts : 19
Reputation : 0
Language : english

Back to top Go down

Solved Re: Google adsense script problem

Post by Etana December 29th 2009, 12:16 am

But that is a google analytic code either that a google add code no ?

You just have to do like it's shown in the first of the 25 new functionalities :

Typlo wrote:
New update : 25 functionalities!


...

1 - Ability to use your own Google Analytics code simply : addition of a Google Analytics field in the admin panel for the integration of Google Analytics code on all versions of forums without using templates.
General > Google Analytics

Google adsense script problem 29092009101149

...


Cordially.
Etana
Etana
Forumember

Male Posts : 98
Reputation : 0
Language : French - English

http://kiniiri.forumactif.com/

Back to top Go down

Solved Re: Google adsense script problem

Post by bojantrbl December 29th 2009, 12:24 am

No, sorry my bad I gave you wrong code Very Happy
This is the right one :
Code:
<script type="text/javascript"><!--
google_ad_client = "pub-3010272007626952";
/* 160x600, created 12/28/09 */
google_ad_slot = "0468649110";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
ps: I have already try to delete those line which you told me to,but it just doesn't work.
avatar
bojantrbl
New Member

Posts : 19
Reputation : 0
Language : english

Back to top Go down

Solved Re: Google adsense script problem

Post by Etana December 29th 2009, 12:46 am

I've try to put :

Code:
<script type="text/javascript">
google_ad_client = "pub-3010272007626952";
google_ad_slot = "0468649110";
google_ad_width = 160;
google_ad_height = 600;
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
And that works for me, where are you trying to put it ?

In a post that dosn't work because javascript ( so script ) is desactivated.

Cordially.
Etana
Etana
Forumember

Male Posts : 98
Reputation : 0
Language : French - English

http://kiniiri.forumactif.com/

Back to top Go down

Solved Re: Google adsense script problem

Post by bojantrbl December 29th 2009, 1:16 am

Well I try to put in: Modules- Portal & Widgets- Forum widgets management- Create a widget...and than I try to make a new widget. When I made new widget I put it on some side and all I get is html code.
Here is the picture: Google adsense script problem Screen10
avatar
bojantrbl
New Member

Posts : 19
Reputation : 0
Language : english

Back to top Go down

Solved Re: Google adsense script problem

Post by Etana December 29th 2009, 10:39 am

Ah ok, have you the Google adsense script problem 16a2jpk icon over the area where you are adding the html code ?

If you have not it, you can click on the Google adsense script problem X4n2o0 icon to switch in the html mode Wink


Cordially.
Etana
Etana
Forumember

Male Posts : 98
Reputation : 0
Language : French - English

http://kiniiri.forumactif.com/

Back to top Go down

Solved Re: Google adsense script problem

Post by bojantrbl December 29th 2009, 11:18 am

Hi Etana,
I have already check all options about html in admin panel,and that too. Any idea what else could be?
Thanks!
avatar
bojantrbl
New Member

Posts : 19
Reputation : 0
Language : english

Back to top Go down

Solved Re: Google adsense script problem

Post by Etana December 29th 2009, 11:44 am

Have you add the code while having Google adsense script problem 16a2jpk hover the input area ?

I've just tried it and no problem mwii


Cordially.
Etana
Etana
Forumember

Male Posts : 98
Reputation : 0
Language : French - English

http://kiniiri.forumactif.com/

Back to top Go down

Solved Re: Google adsense script problem

Post by bojantrbl December 29th 2009, 11:53 am

As I told you before, I have try all the options, and I think it's the best that I give you the link to see your self whats going on? But of course only if it isn't a problem for you?
avatar
bojantrbl
New Member

Posts : 19
Reputation : 0
Language : english

Back to top Go down

Solved Re: Google adsense script problem

Post by bojantrbl December 29th 2009, 2:53 pm

Ok, Etana has solved the problem and this is the solution:

When you get "Google AdSense" script code its looks something like this :
Code:
<script type="text/javascript"><!--
google_ad_client = "pub-3xxxxxxxxxxxxxx";
/* 300x250, created 12/29/09 */
google_ad_slot = "3755798325";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

This is wrong version and it will not work!
TO WORK CODE MUST LOOKS LIKE THIS:
Code:
<script type="text/javascript">
google_ad_client = "pub-3xxxxxxxxxxxxxx";
google_ad_slot = "0108348422";
google_ad_width = 300;
google_ad_height = 250;
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

And that's all folks!

LONG LIVE ETANA!!!!
avatar
bojantrbl
New Member

Posts : 19
Reputation : 0
Language : english

Back to top Go down

Solved Re: Google adsense script problem

Post by Sanket December 30th 2009, 6:31 am

Since this thread appears to be solved, I will lock this thread and mark it as solved.
Google adsense script problem 2j4t5a8

Sanket Smile
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum