The Google ad shown there has a close option – it’s the “X” on the right hand side of the ad.
AdSense doesn’t allow alterations except in these circumstances:
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.
They don’t provide instructions on how to do that.