how to approach the .setTargeting issue
This commit is contained in:
parent
f94bf79192
commit
e3dded27d9
|
@ -78,9 +78,24 @@ function loadGoogle(settings) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
googletag.defineSlot('/' + settings.dfp_publisher_id + '/' + settings.dfp_topic_above_suggested_code, [parseInt(splitWidthInt(settings.topic_above_suggested_ad_sizes)), parseInt(splitHeightInt(settings.topic_above_suggested_ad_sizes))], 'div-gpt-ad-topic-above-suggested')
|
googletag.defineSlot('/' + settings.dfp_publisher_id + '/' + settings.dfp_topic_above_suggested_code, [parseInt(splitWidthInt(settings.topic_above_suggested_ad_sizes)), parseInt(splitHeightInt(settings.topic_above_suggested_ad_sizes))], 'div-gpt-ad-topic-above-suggested')
|
||||||
.setTargeting(settings.dfp_target_topic_above_suggested_key_code, valueParse(settings.dfp_target_topic_above_suggested_value_code))
|
|
||||||
|
googletag.setTargeting(settings.dfp_target_topic_above_suggested_key_code, valueParse(settings.dfp_target_topic_above_suggested_value_code))
|
||||||
// This hardcoded code works: .setTargeting('category', ["clothes", "handbags", "makeup"])
|
// This hardcoded code works: .setTargeting('category', ["clothes", "handbags", "makeup"])
|
||||||
.addService(googletag.pubads());
|
googletag.addService(googletag.pubads());
|
||||||
|
|
||||||
|
|
||||||
|
var Foo = function() {}
|
||||||
|
Foo.prototype.bar = function() {
|
||||||
|
// Stuff
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
var f = new Foo();
|
||||||
|
f.bar().bar().bar();
|
||||||
|
f.bar();
|
||||||
|
f.bar();
|
||||||
|
f.bar();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (settings.dfp_post_bottom_code && !settings.dfp_show_post_bottom && settings.post_bottom_ad_sizes) {
|
if (settings.dfp_post_bottom_code && !settings.dfp_show_post_bottom && settings.post_bottom_ad_sizes) {
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default {
|
||||||
}.property('post_number'),
|
}.property('post_number'),
|
||||||
|
|
||||||
postSpecificCountAdsense: function() {
|
postSpecificCountAdsense: function() {
|
||||||
return this.get('post_number') === parseInt(Discourse.SiteSettings.adsense_nth_post_code);
|
return this.get('post_number') === parseInt(Discourse.SiteSettings.adsense_nth_post_code);
|
||||||
}.property('post_number'),
|
}.property('post_number'),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue