Hi all, I found the way as insert AdSense block inside blogspot post. If it interested for you welcome to comment.
You are actually breaking Google TOS by doing this. IT says you can not modify the code block and you are actually doing this with this script.
This trick has been around for weeks. It messes up with the adsense code. So, it is definitely against the TOS.
If my code will be as: write_contents = ""; write_legacy = document.write; document.write = function(s) { write_contents += s; } <script type="text/javascript"> google_ad_client = "pub-xxxxxxxxxxxxxxxx"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text"; google_ad_channel =""; </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> <script type="text/javascript"> document.getElementById("adblock1").innerHTML = write_contents; document.write = write_legacy; </script> Bolded text is native google code and I don't change anything in it, but trick will be working. Do I disrupt for tos into this case?
From Google AdSense Program Policies: ...Any AdSense code must be pasted directly into webpages without modification. AdSense participants are not allowed to alter any portion of the code or change the behavior, targeting, or delivery of ads. For instance, clicks on Google ads may not result in a new browser window being launched. What is .... or delivery... meens?
I'm keeping the mind: ..when your view your raw html page (as if doing view source) you see the exact same javascript as provided by Google, you're fine, it doesn't matter how it got there. I'm don't altering any code from Google therefore this JS is right by AdSense policy.
Well, I think it is perfectly safe to do so because blogging legends as Amit Agarwal and others do it. And, I don't this is actually changing the code because we are just nesting the code inside some other code. I'm sure though. I think an email to Amit and the Google Adsense team may work.