We are trying to use the key value feature in google ad manager in a report,
// example
var targetingData = [];
targetingData['utm_campaign'] = new Date().getTime();
targetingData['utm_term'] = new Date().getTime();
googletag.defineSlot('/account-id/Minf-3', [300, 100], 'div-gpt-ad-1576162076591-0')
.addService(googletag.pubads()).setTargeting('utm_term', targetingData['utm_term'])
.setTargeting('utm_campaign', targetingData['utm_campaign']);
googletag.pubads().setTargeting('utm_term', targetingData['utm_term'])
.setTargeting('utm_campaign', targetingData['utm_campaign']);
Then we are generating a report with key values, but the values are all shown as unknown. when we check it in the page that key value is set correctly we are calling to getTargeting method, and we always get the correct value:
googletag.pubads().getTargeting('utm_term');
googletag.pubads().getTargeting('utm_campaign');
Is there something we are missing here?
How do we generate a report that can show us the value of the "key values" along with the impressions and clicks?
- We manage to see values only when we set them as predefined, so we having this issue only when we set the values dynamic value.