{"_id":"56f8ca86909ab40e00e9c57f","category":{"_id":"55f9dbefc7ef770d00d9bf6d","version":"5429beef1163360800ed31fd","__v":6,"pages":["55f9eec4c7ef770d00d9bf83","55f9fb8daba81f0d00a11566","5601ca6870694e0d00e3c66f","5601cb9b96e0f70d0044b0fd","56157d7af2d81d0d006c895f","5671d738c17bf90d00b95822"],"project":"5429beef1163360800ed31fa","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-09-16T21:15:27.664Z","from_sync":false,"order":4,"slug":"publisher-ui-setup","title":"Trafficking and Inventory"},"user":"5625457f23053b2300f596c9","version":{"_id":"5429beef1163360800ed31fd","__v":22,"project":"5429beef1163360800ed31fa","createdAt":"2014-09-29T20:19:59.904Z","releaseDate":"2014-09-29T20:19:59.904Z","categories":["5429beef1163360800ed31fe","55e74e1f5d36b32b002563fa","55e7500a73169617001f2e86","55e76b8196131b2f00bf4b72","55e89569cdbb8a350096df9c","55f8935eb089b71700a8364e","55f8a67d3bb4bb0d0022d093","55f9dbefc7ef770d00d9bf6d","5601c21a22ecf60d002b27b3","5601c21ff12aee0d001bb06e","5601c2256c7b610d00280db5","5601c22c22ecf60d002b27b4","5603738d0c78b00d0039af47","5626f70bfcbbc621004ebf52","566f7a1ae144ab0d00e9732f","566f85ca7820960d00c3b93d","56708ce43a32d20d00c45cbf","56708d436995210d003aad8e","5736471abe10a9200030732c","57a82c7aff9bd30e00a6f1c1","591b8500e3992319007190f4","5a3718305c66a60012d960ba"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"project":"5429beef1163360800ed31fa","githubsync":"","__v":13,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-03-28T06:09:10.564Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":true,"order":21,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Key/Value Pairs Dashboard\"\n}\n[/block]\nYou can find all the key/value pairs in the management page that can be found under placement settings\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/3f5c3cc-Screen_Shot_2018-03-16_at_13.20.11.png\",\n        \"Screen Shot 2018-03-16 at 13.20.11.png\",\n        2410,\n        1270,\n        \"#f2f2f3\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Adding New Key/Value Pairs\"\n}\n[/block]\nWhen adding new key/value pairs, you have to enter the desired name for the key. Key Type indicates whether there is a strict/exact match of this key with listed values or loose match.  \n\nSimilarly, for values, you have entered the desired name in case you have indicated `static` value type. In case of a `dynamic` value type, you can pass any value. The dynamic value type can be used for use cases like search advertising. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/a02a19f-Screen_Shot_2018-03-16_at_13.22.16.png\",\n        \"Screen Shot 2018-03-16 at 13.22.16.png\",\n        2404,\n        1006,\n        \"#052443\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\nNote: Saving a key, provides ` Add values` fields to it\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/db83d8b-Screen_Shot_2018-03-16_at_13.44.51.png\",\n        \"Screen Shot 2018-03-16 at 13.44.51.png\",\n        2384,\n        1280,\n        \"#062544\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Key/Value Pair Targeting in Campaign Settings\"\n}\n[/block]\nAfter creating key/value pairs,  key/value pairs are exposed in campaign creation workflow wherein you can target them accordingly. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/c592dd3-Screen_Shot_2018-03-16_at_13.47.36.png\",\n        \"Screen Shot 2018-03-16 at 13.47.36.png\",\n        2412,\n        1176,\n        \"#072644\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"GET \\\"http://api.adsnative.com/v1/ad.json?zid=ping&ck_device_name=iphone6&ck_account=free&ck_your_other_key=value1&ck_your_other_key=value2\\\"\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]","excerpt":"Key/Value pairs targeting can be used for more precise campaign targeting.","slug":"key-value-targeting-setup","type":"basic","title":"Key/Value Pair Targeting"}

Key/Value Pair Targeting

Key/Value pairs targeting can be used for more precise campaign targeting.

[block:api-header] { "type": "basic", "title": "Key/Value Pairs Dashboard" } [/block] You can find all the key/value pairs in the management page that can be found under placement settings [block:image] { "images": [ { "image": [ "https://files.readme.io/3f5c3cc-Screen_Shot_2018-03-16_at_13.20.11.png", "Screen Shot 2018-03-16 at 13.20.11.png", 2410, 1270, "#f2f2f3" ] } ] } [/block] [block:api-header] { "type": "basic", "title": "Adding New Key/Value Pairs" } [/block] When adding new key/value pairs, you have to enter the desired name for the key. Key Type indicates whether there is a strict/exact match of this key with listed values or loose match. Similarly, for values, you have entered the desired name in case you have indicated `static` value type. In case of a `dynamic` value type, you can pass any value. The dynamic value type can be used for use cases like search advertising. [block:image] { "images": [ { "image": [ "https://files.readme.io/a02a19f-Screen_Shot_2018-03-16_at_13.22.16.png", "Screen Shot 2018-03-16 at 13.22.16.png", 2404, 1006, "#052443" ], "sizing": "full" } ] } [/block] Note: Saving a key, provides ` Add values` fields to it [block:image] { "images": [ { "image": [ "https://files.readme.io/db83d8b-Screen_Shot_2018-03-16_at_13.44.51.png", "Screen Shot 2018-03-16 at 13.44.51.png", 2384, 1280, "#062544" ], "sizing": "full" } ] } [/block] [block:api-header] { "type": "basic", "title": "Key/Value Pair Targeting in Campaign Settings" } [/block] After creating key/value pairs, key/value pairs are exposed in campaign creation workflow wherein you can target them accordingly. [block:image] { "images": [ { "image": [ "https://files.readme.io/c592dd3-Screen_Shot_2018-03-16_at_13.47.36.png", "Screen Shot 2018-03-16 at 13.47.36.png", 2412, 1176, "#072644" ], "sizing": "full" } ] } [/block] [block:code] { "codes": [ { "code": "GET \"http://api.adsnative.com/v1/ad.json?zid=ping&ck_device_name=iphone6&ck_account=free&ck_your_other_key=value1&ck_your_other_key=value2\"", "language": "curl" } ] } [/block]