Blocking Yahoo Publisher Network Ads from Internation Traffic

Mar 16, 2006 - 8:11 am 0 by

I hear that the Yahoo! Publisher Network does not like its banners to be served up to international users (users outside of the United States). There are even reports of YPN publishers being banned from YPN for having too many international people click or view their ads. That being said, how do you hide your YPN ads from international users?

Disclaimer, I do not implement any of this geo-targeting techniques for YPN ads, so I can not verify that any of these solutions work.

A DigitalPoint thread named Block International Traffic has people discussing several solutions to accomplish the task of geo-targeting your YPN ads. In post # 7 you have a well documented plan to implement geo-targeting for your ads.

(1) Download geoIP.dat and geoip.inc and put the files where you would put your php banner script. (2) Then use this code for your YPN ads;

<? // This part gets the ip of the visitor and matches it to a country name/code

include("geoip.inc"); $gi = geoip_open("GeoIP.dat",GEOIP_STANDARD);

$visitor_country_code=geoip_country_code_by_addr($gi, $_SERVER['REMOTE_ADDR']); $visitor_country_name=geoip_country_name_by_addr($gi, $_SERVER['REMOTE_ADDR']);

//This part shows banners/codes that YOU decide for each country

switch ($visitor_country_name) { case "United States": { ?>

<script language="JavaScript"> <!-- ctxt_ad_partner = "xxxxxxxxxx"; ctxt_ad_section = ""; ctxt_ad_bg = ""; ctxt_ad_width = 250; ctxt_ad_height = 250; ctxt_ad_bc = "FFFFFF"; ctxt_ad_cc = "FFFFFF"; ctxt_ad_lc = "FFFFFF"; ctxt_ad_tc = "111111"; ctxt_ad_uc = "111111"; // --> </script> <script language="JavaScript" src="http://ypn-js.overture.com/partner/js/ypn.js"> </script> <? } } ?>

That should be it. There are also more details on this page post # 25, specifically.

Forum discussion at DigitalPoint Forums.

 

Popular Categories

The Pulse of the search community

Follow

Search Video Recaps

 
Gvolatility, Bing Generative Search, Reddit Blocks Bing, Sticky Cookies, AI Overview Ads &amp; SearchGPT - YouTube
Video Details More Videos Subscribe to Videos

Most Recent Articles

Search Forum Recap

Daily Search Forum Recap: July 26, 2024

Jul 26, 2024 - 10:00 am
Search Video Recaps

Google Volatility, Bing Generative Search, Reddit Blocks Bing, Sticky Cookies, AI Overview Ads & SearchGPT

Jul 26, 2024 - 8:01 am
Google

Google Gemini Adds Related Content & Verification Links

Jul 26, 2024 - 7:51 am
Other Search Engines

SearchGPT - OpenAI's AI Search Tool

Jul 26, 2024 - 7:41 am
Search Engine Optimization

Google's John Mueller: Don't Use LLMs For SEO Advice

Jul 26, 2024 - 7:31 am
Google

Google Search With Related Images Carousel Below Image Box

Jul 26, 2024 - 7:21 am
Previous Story: SEM Salaries; The Real Deal on What You Should be Paid
Next Story: SES China Day 0