@financial-times/o-ads
Advanced tools
Comparing version 14.0.3 to 14.1.0
@@ -48,3 +48,13 @@ "use strict"; | ||
var responseObj = response[i]; | ||
var keys = ['user', 'page']; | ||
var behavioralMetaObj = {}; | ||
var apiResponseBehavioral = responseObj.krux && responseObj.krux.attributes; | ||
if (apiResponseBehavioral) { | ||
behavioralMetaObj[keys[i]] = this.instance.utils.buildObjectFromArray(apiResponseBehavioral); | ||
this.instance.config({ | ||
'behavioralMeta': behavioralMetaObj | ||
}); | ||
} | ||
if (responseObj.dfp && responseObj.dfp.targeting) { | ||
@@ -51,0 +61,0 @@ this.instance.targeting.add(this.instance.utils.buildObjectFromArray(responseObj.dfp.targeting)); |
"use strict"; | ||
// generated by genversion | ||
module.exports = '14.0.3'; | ||
module.exports = '14.1.0'; |
@@ -28,3 +28,3 @@ { | ||
"name": "@financial-times/o-ads", | ||
"version": "14.0.3", | ||
"version": "14.1.0", | ||
"dependencies": { | ||
@@ -31,0 +31,0 @@ "ftdomdelegate": "^4.0.0", |
@@ -38,2 +38,9 @@ import utils from '../utils'; | ||
const responseObj = response[i]; | ||
const keys = ['user', 'page']; | ||
const behavioralMetaObj = {}; | ||
const apiResponseBehavioral = responseObj.krux && responseObj.krux.attributes; | ||
if(apiResponseBehavioral) { | ||
behavioralMetaObj[keys[i]] = this.instance.utils.buildObjectFromArray(apiResponseBehavioral); | ||
this.instance.config({'behavioralMeta' : behavioralMetaObj}); | ||
} | ||
@@ -40,0 +47,0 @@ if(responseObj.dfp && responseObj.dfp.targeting) { |
// generated by genversion | ||
module.exports = '14.0.3'; | ||
module.exports = '14.1.0'; |
204721
5787