{"id":1206,"date":"2016-04-07T17:35:33","date_gmt":"2016-04-07T16:35:33","guid":{"rendered":"http:\/\/okodigital.wpengine.com\/?p=1206"},"modified":"2016-04-07T17:35:33","modified_gmt":"2016-04-07T16:35:33","slug":"using-dfp-key-values-to-structure-inventory","status":"publish","type":"post","link":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/","title":{"rendered":"Using DFP Key-values to structure inventory"},"content":{"rendered":"<p>At OKO we often start the process of <a href=\"https:\/\/oko.uk\/publishers\">Ad Inventory Management<\/a> by overhauling the publisher\u2019s DFP inventory. It isn&#8217;t unusual to find relatively simple sites with hundreds of ad units defined. This is most common with older accounts, where complexity has been added over time to answer various targeting or reporting requirements, but we&#8217;ve seen it on brand new accounts too.<\/p>\n<blockquote><p>This blog post was originally authored in 2016. Although much of the information it contains is still relevant, some is now out of date. For a more up to date look at how to use key-value pairs see <a href=\"https:\/\/oko.uk\/blog\/the-ultimate-guide-to-google-ad-manager-key-values\">The Ultimate Guide to Google Ad Manager Key-Values<\/a><\/p><\/blockquote>\n<h2>How things get out of control<\/h2>\n<p>Take the simple example below of a website with just three\u00a0page types: Home, Category and Story. Each page has three ad units, in different position and it makes perfect sense to create nine ad units:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1207 size-full\" src=\"https:\/\/oko.uk\/wp-content\/uploads\/2016\/04\/mockup_7.png\" alt=\"mockup_7\" width=\"750\" height=\"341\" \/><\/p>\n<p>These would likely be named something like:<\/p>\n<ul>\n<li>home-masthead<\/li>\n<li>home-mpu1<\/li>\n<li>home-mpu2<\/li>\n<li>cat-leaderboard<\/li>\n<li>cat-mpu<\/li>\n<li>cat-sidebar<\/li>\n<li>etc, etc.. \u00a09 units in total<\/li>\n<\/ul>\n<h2>Then ad-sales speak up<\/h2>\n<p>The ads sales team need to be able to sell ads directed at the different parts of the website; News, sports, events etc. Although there are only 5 categories (plus home page), this gives us 39 ad units made up of:<\/p>\n<ul>\n<li>3 units for the home page<\/li>\n<li>3 units for the category page X 6 categories = 18 ad units<\/li>\n<li>3 units for the story page X 6 categories = 18 ad units<\/li>\n<\/ul>\n<p>39 ad units is getting heavy, but it still manageable for most. Then&#8230;<\/p>\n<h2>The ad optimizer gets involved<\/h2>\n<p>The ad optimizer wants to understand how performance differs between users who are logged in and logged out, but then also wants to run a multi-variant test to play off three networks. \u00a0Suddenly we&#8217;re looking at 234 ad units before anyone even utters the word &#8220;mobile&#8221;.<\/p>\n<p>The current &#8220;record&#8221; we have seen is 401 active ad units for a moderately simple website.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1208 size-full\" src=\"https:\/\/oko.uk\/wp-content\/uploads\/2016\/04\/DoubleClick-for-Publishers-Ad-units.png\" alt=\"We have a winner\" width=\"539\" height=\"74\" \/><\/p>\n<h2>How many ad units would I create?<\/h2>\n<p>Three. Yes, just three, and I wouldn&#8217;t lose any of the targeting and reporting benefits of using 239 either.<\/p>\n<h2>Enter our hero: Key-value targeting<\/h2>\n<p>We can use fewer\u00a0ad-units without losing the benefits thanks to DFP&#8217;s key-value targeting feature. Key-value targeting (formally called &#8220;Custom Targeting Criteria&#8221;) allows us to add an extra dimension to our targeting and reporting. \u00a0This has many applications, including often allowing us to remove the need for additional ad units.<\/p>\n<p>I&#8217;ll cover setting up key-value targeting in a later post. In simple terms though it just allows you to specify a key (such as &#8220;PageType&#8221;) that can have different values (such as &#8220;Home&#8221; or &#8220;Category&#8221;). \u00a0These values can then be targeting by line-items to keep our ad-sales team happy. If the potential values are defined before hand they can also be used in reporting**<\/p>\n<blockquote><p>**Attention Googlers! I know that there are a number of Googlers who read this blog. If any of you are on the DFP team please, please, please allow reporting of free-form values. \u00a0I have a special spot on the wall next to my desk that I use to bang my head against several times a week when this issue comes up! Thanks \ud83d\ude42<\/p><\/blockquote>\n<h2>How this would work in practice<\/h2>\n<p>Let&#8217;s have a look at how this would work in practice with our earlier example. \u00a0Each page type is just using three units, so we can call these whatever we want. It doesn&#8217;t matter that they show different sizes, we just map sizes to them that are appropriate on each page.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1209 size-full\" src=\"https:\/\/oko.uk\/wp-content\/uploads\/2016\/04\/mockup_8.png\" alt=\"mockup_8\" width=\"750\" height=\"429\" \/><\/p>\n<p>We then simply create keys and add values for each of the dimensions that we want to use:<\/p>\n<ul>\n<li><strong>PageType<\/strong> home \/ category \/ story<\/li>\n<li><strong>Category<\/strong>\u00a0news \/ sports \/ events \/ entertainment \/ business \/ other<\/li>\n<li><strong>LoggedIn<\/strong> yes \/ no<\/li>\n<li><strong>TestVariant<\/strong> A \/ B \/ C<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>At OKO we often start the process of Ad Inventory Management by overhauling the publisher\u2019s DFP inventory. It isn&#8217;t unusual to find relatively simple<\/p>\n","protected":false},"author":1,"featured_media":1213,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[2],"tags":[18],"class_list":["post-1206","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","tag-dfp"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using DFP Key-values to structure inventory | Supply-Side Platform | COOL Media (formerly OKO Digital)<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using DFP Key-values to structure inventory | Supply-Side Platform | COOL Media (formerly OKO Digital)\" \/>\n<meta property=\"og:description\" content=\"At OKO we often start the process of Ad Inventory Management by overhauling the publisher\u2019s DFP inventory. It isn&#8217;t unusual to find relatively simple\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/\" \/>\n<meta property=\"og:site_name\" content=\"Supply-Side Platform\" \/>\n<meta property=\"article:published_time\" content=\"2016-04-07T16:35:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cool.co\/supply-side-platform-home\/wp-content\/uploads\/sites\/4\/2016\/04\/construction-1199586_1920.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1440\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"pavlo.shyian@sigma.software\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pavlo.shyian@sigma.software\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/using-dfp-key-values-to-structure-inventory\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/using-dfp-key-values-to-structure-inventory\\\/\"},\"author\":{\"name\":\"pavlo.shyian@sigma.software\",\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/#\\\/schema\\\/person\\\/560f05b9e421019c8159b150285a5517\"},\"headline\":\"Using DFP Key-values to structure inventory\",\"datePublished\":\"2016-04-07T16:35:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/using-dfp-key-values-to-structure-inventory\\\/\"},\"wordCount\":623,\"commentCount\":3,\"image\":{\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/using-dfp-key-values-to-structure-inventory\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/wp-content\\\/uploads\\\/sites\\\/4\\\/2016\\\/04\\\/construction-1199586_1920.jpg\",\"keywords\":[\"DoubleClick for Publishers (DFP)\"],\"articleSection\":[\"Tips\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/using-dfp-key-values-to-structure-inventory\\\/\",\"url\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/using-dfp-key-values-to-structure-inventory\\\/\",\"name\":\"Using DFP Key-values to structure inventory | Supply-Side Platform | COOL Media (formerly OKO Digital)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/using-dfp-key-values-to-structure-inventory\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/using-dfp-key-values-to-structure-inventory\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/wp-content\\\/uploads\\\/sites\\\/4\\\/2016\\\/04\\\/construction-1199586_1920.jpg\",\"datePublished\":\"2016-04-07T16:35:33+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/#\\\/schema\\\/person\\\/560f05b9e421019c8159b150285a5517\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/using-dfp-key-values-to-structure-inventory\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/using-dfp-key-values-to-structure-inventory\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/using-dfp-key-values-to-structure-inventory\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/wp-content\\\/uploads\\\/sites\\\/4\\\/2016\\\/04\\\/construction-1199586_1920.jpg\",\"contentUrl\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/wp-content\\\/uploads\\\/sites\\\/4\\\/2016\\\/04\\\/construction-1199586_1920.jpg\",\"width\":1920,\"height\":1440,\"caption\":\"DFP Key-values\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/using-dfp-key-values-to-structure-inventory\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using DFP Key-values to structure inventory\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/#website\",\"url\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/\",\"name\":\"Supply-Side Platform\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/#\\\/schema\\\/person\\\/560f05b9e421019c8159b150285a5517\",\"name\":\"pavlo.shyian@sigma.software\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/915b509c0ee970a486962d4bc9f102ea4ebf29ea9fa4fc5ca6f12ac21b5cf3e9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/915b509c0ee970a486962d4bc9f102ea4ebf29ea9fa4fc5ca6f12ac21b5cf3e9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/915b509c0ee970a486962d4bc9f102ea4ebf29ea9fa4fc5ca6f12ac21b5cf3e9?s=96&d=mm&r=g\",\"caption\":\"pavlo.shyian@sigma.software\"},\"sameAs\":[\"https:\\\/\\\/cool.co\"],\"url\":\"https:\\\/\\\/cool.co\\\/supply-side-platform-home\\\/author\\\/pavlo-shyiansigma-software\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using DFP Key-values to structure inventory | Supply-Side Platform | COOL Media (formerly OKO Digital)","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/","og_locale":"en_US","og_type":"article","og_title":"Using DFP Key-values to structure inventory | Supply-Side Platform | COOL Media (formerly OKO Digital)","og_description":"At OKO we often start the process of Ad Inventory Management by overhauling the publisher\u2019s DFP inventory. It isn&#8217;t unusual to find relatively simple","og_url":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/","og_site_name":"Supply-Side Platform","article_published_time":"2016-04-07T16:35:33+00:00","og_image":[{"width":1920,"height":1440,"url":"https:\/\/cool.co\/supply-side-platform-home\/wp-content\/uploads\/sites\/4\/2016\/04\/construction-1199586_1920.jpg","type":"image\/jpeg"}],"author":"pavlo.shyian@sigma.software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pavlo.shyian@sigma.software","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/#article","isPartOf":{"@id":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/"},"author":{"name":"pavlo.shyian@sigma.software","@id":"https:\/\/cool.co\/supply-side-platform-home\/#\/schema\/person\/560f05b9e421019c8159b150285a5517"},"headline":"Using DFP Key-values to structure inventory","datePublished":"2016-04-07T16:35:33+00:00","mainEntityOfPage":{"@id":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/"},"wordCount":623,"commentCount":3,"image":{"@id":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/#primaryimage"},"thumbnailUrl":"https:\/\/cool.co\/supply-side-platform-home\/wp-content\/uploads\/sites\/4\/2016\/04\/construction-1199586_1920.jpg","keywords":["DoubleClick for Publishers (DFP)"],"articleSection":["Tips"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/","url":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/","name":"Using DFP Key-values to structure inventory | Supply-Side Platform | COOL Media (formerly OKO Digital)","isPartOf":{"@id":"https:\/\/cool.co\/supply-side-platform-home\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/#primaryimage"},"image":{"@id":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/#primaryimage"},"thumbnailUrl":"https:\/\/cool.co\/supply-side-platform-home\/wp-content\/uploads\/sites\/4\/2016\/04\/construction-1199586_1920.jpg","datePublished":"2016-04-07T16:35:33+00:00","author":{"@id":"https:\/\/cool.co\/supply-side-platform-home\/#\/schema\/person\/560f05b9e421019c8159b150285a5517"},"breadcrumb":{"@id":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/#primaryimage","url":"https:\/\/cool.co\/supply-side-platform-home\/wp-content\/uploads\/sites\/4\/2016\/04\/construction-1199586_1920.jpg","contentUrl":"https:\/\/cool.co\/supply-side-platform-home\/wp-content\/uploads\/sites\/4\/2016\/04\/construction-1199586_1920.jpg","width":1920,"height":1440,"caption":"DFP Key-values"},{"@type":"BreadcrumbList","@id":"https:\/\/cool.co\/supply-side-platform-home\/using-dfp-key-values-to-structure-inventory\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cool.co\/supply-side-platform-home\/"},{"@type":"ListItem","position":2,"name":"Using DFP Key-values to structure inventory"}]},{"@type":"WebSite","@id":"https:\/\/cool.co\/supply-side-platform-home\/#website","url":"https:\/\/cool.co\/supply-side-platform-home\/","name":"Supply-Side Platform","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cool.co\/supply-side-platform-home\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cool.co\/supply-side-platform-home\/#\/schema\/person\/560f05b9e421019c8159b150285a5517","name":"pavlo.shyian@sigma.software","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/915b509c0ee970a486962d4bc9f102ea4ebf29ea9fa4fc5ca6f12ac21b5cf3e9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/915b509c0ee970a486962d4bc9f102ea4ebf29ea9fa4fc5ca6f12ac21b5cf3e9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/915b509c0ee970a486962d4bc9f102ea4ebf29ea9fa4fc5ca6f12ac21b5cf3e9?s=96&d=mm&r=g","caption":"pavlo.shyian@sigma.software"},"sameAs":["https:\/\/cool.co"],"url":"https:\/\/cool.co\/supply-side-platform-home\/author\/pavlo-shyiansigma-software\/"}]}},"_links":{"self":[{"href":"https:\/\/cool.co\/supply-side-platform-home\/wp-json\/wp\/v2\/posts\/1206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cool.co\/supply-side-platform-home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cool.co\/supply-side-platform-home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cool.co\/supply-side-platform-home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cool.co\/supply-side-platform-home\/wp-json\/wp\/v2\/comments?post=1206"}],"version-history":[{"count":0,"href":"https:\/\/cool.co\/supply-side-platform-home\/wp-json\/wp\/v2\/posts\/1206\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cool.co\/supply-side-platform-home\/wp-json\/wp\/v2\/media\/1213"}],"wp:attachment":[{"href":"https:\/\/cool.co\/supply-side-platform-home\/wp-json\/wp\/v2\/media?parent=1206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cool.co\/supply-side-platform-home\/wp-json\/wp\/v2\/categories?post=1206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cool.co\/supply-side-platform-home\/wp-json\/wp\/v2\/tags?post=1206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}