This is a sample code i have
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1234567778889";
/* Firest add */
google_ad_slot = "4634587934";
google_ad_width = 574;
google_ad_height = 50;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

When I paste this code in ad section it is being changed as given below

<!-- google_ad_client = "ca-pub-1234567778889"; /* Firest add */ google_ad_slot = "4634587934"; google_ad_width = 574; google_ad_height = 50; //-->

Can anyone tell me what is the problem and what is the solution?

Recommended Answers

Firstly, 574x50 is not a valid size. Copy and paste the code exactly as shown from your AdSense account.

Jump to Post

All 3 Replies

Firstly, 574x50 is not a valid size. Copy and paste the code exactly as shown from your AdSense account.

try

{literal}
  JavaScript code. 
{/literal}

574x90 is a sample dimension. I have another height and width. This is a sample. Please tell me reason.@ dani

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.