L
L
Lici2014-12-25 15:12:34
contextual advertising
Lici, 2014-12-25 15:12:34

How to display geotargeted ads in WordPress?

There is a site where ads should be shown to everyone except visitors from one country. What is the easiest way to implement this in WordPress?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Aksentiev, 2014-12-25
@Sanasol

codecanyon.net/item/geo-ads-switcher-plugin-geo-ta...
Well, either write your own plugin using some Sypex Geo
Or just do a country check directly in the template again using Sypex Geo or a similar lib

W
WordPress WooCommerce, 2014-12-26
@maxxannik

Google Maps Geo API. Get the country and then hide or show the ad block.

A
atwarn, 2015-02-01
@atwarn

codecanyon.net/item/wp-pro-geo-targeting

R
Roman Kusty, 2020-05-20
@roman_tlt

Using the free WT Geotargeting plugin and the wt_geotargeting shortcode , you can customize the display of ads for all countries except one country.
An example of displaying ads for all countries except China with IpGeoBase geolocation:

[wt_geotargeting country_not_show="CN"] Реклама [/wt_geotargeting]

You can use the do_shortcode() PHP function to add this shortcode in your theme template .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question