How can I have Google AdSense ads open in a new window?
Hi I need to know how to change the target of the Google AdSense ads via script. I changed the background by using: google_color_bg = "E5EBF2"; but now I need to change the target of the hyperlinks to open in a new window. can you please help.
It's always a bit of a dilemma when I get this sort of question because I know that there are ways to tweak your AdSense block to change its behavior, including having the ads open in a new window, but I'm also very aware of the AdSense Terms of Service, which states:
Doesn't sound to me like it's okay for people to be hacking and tweaking their AdSense beyond the range of modifications to appearance that are expressly authorized by the company. On the one hand I know people who are frustrated by this limitation, but on the other hand, it's their ad network, so if you really don't like the terms and conditions, well, there are alternatives.
Still not entirely sure that I'm correct? Consider this Q&A from Google entitled Can I open the ads in a new window? in which it says quite explicitly:
"Keeping in mind the importance of the user experience, we generally have not allowed Google ads to open in a new window. However, in a few markets, including China, we've found that opening ads in a new window better aligns with expected internet behavior and provides a more consistent, intuitive user experience. After significant testing, we've enabled Google ads to open in new windows in locations where this is expected browsing behavior. This functionality is determined by the IP of the user, and is not an option you can select your AdSense account.
"We also ask that you don't modify the AdSense ad code or alter the result of clicking on an ad on your website, as such behavior violates our program policies."
That's a very polite way of saying no, and don't monkey with it, pal!
Having said all of that, it's also likely true that if you dig deep enough you can find some sort of tips from hackers about how to tweak the behavior of your AdSense block anyway. Just don't be surprised if you get a notice from Google one day that you've been kicked out of the program for violations of their terms and conditions.
More Useful Pay Per Click (PPC) Advertising Articles:
✔ How much money should I be making with AdSense?
Hey Dave, I get ~130.000 views per month and for 30 days of using AdSense I earned $60, is it a lot or...✔ Add Po.st Social Media (Facebook, Google Plus) widgets to your blog?
I really like the set of social media buttons you have on the pages of your AskDaveTaylor site, Dave. What are they, and...✔ How is CPM calculated on Google AdWords YouTube Video?
Have you bought Google AdWords Video [actually it's called "YouTube Promoted Videos" -dt] before? I'm confused about whether the CPM bid for 1000...✔ How do I connect my Google AdSense and Analytics accounts?
I'd like to connect up my Google AdSense account and my Google Analytics stats account. I understand that if you do this, you...✔ Why doesn't AdSense earn me any money?
I subscribe to any Google Adsense earnings but zero in the day, I do not know why: I hope you can advise me...
Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
I do have a comment, now that you mention it!
Check This Out Too...
Look for Answers
All Our Categories
Apple iPad Help
Articles and Reviews
Auctions and Online Shopping
Blogs and Blogging
Building Web Site Traffic
Business and Management
Computer and Internet Basics
d) None of the Above
Google Gmail Help
Google Plus Help
Industry News and Trade Shows
iPhone and Cell Phone Help
iPod, Sony PSP and MP3 Player Help
Kindle Fire Help
Mac OS X Help
Pay Per Click (PPC) Advertising
Search Engine Optimization (SEO)
Shell Script Programming
Tech Support Video Help
The Writing Business
Twitter, LinkedIn and Social Network Help
Unix and Linux Help
Video Game Tips and Help
Windows PC Help
Find Me on Google+
ADT on G+