Skip to main content
AdSense ads are not showing after I redirected my blog to a custom domain.
Source Link
added 116 characters in body
Source Link
ale
  • 52.9k
  • 42
  • 165
  • 314

After changing my blog from

Blogger URL: http://wereya.blogspot.com
Custom Domain URL: <http://www.wereya.com>

You don't need to correct the codes of Adsense if you add the codes onto the side-bar on your blog since the side-bar is using HTML/Javascript which is not allow xml.

But if you go to Dashboard > Design > Edit HTML (This HTML editor allows xml), you need to modify the codes of Adsense  :

  1. Change && into &&amp;
  2. Change << into <&lt;
  3. Change >> into >&gt;
  4. Change "" into "&quot;
  5. Change '' into ' For example, the blue codes below is original codes of Adsense, and the yellow codes below is what I have after changed all the symbols :&apos;
  

<script type="text/javascript"><!-- google_ad_client = "pub-0690220431785051"; /* 728x90For example, created 8/7/10 */ google_ad_slot = "8652075993"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>the blue codes below is original codes of Adsense, and the yellow codes below is what I have after changed all the symbols:

<script type="text/javascript"><!--
google_ad_client = "pub-0690220431785051";
/* 728x90, created 8/7/10 */
google_ad_slot = "8652075993";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = &quot;pub-0690220431785051";
/* 728x90, created 8/7/10 */
google_ad_slot = &quot;8652075993&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;

After changing my blog from

Blogger URL: http://wereya.blogspot.com
Custom Domain URL: <http://www.wereya.com>

You don't need to correct the codes of Adsense if you add the codes onto the side-bar on your blog since the side-bar is using HTML/Javascript which is not allow xml.

But if you go to Dashboard > Design > Edit HTML (This HTML editor allows xml), you need to modify the codes of Adsense  :

  1. Change & into &
  2. Change < into <
  3. Change > into >
  4. Change " into "
  5. Change ' into ' For example, the blue codes below is original codes of Adsense, and the yellow codes below is what I have after changed all the symbols :
 

<script type="text/javascript"><!-- google_ad_client = "pub-0690220431785051"; /* 728x90, created 8/7/10 */ google_ad_slot = "8652075993"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

After changing my blog from

Blogger URL: http://wereya.blogspot.com
Custom Domain URL: <http://www.wereya.com>

You don't need to correct the codes of Adsense if you add the codes onto the side-bar on your blog since the side-bar is using HTML/Javascript which is not allow xml.

But if you go to Dashboard > Design > Edit HTML (This HTML editor allows xml), you need to modify the codes of Adsense:

  1. Change & into &amp;
  2. Change < into &lt;
  3. Change > into &gt;
  4. Change " into &quot;
  5. Change ' into &apos;
 

For example, the blue codes below is original codes of Adsense, and the yellow codes below is what I have after changed all the symbols:

<script type="text/javascript"><!--
google_ad_client = "pub-0690220431785051";
/* 728x90, created 8/7/10 */
google_ad_slot = "8652075993";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = &quot;pub-0690220431785051";
/* 728x90, created 8/7/10 */
google_ad_slot = &quot;8652075993&quot;;
google_ad_width = 728;
google_ad_height = 90;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;
AdSense ads are not showing after I redirected my blog to a custom domain.
Source Link

After changing my blog from

Blogger URL: http://wereya.blogspot.com
Custom Domain URL: [http<http://www.wereya.com][1]com>

You don't need to correct the codes of Adsense if you add the codes onto the side-bar on your blog since the side-bar is using HTML/Javascript which is not allow xml.

But if you go to Dashboard > Design > Edit HTML (This HTML editor allows xml), you need to modify the codes of Adsense :

  1. Change & into &
  2. Change < into <
  3. Change > into >
  4. Change " into "
  5. Change ' into ' For example, the blue codes below is original codes of Adsense, and the yellow codes below is what I have after changed all the symbols :

<script type="text/javascript"><!-- google_ad_client = "pub-0690220431785051"; /* 728x90, created 8/7/10 */ google_ad_slot = "8652075993"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

After changing my blog from

Blogger URL: http://wereya.blogspot.com
Custom Domain URL: [http://www.wereya.com][1]

You don't need to correct the codes of Adsense if you add the codes onto the side-bar on your blog since the side-bar is using HTML/Javascript which is not allow xml.

But if you go to Dashboard > Design > Edit HTML (This HTML editor allows xml), you need to modify the codes of Adsense :

  1. Change & into &
  2. Change < into <
  3. Change > into >
  4. Change " into "
  5. Change ' into ' For example, the blue codes below is original codes of Adsense, and the yellow codes below is what I have after changed all the symbols :

<script type="text/javascript"><!-- google_ad_client = "pub-0690220431785051"; /* 728x90, created 8/7/10 */ google_ad_slot = "8652075993"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

After changing my blog from

Blogger URL: http://wereya.blogspot.com
Custom Domain URL: <http://www.wereya.com>

You don't need to correct the codes of Adsense if you add the codes onto the side-bar on your blog since the side-bar is using HTML/Javascript which is not allow xml.

But if you go to Dashboard > Design > Edit HTML (This HTML editor allows xml), you need to modify the codes of Adsense :

  1. Change & into &
  2. Change < into <
  3. Change > into >
  4. Change " into "
  5. Change ' into ' For example, the blue codes below is original codes of Adsense, and the yellow codes below is what I have after changed all the symbols :

<script type="text/javascript"><!-- google_ad_client = "pub-0690220431785051"; /* 728x90, created 8/7/10 */ google_ad_slot = "8652075993"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

Source Link
Loading