Google adsense script problem
3 posters
Page 1 of 1
Google adsense script problem
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!
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!
bojantrbl- New Member
- Posts : 19
Reputation : 0
Language : english
Re: Google adsense script problem
Hello,
There is no problem with google adsense I think.
What is the problem ?
Cordially.
There is no problem with google adsense I think.
What is the problem ?
Cordially.
Re: Google adsense script problem
Hi Etana,
problem is when I try to paste my "google adsense" html code on page it won't to display correctly. I
problem is when I try to paste my "google adsense" html code on page it won't to display correctly. I
bojantrbl- New Member
- Posts : 19
Reputation : 0
Language : english
Re: Google adsense script problem
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 :
But on an html page I've just tried it and that works even with the comments.
Cordially.
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>
- Code:
<!--
- Code:
/* 300x250, date de création 10/11/09 */
- 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>
But on an html page I've just tried it and that works even with the comments.
Cordially.
Re: Google adsense script problem
Thanks for quick replay, I will try right now!
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.
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)
bojantrbl- New Member
- Posts : 19
Reputation : 0
Language : english
Re: Google adsense script problem
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>
bojantrbl- New Member
- Posts : 19
Reputation : 0
Language : english
Re: Google adsense script problem
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 :
Cordially.
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
...
Cordially.
Re: Google adsense script problem
No, sorry my bad I gave you wrong code
This is the right one :
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>
bojantrbl- New Member
- Posts : 19
Reputation : 0
Language : english
Re: Google adsense script problem
I've try to put :
In a post that dosn't work because javascript ( so script ) is desactivated.
Cordially.
- 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>
In a post that dosn't work because javascript ( so script ) is desactivated.
Cordially.
Re: Google adsense script problem
Ah ok, have you the icon over the area where you are adding the html code ?
If you have not it, you can click on the icon to switch in the html mode
Cordially.
If you have not it, you can click on the icon to switch in the html mode
Cordially.
Re: Google adsense script problem
Hi Etana,
I have already check all options about html in admin panel,and that too. Any idea what else could be?
Thanks!
I have already check all options about html in admin panel,and that too. Any idea what else could be?
Thanks!
bojantrbl- New Member
- Posts : 19
Reputation : 0
Language : english
Re: Google adsense script problem
Have you add the code while having hover the input area ?
I've just tried it and no problem
Cordially.
I've just tried it and no problem
Cordially.
Re: Google adsense script problem
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?
bojantrbl- New Member
- Posts : 19
Reputation : 0
Language : english
Re: Google adsense script problem
Ok, Etana has solved the problem and this is the solution:
When you get "Google AdSense" script code its looks something like this :
This is wrong version and it will not work!
TO WORK CODE MUST LOOKS LIKE THIS:
And that's all folks!
LONG LIVE ETANA!!!!
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!!!!
bojantrbl- New Member
- Posts : 19
Reputation : 0
Language : english
Re: Google adsense script problem
Since this thread appears to be solved, I will lock this thread and mark it as solved.
Sanket
Sanket
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» Google Adsense Problem
» How to place google ads from my google adsense account on my forum?
» Google Adsense
» Google AdSense
» Google Adsense
» How to place google ads from my google adsense account on my forum?
» Google Adsense
» Google AdSense
» Google Adsense
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum