Has anyone figured how to manipulate the AdUnit element from google?
E.g. hiding, etc.?
So far I can change opacity and move it vertically, but only before the ads load.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So I found solution myself:
Using jQuery I am adding the ‘Close’ span to the node containing the add. The actual placing depends on the format of the add unit, here I have “AdFormat.BANNER”. Anyway, I also attach the click handler to the Close span which hides the add containing element.
BTW. delaying the manipulation is necessarry as google does strange manipulations with a node and untill the adds load completely.