{"id":15844,"date":"2016-07-07T14:42:00","date_gmt":"2016-07-07T12:42:00","guid":{"rendered":"http:\/\/star-marketing.com.ua\/?p=15844"},"modified":"2016-07-14T16:34:56","modified_gmt":"2016-07-14T14:34:56","slug":"avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody","status":"publish","type":"post","link":"https:\/\/star-marketing.com.ua\/ua\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/","title":{"rendered":"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u0430 \u0437\u043c\u0456\u043d\u0430 \u0441\u0442\u0430\u0432\u043e\u043a \u0443 Google AdWords \u0437\u0430\u043b\u0435\u0436\u0438\u0442\u044c \u0432\u0456\u0434 \u043f\u043e\u0433\u043e\u0434\u0438"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">\u041f\u043e\u043f\u0438\u0442 \u043d\u0430 \u0440\u0456\u0437\u043d\u0456 \u0442\u043e\u0432\u0430\u0440\u0438 \u0442\u0430 \u043f\u043e\u0441\u043b\u0443\u0433\u0438 \u0437\u0430\u043b\u0435\u0436\u0438\u0442\u044c \u0432\u0456\u0434 \u0431\u0430\u0433\u0430\u0442\u044c\u043e\u0445 \u0443\u043c\u043e\u0432. \u0423 \u0434\u0435\u044f\u043a\u0438\u0445 \u0432\u0438\u043f\u0430\u0434\u043a\u0430\u0445 \u043f\u0435\u0432\u043d\u0438\u0439 \u0432\u043f\u043b\u0438\u0432 \u043c\u0430\u044e\u0442\u044c \u043f\u043e\u0433\u043e\u0434\u043d\u0456 \u0443\u043c\u043e\u0432\u0438. \u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0443 \u0434\u043e\u0449\u043e\u0432\u0443 \u043f\u043e\u0433\u043e\u0434\u0443 \u0432\u0456\u0434\u043c\u0456\u0447\u0435\u043d\u043e \u043f\u0456\u0434\u0432\u0438\u0449\u0435\u043d\u043d\u044f \u043f\u043e\u043f\u0438\u0442\u0443 \u0437\u0430\u043c\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u0437 \u0434\u043e\u0441\u0442\u0430\u0432\u043e\u043a \u0457\u0436\u0456 (\u0441\u0443\u0448\u0456, \u043f\u0456\u0446\u0430 \u0442\u043e\u0449\u043e.).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0417\u043c\u0456\u043d\u0443 \u0441\u0442\u0430\u0432\u043e\u043a \u0432\u0440\u0443\u0447\u043d\u0443 \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e \u0440\u043e\u0431\u0438\u0442\u0438 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e, \u0448\u0432\u0438\u0434\u043a\u043e \u0456 \u0443 \u0432\u0435\u043b\u0438\u043a\u0456\u0439 \u043a\u0456\u043b\u044c\u043a\u043e\u0441\u0442\u0456 \u043a\u0430\u043c\u043f\u0430\u043d\u0456\u0439, \u0449\u043e \u0442\u044f\u0433\u043d\u0435 \u0437\u0430 \u0441\u043e\u0431\u043e\u044e \u0437\u0431\u0456\u043b\u044c\u0448\u0435\u043d\u043d\u044f \u0442\u0438\u043c\u0447\u0430\u0441\u043e\u0432\u0438\u0445 \u0456, \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u043e, \u0433\u0440\u043e\u0448\u043e\u0432\u0438\u0445 \u0432\u0438\u0442\u0440\u0430\u0442.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0423 \u0437\u0432&#039;\u044f\u0437\u043a\u0443 \u0437 \u0446\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u0442\u0435\u0440\u0435\u0436\u0435\u043d\u043d\u044f\u043c\u0438, \u0432\u0438\u043d\u0438\u043a\u043b\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0456\u0457 \u0437\u043c\u0456\u043d\u0438 \u0441\u0442\u0430\u0432\u043e\u043a \u0443 \u0434\u043d\u0456, \u043a\u043e\u043b\u0438 \u0439\u0434\u0435 \u0434\u043e\u0449. \u0414\u043b\u044f \u0446\u0456\u0454\u0457 \u043c\u0435\u0442\u0438 \u0447\u0443\u0434\u043e\u0432\u043e \u043f\u0456\u0434\u0445\u043e\u0434\u0438\u0442\u044c <\/span><a href=\"https:\/\/developers.google.com\/adwords\/scripts\/docs\/solutions\/weather-based-campaign-management?hl=ru\"><span style=\"font-weight: 400;\">\u0441\u043a\u0440\u0438\u043f\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0456\u043d\u043d\u044f \u043a\u0430\u043c\u043f\u0430\u043d\u0456\u0454\u044e \u0437 \u0443\u0440\u0430\u0445\u0443\u0432\u0430\u043d\u043d\u044f\u043c \u043f\u043e\u0433\u043e\u0434\u0438<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0414\u043b\u044f \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0443 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0437\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044f \u0443 \u0441\u0435\u0440\u0432\u0456\u0441\u0456 <\/span><a href=\"http:\/\/openweathermap.org\/appid\"><span style=\"font-weight: 400;\">OpenWeatherMap<\/span><\/a><span style=\"font-weight: 400;\"> \u0442\u0430 \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u043a\u043b\u044e\u0447 API.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0414\u0440\u0443\u0433\u0435, \u0449\u043e \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e, \u2014 \u0441\u043a\u043e\u043f\u0456\u044e\u0432\u0430\u0442\u0438 <\/span><a href=\"https:\/\/docs.google.com\/spreadsheets\/d\/1o0W62Tt0a1Sf-AcwKzUcKT_Gu5FHh_UCdsDEm-pqvNs\/edit\"><span style=\"font-weight: 400;\">\u0448\u0430\u0431\u043b\u043e\u043d \u0435\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0457 \u0442\u0430\u0431\u043b\u0438\u0446\u0456<\/span><\/a><span style=\"font-weight: 400;\">\u0434\u0430\u043d\u0456 \u044f\u043a\u043e\u0457 \u0431\u0443\u0434\u0443\u0442\u044c \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c. \u0412\u043e\u043d\u0430 \u043c\u0456\u0441\u0442\u0438\u0442\u044c 3 \u0430\u0440\u043a\u0443\u0448\u0456, \u044f\u043a\u0456 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0437\u0430\u043f\u043e\u0432\u043d\u0438\u0442\u0438:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Campaigns \u2014 \u043f\u0435\u0440\u0435\u043b\u0456\u043a \u043a\u0430\u043c\u043f\u0430\u043d\u0456\u0439, \u0434\u043b\u044f \u044f\u043a\u0438\u0445 \u0431\u0443\u0434\u0443\u0442\u044c \u0437\u043c\u0456\u043d\u044e\u0432\u0430\u0442\u0438\u0441\u044f \u0441\u0442\u0430\u0432\u043a\u0438 (\u043d\u0430\u0437\u0432\u0438 \u043f\u043e\u0432\u0438\u043d\u043d\u0456 \u0431\u0443\u0442\u0438 \u0442\u0430\u043a\u0438\u043c\u0438 \u0436, \u044f\u043a \u0456 \u0432 Google AdWords)<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-15851 alignnone\" src=\"https:\/\/star-marketing.com.ua\/wp-content\/uploads\/2016\/07\/image02.png\" alt=\"image02\" width=\"763\" height=\"276\" \/><br \/>\n<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u0421\u0442\u043e\u0432\u043f\u0446\u0456 Weather Location \u0442\u0430 Weather Condition \u0437\u0432&#039;\u044f\u0437\u0443\u044e\u0442\u044c\u0441\u044f \u0437 \u043b\u0438\u0441\u0442\u0430\u043c\u0438 Geo Target Mapping \u0442\u0430 Weather Condition \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u043e.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0421\u0442\u043e\u0432\u043f\u0435\u0446\u044c Bid Modifier \u043c\u0456\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442 \u0437\u043c\u0456\u043d\u0438 \u0441\u0442\u0430\u0432\u043a\u0438 \u0437\u0430 \u0432\u0438\u0431\u0440\u0430\u043d\u0438\u0445 \u043f\u043e\u0433\u043e\u0434\u043d\u0438\u0445 \u0443\u043c\u043e\u0432. \u0423 \u0446\u044c\u043e\u043c\u0443 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0456 \u0432\u0438\u0431\u0440\u0430\u043d\u043e \u0434\u043b\u044f \u0434\u043e\u0449\u043e\u0432\u043e\u0457 \u043f\u043e\u0433\u043e\u0434\u0438 \u0437\u0431\u0456\u043b\u044c\u0448\u0435\u043d\u043d\u044f \u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u0430 20%, \u0430 \u043f\u043e\u0442\u0456\u043c \u0437\u043c\u0435\u043d\u0448\u0435\u043d\u043d\u044f \u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u0430 20% \u0434\u043e \u0432\u0438\u0445\u0456\u0434\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Weather Condition \u2014 \u043b\u0438\u0441\u0442 \u0437 \u0432\u0438\u0431\u0440\u0430\u043d\u0438\u043c\u0438 \u043f\u043e\u0433\u043e\u0434\u043d\u0438\u043c\u0438 \u0443\u043c\u043e\u0432\u0430\u043c\u0438<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-15845 alignnone\" src=\"https:\/\/star-marketing.com.ua\/wp-content\/uploads\/2016\/07\/image00.png\" alt=\"image00\" width=\"535\" height=\"217\" \/><br \/>\n<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u0423 \u0446\u044c\u043e\u043c\u0443 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0456 \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043e \u0434\u0432\u0430 \u0442\u0438\u043f\u0438 \u0441\u0442\u0430\u043d\u0443 \u043f\u043e\u0433\u043e\u0434\u0438: Sunny (\u0421\u043e\u043d\u044f\u0447\u043d\u0430) \u0442\u0430 Rainy (\u0414\u043e\u0449\u043e\u0432\u0430). \u0422\u0430\u043a\u043e\u0436 \u043e\u0431\u0440\u0430\u043d\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043f\u043e\u0432\u0456\u0442\u0440\u044f \u0443 \u0424\u0430\u0440\u0435\u043d\u0433\u0435\u0439\u0442\u0430\u0445, \u043a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u043e\u043f\u0430\u0434\u0456\u0432 \u0437\u0430 \u043e\u0441\u0442\u0430\u043d\u043d\u0456 3 \u0433\u043e\u0434\u0438\u043d\u0438 \u0443 \u043c\u043c \u0442\u0430 \u0448\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044c \u0432\u0456\u0442\u0440\u0443 \u0443 \u043c\/\u0433\u043e\u0434.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Geo Target Mapping - \u043b\u0438\u0441\u0442 \u0437 \u043d\u0430\u0437\u0432\u043e\u044e \u0440\u043e\u0437\u0442\u0430\u0448\u0443\u0432\u0430\u043d\u043d\u044f \u0442\u0430 \u043a\u043e\u0434\u043e\u043c \u0433\u0435\u043e\u0442\u0430\u0440\u0433\u0435\u0442\u0438\u043d\u0433\u0443<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-15848 alignnone\" src=\"https:\/\/star-marketing.com.ua\/wp-content\/uploads\/2016\/07\/image01.png\" alt=\"image01\" width=\"333\" height=\"174\" \/><br \/>\n<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">\u0414\u0435\u0442\u0430\u043b\u044c\u043d\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u043e\u0437\u0442\u0430\u0448\u0443\u0432\u0430\u043d\u043d\u044f \u043c\u043e\u0436\u043d\u0430 \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u043d\u0443\u0442\u0438 <\/span><a href=\"http:\/\/openweathermap.org\/help\/city_list.txt\"><span style=\"font-weight: 400;\">\u0442\u0443\u0442<\/span><\/a><span style=\"font-weight: 400;\">, \u0430 \u0432\u0441\u0456 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u0456 \u043a\u043e\u0434\u0438 \u0433\u0435\u043e\u0442\u0430\u0440\u0433\u0435\u0442\u0438\u043d\u0433\u0443 <\/span><a href=\"https:\/\/developers.google.com\/adwords\/api\/docs\/appendix\/geotargeting\"><span style=\"font-weight: 400;\">\u0442\u0443\u0442<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0414\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u043e\u0437\u0442\u0430\u0448\u0443\u0432\u0430\u043d\u043d\u044f \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043e \u043a\u0456\u043b\u044c\u043a\u0430 \u043a\u043e\u0434\u0456\u0432 \u0433\u0435\u043e\u0442\u0430\u0440\u0433\u0435\u0442\u0438\u043d\u0433\u0443. \u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0456 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u0440\u044f\u0434\u043a\u0438 \u0437 \u0442\u0438\u043c \u0441\u0430\u043c\u0438\u043c \u043c\u0456\u0441\u0446\u0435\u043c \u0440\u043e\u0437\u0442\u0430\u0448\u0443\u0432\u0430\u043d\u043d\u044f \u0442\u0430 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0438\u043c \u043a\u043e\u0434\u043e\u043c.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0412\u0430\u0436\u043b\u0438\u0432\u043e \u043f\u0430\u043c&#039;\u044f\u0442\u0430\u0442\u0438, \u0449\u043e \u0443 \u043a\u0430\u043c\u043f\u0430\u043d\u0456\u0457, \u0434\u043b\u044f \u044f\u043a\u043e\u0457 \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442, \u043f\u043e\u0432\u0438\u043d\u0435\u043d \u0431\u0443\u0442\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u0433\u0435\u043e\u0442\u0430\u0440\u0433\u0435\u0442\u0438\u043d\u0433 \u043d\u0430 \u0432\u0438\u0431\u0440\u0430\u043d\u0435 \u043c\u0456\u0441\u0446\u0435\u0437\u043d\u0430\u0445\u043e\u0434\u0436\u0435\u043d\u043d\u044f, \u0456\u043d\u0430\u043a\u0448\u0435 \u0432\u0456\u043d \u043d\u0435 \u0432\u0438\u043a\u043e\u043d\u0443\u0432\u0430\u0442\u0438\u043c\u0435 \u0436\u043e\u0434\u043d\u0438\u0445 \u0437\u043c\u0456\u043d \u0441\u0442\u0430\u0432\u043e\u043a.<\/span><\/p>\n<p><strong><span style=\"font-weight: 400;\">\u041f\u0456\u0441\u043b\u044f \u0442\u043e\u0433\u043e, \u044f\u043a \u0431\u0443\u0434\u0443\u0442\u044c \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u0456 \u043e\u043f\u0438\u0441\u0430\u043d\u0456 \u0432\u0438\u0449\u0435 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f, \u0434\u043e\u0434\u0430\u0439\u0442\u0435 \u043a\u043e\u0434 \u0441\u043a\u0440\u0438\u043f\u0442\u0443, \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u043d\u0438\u0436\u0447\u0435:<\/span><\/strong><\/p>\n<div class=\"panel-group accordion\" id=\"accordion-51\">\n\t\t\t\t<div class=\"panel\">\t\t\n\t\t\t\t\t<div class=\"panel-heading\">\n\t\t\t\t\t\t<span class=\"panel-title\">\n\t\t\t\t\t\t\t<a class=\"accordion-toggle collapsed-icon\" data-parent=\"#accordion-51\"  data-toggle=\"collapse\" href=\"#acc-3127\">\n\t\t\t\t\t\t\t\t<small><i class=\"fa\"><\/i>\u0412\u0438\u0445\u0456\u0434\u043d\u0438\u0439 \u043a\u043e\u0434<\/small>\n\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/div>    \n\t\t\t\t\t<div id=\"acc-3127\" class=\"panel-collapse collapse in\">\n\t\t\t\t\t\t<div class=\"panel-body\">\n\t\t\t\t\t\t\t<code><\/code><\/p>\n<pre>var OPEN_WEATHER_MAP_API_KEY = \"OPEN_WEATHER_MAP_API_KEY\";\r\nvar SPREADSHEET_URL = 'SPREADSHEET_URL';\r\nvar WEATHER_LOOKUP_CACHE = {};\r\nfunction main() {\r\n  var spreadsheet = SpreadsheetApp.openByUrl(SPREADSHEET_URL);\r\n  var campaignRuleData = getSheetData(spreadsheet, 1);\r\n  var weatherConditionData = getSheetData(spreadsheet, 2);\r\n  var geoMappingData = getSheetData(spreadsheet, 3);\r\n  var campaignMapping = buildCampaignRulesMapping(campaignRuleData);\r\n  var weatherConditionMapping =buildWeatherConditionMapping(weatherConditionData);\r\n  var locationMapping = buildLocationMapping(geoMappingData);\r\n  for (var campaignName in campaignMapping) {\r\n    applyRulesForCampaign(campaignName, campaignMapping[campaignName], locationMapping, weatherConditionMapping);\r\n  }\r\n}\r\nfunction getSheetData(spreadsheet, sheetIndex) {\r\n  var sheet = spreadsheet.getSheets()[sheetIndex];\r\n  var range = sheet.getRange(2, 1, sheet.getLastRow() - 1, sheet.getLastColumn());\r\nreturn range.getValues();\r\n}\r\nfunction buildCampaignRulesMapping(campaignRulesData) {\r\n  var campaignMapping = {};\r\n  for (var i = 0; i &lt; campaignRulesData.length; i++) {\r\n    if (campaignRulesData[i][4].toLowerCase() == 'yes') {\r\n      var campaignName = campaignRulesData[i][0];\r\n      var campaignRules = campaignMapping[campaignName] || [];\r\n      campaignRules.push({\r\n          'name': campaignName,\r\n          'location': campaignRulesData[i][1],\r\n          'condition': campaignRulesData[i][2],\r\n          'bidModifier': campaignRulesData[i][3]\r\n      });\r\n      campaignMapping[campaignName] = campaignRules;\r\n    }\r\n  }\r\n  return campaignMapping;\r\n}\r\nfunction buildWeatherConditionMapping(weatherConditionData) {\r\n  var weatherConditionMapping = {};\r\n  for (var i = 0; i &lt; weatherConditionData.length; i++) {\r\n    var weatherConditionName = weatherConditionData[i][0];\r\n    weatherConditionMapping[weatherConditionName] = {\r\n      'condition': weatherConditionName,\r\n      'temperature': weatherConditionData[i][1],\r\n      'precipitation': weatherConditionData[i][2],\r\n      'wind': weatherConditionData[i][3]\r\n    };\r\n  }\r\n  return weatherConditionMapping;\r\n}\r\nfunction buildLocationMapping(geoTargetData) {\r\n  var locationMapping = {};\r\n  for (var i = 0; i &lt; geoTargetData.length; i++) {\r\n    var locationName = geoTargetData[i][0];\r\n    var locationDetails = locationMapping[locationName] || {\r\n      'geoCodes': []      \r\n    };\r\n    locationDetails.geoCodes.push(geoTargetData[i][1]);\r\n    locationMapping[locationName] = locationDetails;\r\n  }\r\n  return locationMapping;\r\n}\r\nfunction applyRulesForCampaign(campaignName, campaignRules, locationMapping, weatherConditionMapping) {\r\n  for (var i = 0; i &lt; campaignRules.length; i++) {\r\n    var bidModifier = 1;\r\n    var campaignRule = campaignRules[i];\r\n    var locationDetails = locationMapping[campaignRule.location];\r\n    var weather = getWeather(campaignRule.location);\r\n    var weatherConditionName = campaignRule.condition;\r\n    var weatherConditionRules = weatherConditionMapping[weatherConditionName];\r\n    if (evaluateWeatherRules(weatherConditionRules, weather)) {\r\n      bidModifier = campaignRule.bidModifier;\r\n      adjustBids(campaignName, locationDetails.geoCodes, bidModifier);\r\n    }\r\n  }\r\n  return;\r\n}\r\nfunction toFahrenheit(kelvin) {\r\n  return (kelvin - 273.15) * 1.8 + 32;\r\n}\r\nfunction evaluateWeatherRules(weatherRules, weather) {\r\n  var precipitation = 0;\r\n  if (weather.rain &amp;&amp; weather.rain['3h']) {\r\n    precipitation = weather.rain['3h'];\r\n  }\r\n  var temperature = toFahrenheit(weather.main.temp);\r\n  var windspeed = weather.wind.speed;\r\n  return evaluateMatchRules(weatherRules.temperature, temperature) &amp;&amp;\r\n      evaluateMatchRules(weatherRules.precipitation, precipitation) &amp;&amp;\r\n      evaluateMatchRules(weatherRules.wind, windspeed);\r\n}\r\nfunction evaluateMatchRules(condition, value) {\r\n  if (condition == '') {\r\n    return true;\r\n  }\r\n  var rules = [matchesBelow, matchesAbove, matchesRange];\r\n  for (var i = 0; i &lt; rules.length; i++) {\r\n    if (rules[i](condition, value)) {\r\n      return true;\r\n    }\r\n  }\r\n  return false;\r\n}\r\nfunction matchesBelow(condition, value) {\r\n  conditionParts = condition.split(' ');\r\n  if (conditionParts.length != 2) {\r\n    return false;\r\n  }\r\n  if (conditionParts[0] != 'below') {\r\n    return false;\r\n  }\r\n  if (value &lt; conditionParts[1]) {\r\n    return true;\r\n  }\r\n  return false;\r\n}\r\nfunction matchesAbove(condition, value) {\r\n  conditionParts = condition.split(' ');\r\n  if (conditionParts.length != 2) {\r\n    return false;\r\n  }\r\n  if (conditionParts[0] != 'above') {\r\n    return false;\r\n  }\r\n  if (value &gt; conditionParts[1]) {\r\n    return true;\r\n  }\r\n  return false;\r\n}\r\nfunction matchesRange(condition, value) {\r\n  conditionParts = condition.replace('\\w+', ' ').split(' ');\r\n  if (conditionParts.length != 3) {\r\n    return false;\r\n  }\r\n  if (conditionParts[1] != 'to') {\r\n    return false;\r\n  }\r\n  if (conditionParts[0] &lt;= value &amp;&amp; value &lt;= conditionParts[2]) {\r\n    return true;\r\n  }\r\n  return false;\r\n}\r\nfunction getWeather(location) {\r\n  if (location in WEATHER_LOOKUP_CACHE) {\r\n    return WEATHER_LOOKUP_CACHE[location];\r\n  }\r\n  var url = Utilities.formatString('http:\/\/api.openweathermap.org\/data\/2.5\/weather?APPID=%s&amp;q=%s', encodeURIComponent(OPEN_WEATHER_MAP_API_KEY), encodeURIComponent(location));\r\n  var response = UrlFetchApp.fetch(url);\r\n  if (response.getResponseCode() != 200) {\r\n    throw Utilities.formatString('Error returned by API: %s, Location searched: %s.', response.getContentText(), location);\r\n  }\r\n  var result = JSON.parse(response.getContentText());\r\n  if (result.cod != 200) {\r\n    throw Utilities.formatString('Error returned by API: %s,  Location searched: %s.', response.getContentText(), location);\r\n  }\r\n  WEATHER_LOOKUP_CACHE[location] = result;\r\n  return result;\r\n}\r\nfunction adjustBids(campaignName, geocodes, bidModifier) {\r\n  var campaignIterator = AdWordsApp.campaigns().withCondition( Utilities.formatString('CampaignName = \"%s\"', campaignName)).get();\r\n  while (campaignIterator.hasNext()) {\r\n    var campaign = campaignIterator.next();\r\n    var locations = campaign.targeting().targetedLocations().get();\r\n    while (locations.hasNext()) {\r\n      var location = locations.next();\r\n      var currentBidModifier = location.getBidModifier().toFixed(2);\r\n      if (geocodes.indexOf(location.getId()) != -1 &amp;&amp;\r\n          currentBidModifier != bidModifier) {\r\n        location.setBidModifier(bidModifier);\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><code><\/code><br \/>\n\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div><\/div>\n<p><span style=\"font-weight: 400;\">\u0423 \u043a\u043e\u0434\u0456 \u0437\u0430\u043c\u0456\u043d\u0456\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u043c\u0456\u043d\u043d\u0438\u0445 <\/span><span style=\"font-weight: 400;\">OPEN_WEATHER_MAP_API_KEY \u0442\u0430 SPREADSHEET_URL<\/span><span style=\"font-weight: 400;\"> \u043d\u0430 \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u0438\u0439 \u043a\u043b\u044e\u0447 API \u0441\u0435\u0440\u0432\u0456\u0441\u0443 \u043f\u043e\u0433\u043e\u0434\u0438 \u0442\u0430 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044e Bid by Weather \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u043e. \u041f\u0456\u0441\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0456\u0442\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e. \u041d\u0430 \u0446\u044c\u043e\u043c\u0443 \u0432\u0441\u0435.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0430\u043a\u0438\u043c \u0447\u0438\u043d\u043e\u043c, \u044f\u043a\u0449\u043e \u0412\u0430\u0448 \u0431\u0456\u0437\u043d\u0435\u0441 \u043f\u0435\u0432\u043d\u043e\u044e \u043c\u0456\u0440\u043e\u044e \u0437\u0430\u043b\u0435\u0436\u0438\u0442\u044c \u0432\u0456\u0434 \u043f\u043e\u0433\u043e\u0434\u043d\u0438\u0445 \u0443\u043c\u043e\u0432, \u0412\u0438 \u0441\u043c\u0456\u043b\u0438\u0432\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0446\u0435\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0442\u0430 \u0435\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0443\u0432\u0430\u0442\u0438 \u0437 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f\u043c\u0438. \u042f\u043a\u0449\u043e \u0432\u0438\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u044f\u043a\u0456\u0441\u044c \u043f\u0438\u0442\u0430\u043d\u043d\u044f, \u043c\u0438 \u0437 \u0440\u0430\u0434\u0456\u0441\u0442\u044e \u0434\u0430\u043c\u043e \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c \u043d\u0430 \u043d\u0438\u0445 \u0443 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u044f\u0445.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: right;\">\u0410\u0432\u0442\u043e\u0440:\u00a0<span style=\"font-weight: 400;\">web-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0456\u0441\u0442 \u0430\u0433\u0435\u043d\u0442\u0441\u0442\u0432\u0430 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0456\u0447\u043d\u043e\u0433\u043e \u0456\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0440\u043a\u0435\u0442\u0438\u043d\u0433\u0443 <\/span><a href=\"https:\/\/plus.google.com\/+Star-marketingUa\"><span style=\"font-weight: 400;\">\u00abStarMarketing\u00bb<\/span><\/a><span style=\"font-weight: 400;\">\u00a0\u041a\u0430\u0442\u0435\u0440\u0438\u043d\u0430 \u0414\u0435\u043c&#039;\u044f\u043d\u0447\u0443\u043a<\/span><\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u043f\u0438\u0442 \u043d\u0430 \u0440\u0456\u0437\u043d\u0456 \u0442\u043e\u0432\u0430\u0440\u0438 \u0442\u0430 \u043f\u043e\u0441\u043b\u0443\u0433\u0438 \u0437\u0430\u043b\u0435\u0436\u0438\u0442\u044c \u0432\u0456\u0434 \u0431\u0430\u0433\u0430\u0442\u044c\u043e\u0445 \u0443\u043c\u043e\u0432. \u0423 \u0434\u0435\u044f\u043a\u0438\u0445 \u0432\u0438\u043f\u0430\u0434\u043a\u0430\u0445 \u043f\u0435\u0432\u043d\u0438\u0439 \u0432\u043f\u043b\u0438\u0432 \u043c\u0430\u044e\u0442\u044c \u043f\u043e\u0433\u043e\u0434\u043d\u0456 \u0443\u043c\u043e\u0432\u0438. \u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0443 \u0434\u043e\u0449\u043e\u0432\u0443 \u043f\u043e\u0433\u043e\u0434\u0443 \u0432\u0456\u0434\u043c\u0456\u0447\u0435\u043d\u043e \u043f\u0456\u0434\u0432\u0438\u0449\u0435\u043d\u043d\u044f \u043f\u043e\u043f\u0438\u0442\u0443 \u0437\u0430\u043c\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u0437 \u0434\u043e\u0441\u0442\u0430\u0432\u043e\u043a \u0457\u0436\u0456 (\u0441\u0443\u0448\u0456, \u043f\u0456\u0446\u0430 \u0442\u043e\u0449\u043e.). \u0417\u043c\u0456\u043d\u0443 \u0441\u0442\u0430\u0432\u043e\u043a \u0432\u0440\u0443\u0447\u043d\u0443 \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e \u0440\u043e\u0431\u0438\u0442\u0438 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e, \u0448\u0432\u0438\u0434\u043a\u043e, \u0456 \u0443 \u0432\u0435\u043b\u0438\u043a\u0456\u0439 \u043a\u0456\u043b\u044c\u043a\u043e\u0441\u0442\u0456 \u043a\u0430\u043c\u043f\u0430\u043d\u0456\u0439, \u0449\u043e \u0441\u043f\u0440\u0438\u0447\u0438\u043d\u044f\u0454 \u0437\u0431\u0456\u043b\u044c\u0448\u0435\u043d\u043d\u044f \u0442\u0438\u043c\u0447\u0430\u0441\u043e\u0432\u0438\u0445 \u0456, \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u043e, [\u2026]<\/p>","protected":false},"author":6,"featured_media":15855,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[152,214],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0421\u0442\u0430\u0432\u043e\u043a \u0412 Google AdWords \u0412 \u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u041e\u0442 \u041f\u043e\u0433\u043e\u0434\u044b | Star-Marketing<\/title>\n<meta name=\"description\" content=\"\u041a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0432\u043e\u043a \u0432 Google AdWords \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043e\u0433\u043e\u0434\u044b. \u0422\u043e\u043b\u044c\u043a\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0432 \u0431\u043b\u043e\u0433\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0412\u0430\u0441.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/star-marketing.com.ua\/ua\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/\" \/>\n<meta property=\"og:locale\" content=\"uk_UA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0421\u0442\u0430\u0432\u043e\u043a \u0412 Google AdWords \u0412 \u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u041e\u0442 \u041f\u043e\u0433\u043e\u0434\u044b | Star-Marketing\" \/>\n<meta property=\"og:description\" content=\"\u041a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0432\u043e\u043a \u0432 Google AdWords \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043e\u0433\u043e\u0434\u044b. \u0422\u043e\u043b\u044c\u043a\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0432 \u0431\u043b\u043e\u0433\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0412\u0430\u0441.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/star-marketing.com.ua\/ua\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/\" \/>\n<meta property=\"og:site_name\" content=\"StarMarketing\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/StarMarketing.com.ua\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-07T12:42:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-07-14T14:34:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/star-marketing.com.ua\/wp-content\/uploads\/2016\/07\/weather.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1\" \/>\n\t<meta property=\"og:image:height\" content=\"1\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u0412\u0430\u0434\u0438\u043c \u0421\u0442\u0435\u0431\u043b\u0438\u043d\u0441\u043a\u0438\u0439\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/\"},\"author\":{\"name\":\"\u0412\u0430\u0434\u0438\u043c \u0421\u0442\u0435\u0431\u043b\u0438\u043d\u0441\u043a\u0438\u0439\",\"@id\":\"https:\/\/star-marketing.com.ua\/#\/schema\/person\/acc31cc9972a5add101edd8f0de5131a\"},\"headline\":\"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0432\u043e\u043a \u0432 Google AdWords \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043e\u0433\u043e\u0434\u044b\",\"datePublished\":\"2016-07-07T12:42:00+00:00\",\"dateModified\":\"2016-07-14T14:34:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/\"},\"wordCount\":407,\"publisher\":{\"@id\":\"https:\/\/star-marketing.com.ua\/#organization\"},\"articleSection\":[\"\u0421\u0442\u0430\u0442\u044c\u0438 \u043f\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0439 \u0440\u0435\u043a\u043b\u0430\u043c\u0435\",\"\u0411\u043b\u043e\u0433\"],\"inLanguage\":\"uk\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/\",\"url\":\"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/\",\"name\":\"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0421\u0442\u0430\u0432\u043e\u043a \u0412 Google AdWords \u0412 \u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u041e\u0442 \u041f\u043e\u0433\u043e\u0434\u044b | Star-Marketing\",\"isPartOf\":{\"@id\":\"https:\/\/star-marketing.com.ua\/#website\"},\"datePublished\":\"2016-07-07T12:42:00+00:00\",\"dateModified\":\"2016-07-14T14:34:56+00:00\",\"description\":\"\u041a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0432\u043e\u043a \u0432 Google AdWords \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043e\u0433\u043e\u0434\u044b. \u0422\u043e\u043b\u044c\u043a\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0432 \u0431\u043b\u043e\u0433\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0412\u0430\u0441.\",\"breadcrumb\":{\"@id\":\"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/#breadcrumb\"},\"inLanguage\":\"uk\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/star-marketing.com.ua\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0432\u043e\u043a \u0432 Google AdWords \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043e\u0433\u043e\u0434\u044b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/star-marketing.com.ua\/#website\",\"url\":\"https:\/\/star-marketing.com.ua\/\",\"name\":\"StarMarketing\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/star-marketing.com.ua\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/star-marketing.com.ua\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"uk\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/star-marketing.com.ua\/#organization\",\"name\":\"StarMarketing digital marketing agency: SEO, Google Ads, SMM marketing\",\"url\":\"https:\/\/star-marketing.com.ua\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"uk\",\"@id\":\"https:\/\/star-marketing.com.ua\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/star-marketing.com.ua\/wp-content\/uploads\/2020\/10\/SM-Logo-White-Eng-2016.jpg\",\"contentUrl\":\"https:\/\/star-marketing.com.ua\/wp-content\/uploads\/2020\/10\/SM-Logo-White-Eng-2016.jpg\",\"width\":1417,\"height\":492,\"caption\":\"StarMarketing digital marketing agency: SEO, Google Ads, SMM marketing\"},\"image\":{\"@id\":\"https:\/\/star-marketing.com.ua\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/StarMarketing.com.ua\",\"https:\/\/instagram.com\/starmarketing.com.ua\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/star-marketing.com.ua\/#\/schema\/person\/acc31cc9972a5add101edd8f0de5131a\",\"name\":\"\u0412\u0430\u0434\u0438\u043c \u0421\u0442\u0435\u0431\u043b\u0438\u043d\u0441\u043a\u0438\u0439\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"uk\",\"@id\":\"https:\/\/star-marketing.com.ua\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/342ba0ae6b52d32c7a08792b0763997e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/342ba0ae6b52d32c7a08792b0763997e?s=96&d=mm&r=g\",\"caption\":\"\u0412\u0430\u0434\u0438\u043c \u0421\u0442\u0435\u0431\u043b\u0438\u043d\u0441\u043a\u0438\u0439\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0421\u0442\u0430\u0432\u043e\u043a \u0412 Google AdWords \u0412 \u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u041e\u0442 \u041f\u043e\u0433\u043e\u0434\u044b | Star-Marketing","description":"\u041a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0432\u043e\u043a \u0432 Google AdWords \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043e\u0433\u043e\u0434\u044b. \u0422\u043e\u043b\u044c\u043a\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0432 \u0431\u043b\u043e\u0433\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0412\u0430\u0441.","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:\/\/star-marketing.com.ua\/ua\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/","og_locale":"uk_UA","og_type":"article","og_title":"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0421\u0442\u0430\u0432\u043e\u043a \u0412 Google AdWords \u0412 \u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u041e\u0442 \u041f\u043e\u0433\u043e\u0434\u044b | Star-Marketing","og_description":"\u041a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0432\u043e\u043a \u0432 Google AdWords \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043e\u0433\u043e\u0434\u044b. \u0422\u043e\u043b\u044c\u043a\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0432 \u0431\u043b\u043e\u0433\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0412\u0430\u0441.","og_url":"https:\/\/star-marketing.com.ua\/ua\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/","og_site_name":"StarMarketing","article_publisher":"https:\/\/facebook.com\/StarMarketing.com.ua","article_published_time":"2016-07-07T12:42:00+00:00","article_modified_time":"2016-07-14T14:34:56+00:00","og_image":[{"url":"https:\/\/star-marketing.com.ua\/wp-content\/uploads\/2016\/07\/weather.jpg","width":1,"height":1,"type":"image\/jpeg"}],"author":"\u0412\u0430\u0434\u0438\u043c \u0421\u0442\u0435\u0431\u043b\u0438\u043d\u0441\u043a\u0438\u0439","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/#article","isPartOf":{"@id":"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/"},"author":{"name":"\u0412\u0430\u0434\u0438\u043c \u0421\u0442\u0435\u0431\u043b\u0438\u043d\u0441\u043a\u0438\u0439","@id":"https:\/\/star-marketing.com.ua\/#\/schema\/person\/acc31cc9972a5add101edd8f0de5131a"},"headline":"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0432\u043e\u043a \u0432 Google AdWords \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043e\u0433\u043e\u0434\u044b","datePublished":"2016-07-07T12:42:00+00:00","dateModified":"2016-07-14T14:34:56+00:00","mainEntityOfPage":{"@id":"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/"},"wordCount":407,"publisher":{"@id":"https:\/\/star-marketing.com.ua\/#organization"},"articleSection":["\u0421\u0442\u0430\u0442\u044c\u0438 \u043f\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0439 \u0440\u0435\u043a\u043b\u0430\u043c\u0435","\u0411\u043b\u043e\u0433"],"inLanguage":"uk"},{"@type":"WebPage","@id":"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/","url":"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/","name":"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0421\u0442\u0430\u0432\u043e\u043a \u0412 Google AdWords \u0412 \u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u041e\u0442 \u041f\u043e\u0433\u043e\u0434\u044b | Star-Marketing","isPartOf":{"@id":"https:\/\/star-marketing.com.ua\/#website"},"datePublished":"2016-07-07T12:42:00+00:00","dateModified":"2016-07-14T14:34:56+00:00","description":"\u041a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0432\u043e\u043a \u0432 Google AdWords \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043e\u0433\u043e\u0434\u044b. \u0422\u043e\u043b\u044c\u043a\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0432 \u0431\u043b\u043e\u0433\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0412\u0430\u0441.","breadcrumb":{"@id":"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/#breadcrumb"},"inLanguage":"uk","potentialAction":[{"@type":"ReadAction","target":["https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/star-marketing.com.ua\/en\/blog\/avtomaticheskoe-izmenenie-stavok-v-google-adwords-v-zavisimosti-ot-pogody\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/star-marketing.com.ua\/"},{"@type":"ListItem","position":2,"name":"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0432\u043e\u043a \u0432 Google AdWords \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043e\u0433\u043e\u0434\u044b"}]},{"@type":"WebSite","@id":"https:\/\/star-marketing.com.ua\/#website","url":"https:\/\/star-marketing.com.ua\/","name":"StarMarketing","description":"","publisher":{"@id":"https:\/\/star-marketing.com.ua\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/star-marketing.com.ua\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"uk"},{"@type":"Organization","@id":"https:\/\/star-marketing.com.ua\/#organization","name":"StarMarketing digital marketing agency: SEO, Google Ads, SMM marketing","url":"https:\/\/star-marketing.com.ua\/","logo":{"@type":"ImageObject","inLanguage":"uk","@id":"https:\/\/star-marketing.com.ua\/#\/schema\/logo\/image\/","url":"https:\/\/star-marketing.com.ua\/wp-content\/uploads\/2020\/10\/SM-Logo-White-Eng-2016.jpg","contentUrl":"https:\/\/star-marketing.com.ua\/wp-content\/uploads\/2020\/10\/SM-Logo-White-Eng-2016.jpg","width":1417,"height":492,"caption":"StarMarketing digital marketing agency: SEO, Google Ads, SMM marketing"},"image":{"@id":"https:\/\/star-marketing.com.ua\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/StarMarketing.com.ua","https:\/\/instagram.com\/starmarketing.com.ua\/"]},{"@type":"Person","@id":"https:\/\/star-marketing.com.ua\/#\/schema\/person\/acc31cc9972a5add101edd8f0de5131a","name":"\u0412\u0430\u0434\u0438\u043c \u0421\u0442\u0435\u0431\u043b\u0438\u043d\u0441\u043a\u0438\u0439","image":{"@type":"ImageObject","inLanguage":"uk","@id":"https:\/\/star-marketing.com.ua\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/342ba0ae6b52d32c7a08792b0763997e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/342ba0ae6b52d32c7a08792b0763997e?s=96&d=mm&r=g","caption":"\u0412\u0430\u0434\u0438\u043c \u0421\u0442\u0435\u0431\u043b\u0438\u043d\u0441\u043a\u0438\u0439"}}]}},"views":1419,"_links":{"self":[{"href":"https:\/\/star-marketing.com.ua\/ua\/wp-json\/wp\/v2\/posts\/15844"}],"collection":[{"href":"https:\/\/star-marketing.com.ua\/ua\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/star-marketing.com.ua\/ua\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/star-marketing.com.ua\/ua\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/star-marketing.com.ua\/ua\/wp-json\/wp\/v2\/comments?post=15844"}],"version-history":[{"count":0,"href":"https:\/\/star-marketing.com.ua\/ua\/wp-json\/wp\/v2\/posts\/15844\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/star-marketing.com.ua\/ua\/wp-json\/wp\/v2\/media\/15855"}],"wp:attachment":[{"href":"https:\/\/star-marketing.com.ua\/ua\/wp-json\/wp\/v2\/media?parent=15844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/star-marketing.com.ua\/ua\/wp-json\/wp\/v2\/categories?post=15844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/star-marketing.com.ua\/ua\/wp-json\/wp\/v2\/tags?post=15844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}