{"id":25063,"date":"2018-08-01T17:34:49","date_gmt":"2018-08-01T15:34:49","guid":{"rendered":"https:\/\/www.exoclick.com\/api-master-class-2-zone-optimization\/"},"modified":"2018-08-01T18:11:10","modified_gmt":"2018-08-01T16:11:10","slug":"api-master-class-2-zone-optimization","status":"publish","type":"post","link":"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/","title":{"rendered":"API Master Class #2 Zone Optimization"},"content":{"rendered":"<p>In part 2 of our 3 part API Masterclass we look at using our platform API for Zone Optimisation. Part 1 covered Data Collection (<a href=\"https:\/\/www.exoclick.com\/api-masterclass-1-data-collection\/\">click here<\/a>) The aim is for you as an advertiser to use our examples to help get you started using the API and then later, when you feel more confident you can start creating your own examples and tasks.<\/p>\n<p>Zone Optimization allows you to filter your spend for each zone id and then block those zones that are not performing. The purpose is to help you see how your top 10 zones are performing in order to optimise your campaign. Or analyse the bottom 10 zones so you can block under performing zones. This way you can see which of those zones are more profitable for your campaign.<\/p>\n<p>So let\u2019s get started!<\/p>\n<p><strong>Step 1<\/strong><br \/>\nIn order to use ExoClick\u2019s API you must set a Session Token. To set a token, you must have a valid account with the required username and password. The API Token creation is available from the API tab within the Admin Panel.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-24807\" src=\"https:\/\/www.exoclick.com\/wp-content\/uploads\/2018\/07\/token3.jpg\" alt=\"\" width=\"1005\" height=\"335\" \/><\/p>\n<p><strong>Step 2<\/strong><br \/>\nCopy this <a href=\"https:\/\/docs.google.com\/spreadsheets\/d\/1OPmcXU9RFZ6RxNH5F_VPgw9_dMwBGJeDYCdv80U-oWI\/edit#gid=1028626180\" target=\"_blank\" rel=\"noopener\">spreadsheet<\/a>\u00a0to your Google Drive and then open it. All of the API coding is done using Google script language, so when you open the spreadsheet simply go to the Tools menu and select Script Editor.<\/p>\n<p><strong>Step 3<\/strong><br \/>\nCopy and paste your API token as marked in the diagram below. Here you will see that on the left hand side (green) you can fetch a campaigns data for impressions, CTR and cost: filtered by zone. On the right hand side (red) you can see the section for blocking zones.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-25055\" src=\"https:\/\/www.exoclick.com\/wp-content\/uploads\/2018\/08\/zone-optimization-fix.jpg\" alt=\"\" width=\"1743\" height=\"786\" \/><\/p>\n<p><strong>Part 1 &#8211; Zone Optimization<\/strong><\/p>\n<p><strong>Step 4<\/strong><br \/>\nAdd the CID in the campaign field. This will allow the system to identify which campaign you want to request and pull the data from.<\/p>\n<p><strong>Step 5<\/strong><br \/>\nNow set the date parameters by adding them into the date fields (Date from, Date to). This will establish the period from which you wish to request the data.<\/p>\n<p><strong>Step 6<\/strong><br \/>\nNow you can filter your results by cost using \u2018ascending\u2019 or \u2018descending\u2019 modes by clicking on the Field Order by [asc-dec]:<\/p>\n<p>Additionally, you can select how many zones you wish to pull data from and display by inserting a number value in the Limit field, the spreadsheet says 10 for 10 zones but you can change this value for however many zones you wish to get data from.<\/p>\n<p><strong>Step 7<\/strong><br \/>\nThen simply click on the Generate Data button on the spreadsheet and the data will be displayed.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-25056\" src=\"https:\/\/www.exoclick.com\/wp-content\/uploads\/2018\/08\/zone-optimization-gen-data.jpg\" alt=\"\" width=\"827\" height=\"786\" \/><\/p>\n<p><strong>Part 2 &#8211; Blocking Zones<\/strong><\/p>\n<p><strong>Step 8<\/strong><br \/>\nCopy the zones that the API has selected then paste which zones from that list that you want to block in the <em>zone ID<\/em>\u00a0to block field.<\/p>\n<p><strong>Step 9<\/strong><br \/>\nSelect from the drop down menu under <em>Network Selection<\/em> and select: All or RON or Premium or Members area.<br \/>\nPlease note:<\/p>\n<ul>\n<li>All = all ad zones on our network<\/li>\n<li>RON = All Ad Zones, excluding Premium and Members Area Zones<\/li>\n<li>Premium: Premium Ad Zones Only<\/li>\n<li>Members area: Members Area Ad Zones Only<\/li>\n<\/ul>\n<p>Then select from the drop down menu under <em>Partner Networks<\/em> select: <em>enabled<\/em> or <em>disabled<\/em>.<br \/>\nPlease note:<\/p>\n<ul>\n<li>Enabled: your campaign will receive traffic from Networks and Websites<\/li>\n<li>Disabled: your campaign will receive traffic from just standard Websites<\/li>\n<\/ul>\n<p><strong>Step 10<\/strong><br \/>\nNow you can block the zones from the CID you have used on the spreadsheet by simply clicking on the Block Zones button. If everything is correct the message \u2018Campaign successfully updated\u2019 will appear under Response Message.<br \/>\nPlease note: Some zones will be just available on specific Network Selections, therefore after pressing the Block Zones button and you receive an error message you should check the network selection of that zone.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-25057\" src=\"https:\/\/www.exoclick.com\/wp-content\/uploads\/2018\/08\/zone-optimization-block-zones.jpg\" alt=\"\" width=\"895\" height=\"778\" \/><\/p>\n<p>And that\u2019s it! Practice with a number of different campaigns and use the insights generated from your data to help you make the right optimisation decisions for targeting and blocking ad zones.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In part 2 of API our Masterclass we look at using our platform API for Zone Optimisation which allows you to filter the spend for each zone id and then block those zones that are not performing.<\/p>\n","protected":false},"author":20,"featured_media":25077,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[91,109,156],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.4 (Yoast SEO v19.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>API Master Class #2 Zone Optimization - ExoClick<\/title>\n<meta name=\"description\" content=\"Zone Optimisation allows you to filter the spend for each zone id and then block those zones that are not performing.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"API Master Class #2 Zone Optimization\" \/>\n<meta property=\"og:description\" content=\"Zone Optimisation allows you to filter the spend for each zone id and then block those zones that are not performing.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/\" \/>\n<meta property=\"og:site_name\" content=\"ExoClick\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-01T15:34:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-08-01T16:11:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.exoclick.com\/wp-content\/uploads\/2018\/08\/API-Master-Class-2-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"810\" \/>\n\t<meta property=\"og:image:height\" content=\"430\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Juanma Cortes\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Juanma Cortes\" \/>\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:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/\"},\"author\":{\"name\":\"Juanma Cortes\",\"@id\":\"https:\/\/www.exoclick.com\/#\/schema\/person\/86c17743ee91b9d52e7b648e03a56168\"},\"headline\":\"API Master Class #2 Zone Optimization\",\"datePublished\":\"2018-08-01T15:34:49+00:00\",\"dateModified\":\"2018-08-01T16:11:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/\"},\"wordCount\":641,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.exoclick.com\/#organization\"},\"articleSection\":[\"API\",\"Sviluppatore\",\"Tutorial\"],\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/\",\"url\":\"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/\",\"name\":\"API Master Class #2 Zone Optimization - ExoClick\",\"isPartOf\":{\"@id\":\"https:\/\/www.exoclick.com\/#website\"},\"datePublished\":\"2018-08-01T15:34:49+00:00\",\"dateModified\":\"2018-08-01T16:11:10+00:00\",\"description\":\"Zone Optimisation allows you to filter the spend for each zone id and then block those zones that are not performing.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.exoclick.com\/it\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Master Class #2 Zone Optimization\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.exoclick.com\/#website\",\"url\":\"https:\/\/www.exoclick.com\/\",\"name\":\"ExoClick\",\"description\":\"The innovative ad network\",\"publisher\":{\"@id\":\"https:\/\/www.exoclick.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.exoclick.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.exoclick.com\/#organization\",\"name\":\"ExoClick\",\"url\":\"https:\/\/www.exoclick.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\/\/www.exoclick.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.exoclick.com\/wp-content\/uploads\/2015\/04\/exoclick_new_baseline.png\",\"contentUrl\":\"https:\/\/www.exoclick.com\/wp-content\/uploads\/2015\/04\/exoclick_new_baseline.png\",\"width\":1500,\"height\":613,\"caption\":\"ExoClick\"},\"image\":{\"@id\":\"https:\/\/www.exoclick.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.exoclick.com\/#\/schema\/person\/86c17743ee91b9d52e7b648e03a56168\",\"name\":\"Juanma Cortes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\/\/www.exoclick.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.exoclick.com\/wp-content\/uploads\/cache\/2017\/10\/juanma-small\/392160680.jpg\",\"contentUrl\":\"https:\/\/www.exoclick.com\/wp-content\/uploads\/cache\/2017\/10\/juanma-small\/392160680.jpg\",\"caption\":\"Juanma Cortes\"},\"description\":\"Head of Technical Support\",\"url\":\"https:\/\/www.exoclick.com\/it\/author\/juanma-cortes\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"API Master Class #2 Zone Optimization - ExoClick","description":"Zone Optimisation allows you to filter the spend for each zone id and then block those zones that are not performing.","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:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/","og_locale":"it_IT","og_type":"article","og_title":"API Master Class #2 Zone Optimization","og_description":"Zone Optimisation allows you to filter the spend for each zone id and then block those zones that are not performing.","og_url":"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/","og_site_name":"ExoClick","article_published_time":"2018-08-01T15:34:49+00:00","article_modified_time":"2018-08-01T16:11:10+00:00","og_image":[{"width":810,"height":430,"url":"https:\/\/www.exoclick.com\/wp-content\/uploads\/2018\/08\/API-Master-Class-2-1.png","type":"image\/png"}],"author":"Juanma Cortes","twitter_misc":{"Written by":"Juanma Cortes","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/#article","isPartOf":{"@id":"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/"},"author":{"name":"Juanma Cortes","@id":"https:\/\/www.exoclick.com\/#\/schema\/person\/86c17743ee91b9d52e7b648e03a56168"},"headline":"API Master Class #2 Zone Optimization","datePublished":"2018-08-01T15:34:49+00:00","dateModified":"2018-08-01T16:11:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/"},"wordCount":641,"commentCount":0,"publisher":{"@id":"https:\/\/www.exoclick.com\/#organization"},"articleSection":["API","Sviluppatore","Tutorial"],"inLanguage":"it-IT","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/","url":"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/","name":"API Master Class #2 Zone Optimization - ExoClick","isPartOf":{"@id":"https:\/\/www.exoclick.com\/#website"},"datePublished":"2018-08-01T15:34:49+00:00","dateModified":"2018-08-01T16:11:10+00:00","description":"Zone Optimisation allows you to filter the spend for each zone id and then block those zones that are not performing.","breadcrumb":{"@id":"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.exoclick.com\/it\/api-master-class-2-zone-optimization\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.exoclick.com\/it\/"},{"@type":"ListItem","position":2,"name":"API Master Class #2 Zone Optimization"}]},{"@type":"WebSite","@id":"https:\/\/www.exoclick.com\/#website","url":"https:\/\/www.exoclick.com\/","name":"ExoClick","description":"The innovative ad network","publisher":{"@id":"https:\/\/www.exoclick.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.exoclick.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"it-IT"},{"@type":"Organization","@id":"https:\/\/www.exoclick.com\/#organization","name":"ExoClick","url":"https:\/\/www.exoclick.com\/","logo":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/www.exoclick.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.exoclick.com\/wp-content\/uploads\/2015\/04\/exoclick_new_baseline.png","contentUrl":"https:\/\/www.exoclick.com\/wp-content\/uploads\/2015\/04\/exoclick_new_baseline.png","width":1500,"height":613,"caption":"ExoClick"},"image":{"@id":"https:\/\/www.exoclick.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.exoclick.com\/#\/schema\/person\/86c17743ee91b9d52e7b648e03a56168","name":"Juanma Cortes","image":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/www.exoclick.com\/#\/schema\/person\/image\/","url":"https:\/\/www.exoclick.com\/wp-content\/uploads\/cache\/2017\/10\/juanma-small\/392160680.jpg","contentUrl":"https:\/\/www.exoclick.com\/wp-content\/uploads\/cache\/2017\/10\/juanma-small\/392160680.jpg","caption":"Juanma Cortes"},"description":"Head of Technical Support","url":"https:\/\/www.exoclick.com\/it\/author\/juanma-cortes\/"}]}},"_links":{"self":[{"href":"https:\/\/www.exoclick.com\/it\/wp-json\/wp\/v2\/posts\/25063"}],"collection":[{"href":"https:\/\/www.exoclick.com\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.exoclick.com\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.exoclick.com\/it\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/www.exoclick.com\/it\/wp-json\/wp\/v2\/comments?post=25063"}],"version-history":[{"count":2,"href":"https:\/\/www.exoclick.com\/it\/wp-json\/wp\/v2\/posts\/25063\/revisions"}],"predecessor-version":[{"id":25083,"href":"https:\/\/www.exoclick.com\/it\/wp-json\/wp\/v2\/posts\/25063\/revisions\/25083"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.exoclick.com\/it\/wp-json\/wp\/v2\/media\/25077"}],"wp:attachment":[{"href":"https:\/\/www.exoclick.com\/it\/wp-json\/wp\/v2\/media?parent=25063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.exoclick.com\/it\/wp-json\/wp\/v2\/categories?post=25063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.exoclick.com\/it\/wp-json\/wp\/v2\/tags?post=25063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}