Adsense ads on new page instead of parent

Phoca modules - support for all Phoca modules except Phoca Gallery modules
dawauz
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 04 May 2009, 12:01

Adsense ads on new page instead of parent

Post by dawauz »

Is it possible to change something on the code or css, when clicking the ad, the ad will be shown on the same page, so visiters are leaving my site.
I would like to open the ad in a new page, but how?

I tried to change the adsense code, see the bold

script type="text/javascript"><!--
google_ad_client = "pub-1157514370736462";
/* 200x200, gemaakt 5-10-09 */
google_ad_slot = "3880238302";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js" target="_blank">
/script

but that doesn't work at all...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48648
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Adsense ads on new page instead of parent

Post by Jan »

Hi, sorry I don't understand. If you are using Phoca Google AdSense Easy module, this only displays your ads in the module position. :idea:

Jan
If you find Phoca extensions useful, please support the project
dawauz
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 04 May 2009, 12:01

Re: Adsense ads on new page instead of parent

Post by dawauz »

yes I know, but when clicking the ad, I would like to see a new window instead of the leaving the website to visit the ad.
So a new window has to appear with the ad...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48648
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Adsense ads on new page instead of parent

Post by Jan »

Hi, so this you should ask on Google as the code is produced by Google.
If you find Phoca extensions useful, please support the project
leoxgeo
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 13 May 2010, 05:15

Re: Adsense ads on new page instead of parent

Post by leoxgeo »

Hi there dawauz

It''s been long time since ur post but i just wonder if u ve found way to get ads open in new tab or window :)

If any1 knows way around it plsssssssss share :| :| :| :| :|
none
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 05 Aug 2010, 17:10

Re: Adsense ads on new page instead of parent

Post by none »

You MAY NOT open it in new window!
It is against Google Policy!
Can I open the ads in a new window?

Generally, it is our policy to not allow 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.

Keeping in mind the importance of the user experience, 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.
Post Reply