Generally, altering the behavior or targeting of AdSense ad code is prohibited. However, publishers are permitted to use scripts which allow users to close the ad unit by clicking on a box.
Some examples of unacceptable modifications include:
- Adding irrelevant keywords (hidden or visible) to alter the targeting of the ads.
- Using IFRAMEs with keywords to alter the content or language of the ads.