FIX: ads not refreshing when going from one topic list to another
This commit is contained in:
parent
e13a6ecdce
commit
c5b9392ae5
|
@ -197,7 +197,7 @@ export default Ember.Component.extend({
|
|||
|
||||
var self = this;
|
||||
|
||||
if (this.get('loadedGoogletag')) {
|
||||
if (this.get('loadedGoogletag') && this.get('refreshOnChange')) {
|
||||
googletag.cmd.push(function() {
|
||||
ad.setTargeting('discourse-category', self.get('category') ? self.get('category') : null);
|
||||
googletag.pubads().refresh([ad]);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{{google-adsense placement="topic-list-top"}}
|
||||
{{/if}}
|
||||
{{#if siteSettings.dfp_topic_list_top_code}}
|
||||
{{google-dfp-ad placement="topic-list-top" category=category.slug}}
|
||||
{{google-dfp-ad placement="topic-list-top" refreshOnChange=loading category=category.slug}}
|
||||
{{/if}}
|
||||
{{#if siteSettings.amazon_topic_list_top_src_code}}
|
||||
{{amazon-product-links placement="topic-list-top"}}
|
||||
|
|
Loading…
Reference in New Issue