DFP: send a 0 value for discourse-category targeting on /latest, /categories, etc so that ads can show there while targeting categories
This commit is contained in:
parent
f9ba0e4ae1
commit
85d357b007
|
@ -199,7 +199,7 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
if (this.get('loadedGoogletag') && this.get('refreshOnChange')) {
|
if (this.get('loadedGoogletag') && this.get('refreshOnChange')) {
|
||||||
googletag.cmd.push(function() {
|
googletag.cmd.push(function() {
|
||||||
ad.setTargeting('discourse-category', self.get('category') ? self.get('category') : null);
|
ad.setTargeting('discourse-category', self.get('category') ? self.get('category') : '0');
|
||||||
googletag.pubads().refresh([ad]);
|
googletag.pubads().refresh([ad]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -212,7 +212,7 @@ export default Ember.Component.extend({
|
||||||
googletag.cmd.push(function() {
|
googletag.cmd.push(function() {
|
||||||
var ad = defineSlot(self.get('placement'), self.siteSettings);
|
var ad = defineSlot(self.get('placement'), self.siteSettings);
|
||||||
if (ad) {
|
if (ad) {
|
||||||
ad.setTargeting('discourse-category', self.get('category') ? self.get('category') : null);
|
ad.setTargeting('discourse-category', self.get('category') ? self.get('category') : '0');
|
||||||
googletag.display(self.get('divId'));
|
googletag.display(self.get('divId'));
|
||||||
googletag.pubads().refresh([ad]);
|
googletag.pubads().refresh([ad]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue