Hi guys, Just wanna ask; Can I change the adsense code? I want to make it "center" on my homepage. Is that against the TOS? Thanks
The short answer is that no, you are not allowed to change the Adsense code. However, you shouldn't need to change that code to position it on your web page. Depending on how your site is constructed, you could use CSS, a table, or another method to make the layout.
Oh no, I just did. I've changed the code. But seriously, I didn't do anything weird! I just added align=center, that's all. Like this... Will I get ban by google for this small change???
I would personally remove that line. Putting code in the centre of theirs is changing their code and liable to get you banned imo. However, there is nothing wrong with putting <center> and </center> around the whole block of code which will do the same job.
Nope. You're safe. What you just did is make a change on a code of your site only and not the Adsense code itself. - Dynashox -
Thank you for all the answers, guys. I did anyway. I think google won't waste their time just to mess with a small webmaster like me. After all, they have a bigger problem elsewhere, right? But let's just see what happens next.
But there is no reason why you need to put the <center> tag in the middle of the Adsense code. You can position the ad blocks without altering the code at all - why not do it that way?
Why didn't I think of that before? Silly me. Thanks for the input, guys! Thanks, FoxIX. Thanks, Nonny. Love you all.
Does anybody else think that this "rule" that they have should have a few exceptions in examples like this.
You can use center tags outside of the Google adsense code and it will accomplish what you are trying to do. You don't need to change the adsense code.
I agree, although once I change the JS url to include a fake query string (?D=20090801) with the current date (generated by PHP). This ensured that a fresh version of the js is got every day and not cached, and this helped resolve some issue. So I thought it was worth the risk.