# Geo-targeting banners on Discourse

**URL:** https://meta.discourse.org/t/geo-targeting-banners-on-discourse/45689
**Category:** Development
**Created:** [2016年六月15日 06:00 UTC](https://meta.discourse.org/t/geo-targeting-banners-on-discourse/45689 "2016-06-15T06:00:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [2016年六月15日 06:00 UTC](https://meta.discourse.org/t/geo-targeting-banners-on-discourse/45689/1 "2016-06-15T06:00:45Z")

</div>

Is anyone using geo-targeted banners on their Discourse instance? Is it possible?

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [2016年六月15日 20:12 UTC](https://meta.discourse.org/t/geo-targeting-banners-on-discourse/45689/2 "2016-06-15T20:12:49Z")

</div>

I assume you are using DoubleClick for Publishers (DFP) and the [official DFP plugin](https://github.com/team-melbourne-rgsoc2015/discourse-adplugin)…

… if so this isn’t really a Discourse question…

It should be entirely down to how you configure your targetting on line items in DFP:

> **[Target geographic locations for delivery - Google Ad Manager Help](https://support.google.com/admanager/answer/1260290?hl=en)**
>
> You can target a line item to geographic locations such as countries, regions (provinces, prefectures, states, and so on), U.S. Nielsen DMAs (designated market areas), and cities. Jump to a

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [2016年六月15日 20:13 UTC](https://meta.discourse.org/t/geo-targeting-banners-on-discourse/45689/3 "2016-06-15T20:13:52Z")

</div>

I’m not currently using anything… it was very much a newbie ‘is this even possible’ question.

I’ll look into the plugin.

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [2016年六月16日 02:03 UTC](https://meta.discourse.org/t/geo-targeting-banners-on-discourse/45689/4 "2016-06-16T02:03:23Z")

</div>

I’m come full circle and my original question applies. The ad plugin isn’t what I’m referring to.

We actually want to serve our own content, rather than publishing ads from other platforms.

Does anyone know if there is a way to do that (including geo-targeting)?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [2016年六月18日 03:41 UTC](https://meta.discourse.org/t/geo-targeting-banners-on-discourse/45689/5 "2016-06-18T03:41:32Z")

</div>

There is a plugin that uses both the Discourse Locale Setting and using the HTTP headers (as a fall back?)

Not exactly geo-targeting, but it might be close enough if the HTTP stuff can be picked out of the plugin.

> [@Localized categories plugin](https://meta.discourse.org/t/localized-categories-plugin/45296/6):
>
> It’s working now for when there are user set locales and for when ‘set locale from accept language header’ is true. I still want to change the way it is loading the locales. You can try it out here: [http://constructivelearningspace.com/](http://constructivelearningspace.com/) We’re trying to set up an informal group for teaching/learning Persian. It’s just getting started. (I’m still trying to find the letters on the keyboard slight_smile ) edit: I’ve changed the plugin so that it does not switch the locales for anonymous users…
