If you are an AdSense publisher, sometimes it may essential to block your AdSense ads being shown in specific countries.
One of my friend got the problem, when one of his idiot friend constantly clicking to his ads to getting him banned or see what happens next.
I think there are many method that you can block or prevent ads or being shown off them. But now we are going to do this with DFP (Double Click for Publisher) So let’s see how to block ads shown in specific countries.
“Important: You need an active Google AdSense account to signup for DFP”
Create a company & fill the details under “New line item“
In “Setting”, Set Type: House, Start time: Immediately, End time: Unlimited, Rate: 1$ CPM. See This Image.
In “Add targeting”, Select “Inventory” and include your placement or ad unit that you created, & then select “Geography” and mark the country that you don’t wanna show AdSense. You can add more then one counties. See This Image
We need to create or upload the house ads that we gonna display instead of AdSense, because we wanna block AdSense or being shown off AdSense .
Go to DFP -» Line Items & select the “Line Item“.
Now click Add Creatives -» New Creative and select “Image »” as creative type. You upload image from your PC or use a URL of image.
Go to DFP -» Inventory -» Generate tags. Select your ad unit and click “Generate tags”.
Copy & Paste it to your blog.
Now when a reader from specific country visit your blog or site they’ll see the house ads that you created by dfp.
Screenshot of AdSense Being Shown off in Specific Countries