{"__v":13,"_id":"56f8ca86909ab40e00e9c57f","category":{"__v":6,"_id":"55f9dbefc7ef770d00d9bf6d","pages":["55f9eec4c7ef770d00d9bf83","55f9fb8daba81f0d00a11566","5601ca6870694e0d00e3c66f","5601cb9b96e0f70d0044b0fd","56157d7af2d81d0d006c895f","5671d738c17bf90d00b95822"],"project":"5429beef1163360800ed31fa","version":"5429beef1163360800ed31fd","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"},"parentDoc":null,"project":"5429beef1163360800ed31fa","user":"5625457f23053b2300f596c9","version":{"__v":20,"_id":"5429beef1163360800ed31fd","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"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-03-28T06:09:10.564Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":true,"order":11,"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/dgD9F7fSRL2f6aS07QBB_Screenshot%202016-07-05%2015.18.52.png\",\n        \"Screenshot 2016-07-05 15.18.52.png\",\n        \"2402\",\n        \"734\",\n        \"#369ece\",\n        \"\"\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 strict/exact match of this key with listed values or loose match.  \n\nSimilarly for values, you have enter the desired name in case you have indicated static value type. In case of dynamic value type, you can pass any value. 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/RP1Wvu68SOiRtUm2hxOm_Screenshot%202016-07-05%2015.21.38.png\",\n        \"Screenshot 2016-07-05 15.21.38.png\",\n        \"1078\",\n        \"948\",\n        \"#2e465b\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/3waZZ6VyRiSZmhCLzgyC_Screenshot%202016-07-05%2015.22.41.png\",\n        \"Screenshot 2016-07-05 15.22.41.png\",\n        \"1034\",\n        \"1160\",\n        \"#325068\",\n        \"\"\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, you can expose desired keys campaign creation workflow wherein you can target them accordingly. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/rPf2pCiTQkaFdJ0lJoHv_3.18%20campaign%20key%20value.jpg\",\n        \"3.18 campaign key value.jpg\",\n        \"1245\",\n        \"893\",\n        \"#4ea5d7\",\n        \"\"\n      ],\n      \"sizing\": \"full\"\n    }\n  ]\n}\n[/block]\n\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/dgD9F7fSRL2f6aS07QBB_Screenshot%202016-07-05%2015.18.52.png", "Screenshot 2016-07-05 15.18.52.png", "2402", "734", "#369ece", "" ] } ] } [/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 strict/exact match of this key with listed values or loose match. Similarly for values, you have enter the desired name in case you have indicated static value type. In case of dynamic value type, you can pass any value. Dynamic value type can be used for use cases like search advertising. [block:image] { "images": [ { "image": [ "https://files.readme.io/RP1Wvu68SOiRtUm2hxOm_Screenshot%202016-07-05%2015.21.38.png", "Screenshot 2016-07-05 15.21.38.png", "1078", "948", "#2e465b", "" ], "sizing": "full" } ] } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/3waZZ6VyRiSZmhCLzgyC_Screenshot%202016-07-05%2015.22.41.png", "Screenshot 2016-07-05 15.22.41.png", "1034", "1160", "#325068", "" ], "sizing": "full" } ] } [/block] [block:api-header] { "type": "basic", "title": "Key/Value Pair Targeting in Campaign Settings" } [/block] After creating key/value pairs, you can expose desired keys campaign creation workflow wherein you can target them accordingly. [block:image] { "images": [ { "image": [ "https://files.readme.io/rPf2pCiTQkaFdJ0lJoHv_3.18%20campaign%20key%20value.jpg", "3.18 campaign key value.jpg", "1245", "893", "#4ea5d7", "" ], "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]