FIX: ads not refreshing when going from one topic list to another

This commit is contained in:
Neil Lalonde 2015-10-27 17:44:03 -04:00
parent e13a6ecdce
commit c5b9392ae5
2 changed files with 2 additions and 2 deletions

View File

@ -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]);

View File

@ -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"}}