{"id":12369,"date":"2020-07-16T16:00:00","date_gmt":"2020-07-16T10:30:00","guid":{"rendered":"https:\/\/www.karooya.com\/blog\/?p=12369"},"modified":"2020-09-23T17:00:41","modified_gmt":"2020-09-23T11:30:41","slug":"google-ads-script-search-term-trends","status":"publish","type":"post","link":"https:\/\/www.karooya.com\/blog\/google-ads-script-search-term-trends\/","title":{"rendered":"Google Ads Script For Search Term Trends"},"content":{"rendered":"\n<p class=\"lead\">We have recently created a handy Google Ads Script that compares the Search Terms Trends for the time period chosen by you.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>With this script you can understand the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>You can identify search terms that are losing impressions, clicks or conversions. It could be because you lowered bids recently; or because your competitor has started bidding aggressively. In both cases, if the search term is important for your business and\/or if the search term converts well for you, you should increase your bids<\/li><li>To observe increase\/decrease in cost (avg CPC) for the important search terms. It can indicate change in competitiveness and\/or impact of seasonality on a search term.<\/li><li>You can compare the data year on year to see how account&#8217;s behaviour has changed over last one year. While month on month the changes might appear small, over a year, and need not be a cause of worry, these changes accumulate. Year on year helps you magnify those changes.<\/li><li>The terms that are showing growth in impressions can be of help to your colleagues working on SEO. Data of paid search provides an early indication of the trend and it can be used to improve organic ranking.<\/li><\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Now how is this script different from Native Search Term Comparison available in Google Ads?<\/strong><\/p>\n\n\n\n<p>If you are comparing the search terms report from an account level, then in Google Ads, the search terms will be displayed for each ad group. If similar keyword is used across multiple ad groups then you will see the comparison drawn for all those multiple ad groups. Thus, you don&#8217;t get to see the cumulative performance change of a single keyword across your account.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>But, with our script that purpose is solved. We give you insight into the search terms from an account level. The data that you get access to, is of the search terms from all the campaigns and ad groups clubbed together. This helps in getting a holistic view of how the search terms have been performing.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-buttons aligncenter is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-background has-vivid-cyan-blue-background-color\" href=\"https:\/\/www.karooya.com\/resources\/aw-script\/search-term-trends.js\" target=\"_blank\" rel=\"noreferrer noopener\">Search Terms Trends script<\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>The Script &amp; The Report<\/strong><\/h4>\n\n\n\n<p>Add the variable components as per your requirement (details mentioned below). Run the script and review the file sent on your email address or copy the link of the Google Drive file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"465\" src=\"https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/google-search-terms-trend-script-log-1024x465.png\" alt=\"google ads script log\" class=\"wp-image-12605\" srcset=\"https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/google-search-terms-trend-script-log-1024x465.png 1024w, https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/google-search-terms-trend-script-log-300x136.png 300w, https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/google-search-terms-trend-script-log-768x349.png 768w, https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/google-search-terms-trend-script-log.png 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>google search terms trend script log<\/figcaption><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Here is a look at the file that you will get access to:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"572\" src=\"https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/search-terms-trend-report-summary-1-1024x572.png\" alt=\"search terms trend report summary\" class=\"wp-image-12604\" srcset=\"https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/search-terms-trend-report-summary-1-1024x572.png 1024w, https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/search-terms-trend-report-summary-1-300x168.png 300w, https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/search-terms-trend-report-summary-1-768x429.png 768w, https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/search-terms-trend-report-summary-1.png 1216w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The first sheet consists of the summary of the findings. It lists the top 10 search terms that have lost impressions during the time period chosen by you.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>The second sheet contains the detailed insight of your search terms for the time period chosen by you. The comparison is drawn on the four key metrics:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Impressions<\/li><li>Clicks<\/li><li>Conversions<\/li><li>Cost<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"372\" src=\"https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/google-ads-account-search-terms-report-detail-1024x372.png\" alt=\"account search term trend report summary\" class=\"wp-image-12600\" srcset=\"https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/google-ads-account-search-terms-report-detail-1024x372.png 1024w, https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/google-ads-account-search-terms-report-detail-300x109.png 300w, https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/google-ads-account-search-terms-report-detail-768x279.png 768w, https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/google-ads-account-search-terms-report-detail-1536x558.png 1536w, https:\/\/www.karooya.com\/blog\/wp-content\/uploads\/2020\/07\/google-ads-account-search-terms-report-detail.png 1758w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Comparing Performance using Custom_Date_Range<\/strong><\/h4>\n\n\n\n<p>Since this script is about comparing the search trends for two time periods, either the variables DATE__RANGE or CUSTOM_DATE_RANGE need to necessarily be specified.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Use the <strong>CUSTOM_DATE_RANGE<\/strong> variable to define the time period that you wish to compare the search terms for (you need to turn the flag &#8220;true&#8221; to activate the variable) <\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>For. e.g. you can compare performance of  June 2020 vs that of May 2020 this year. Here is how you will pass the data in the variable.<\/p>\n\n\n\n<p><strong>START_DATE1<\/strong>=&#8221;2020-06-01&#8243;      <strong>END_DATE1<\/strong>=&#8221;2020-06-30&#8243;<\/p>\n\n\n\n<p><strong>START_DATE2<\/strong>=&#8221;2020-05-01&#8243;      <strong>END_DATE2<\/strong>=&#8221;2020-05-31&#8243;<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Or you could compare the performance of June 2020 with that of June 2019. Here is how you will pass the data in the variable.<\/p>\n\n\n\n<p><strong>START_DATE1<\/strong>=&#8221;2020-06-01&#8243;      <strong>END_DATE1<\/strong>=&#8221;2020-06-30&#8243;<\/p>\n\n\n\n<p><strong>START_DATE2<\/strong>=&#8221;2019-06-01&#8243;      <strong>END_DATE2<\/strong>=&#8221;2019-06-30&#8243;<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Similarly you can also compare Q2, 2020 performance with Q1, 2020 or Q2, 2020 with Q2, 2019 etc. <\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>If you want to use predefined ranges, then the following options are fed in the script (DATE_RANGE) for you to choose:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>LAST_7_DAYS_VS_PREV<\/li><li>LAST_30_DAYS_VS_PREV<\/li><li>LAST_90_DAYS_VS_PREV<\/li><li>LAST_&lt;NUM&gt;_DAYS_VS_PREV &#8211; In this, add the number of days you wish to compare in the place of &lt;NUM&gt;. So, if it is 60 days that you wish to compare with the past 60 days, the variable will be written as LAST_<strong>60<\/strong>_DAYS_VS_PREV<\/li><\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Here are the variables that you can change to customize it to your requirement:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>DATE_RANGE<\/strong> &#8211; By default this is set to&nbsp;LAST_7_DAYS_VS_PREV, but you can choose other predefined date ranges such as &#8220;LAST_90_DAYS_VS_PREV&#8221;, &#8220;LAST_30_DAYS_VS_PREV&#8221;, or define the  range by adding the value in &lt;NUM&gt; in &#8220;LAST_&lt;<strong>NUM<\/strong>&gt;_DAYS_VS_PREV&#8221;<\/li><li><strong>USE_CUSTOM_DATE_RANGE<\/strong> &#8211; If you want to use a custom range then turn this flag to &#8220;true&#8221; and then specify the START_DATE and END_DATE for the two date ranges that you wish to compare. The date should be written in &lt;yyyy-mm-dd&gt; format<\/li><li><strong>MIN_IMPRESSIONS<\/strong> &#8211; This will exclude search terms having less than the minimum impressions. By default the value is set to 50.<\/li><li><strong>EMAIL_RECIPIENT<\/strong> &#8211; Here insert the email id where you wish to receive notification about the generated report<\/li><li><strong>IS_MCC_ACCOUNT<\/strong>&nbsp;: This flag is to indicate whether you will be running this script at MCC-level. By default, it is set to false. Change it to \u201ctrue\u201d if you want to use for all the linked accounts in your MCC account. The results for each account will be stored in two separate sheets \u2013 one with raw data and one has the summary. Be careful, if you have many many accounts.<\/li><li><strong>FILTER_ACCOUNTS_BY_IDS<\/strong> &#8211; If your MCC account has tons of linked accounts, you may not wish to run this script for all account IDs then  turn this flag to &#8220;true&#8221; and specify the variable in ACCOUNT_IDS_TO_SELECT. Only the account IDs mentioned here will be analyzed.<\/li><li><strong>FILTER_ACCOUNTS_BY_LABEL<\/strong> &#8211; If your MCC account has tons of linked accounts, you may not want to run this script for all the accounts. In that case, turn this flag to \u201ctrue\u201d and then specify the label with ACCOUNT_LABEL_TO_SELECT variable. Only the accounts with the specified label will be analyzed to generate this report.<\/li><li><strong>REPORTS_FOLDER_PATH<\/strong> &#8211; This is the path to the folder in Google Drive where all the reports are to be created. By default the name is set to &#8216;Search Term Trend Reports&#8217;<\/li><\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Once again, <a rel=\"noreferrer noopener\" href=\"https:\/\/www.karooya.com\/resources\/aw-script\/search-term-trends.js\" target=\"_blank\">click here to get the script<\/a><\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Related Links:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a rel=\"noreferrer noopener\" href=\"https:\/\/www.karooya.com\/blog\/category\/karooya-adwords-script\/\" target=\"_blank\">Google Ads Scripts By Karooya<\/a><\/li><\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We have recently created a handy Google Ads Script that compares the Search Terms Trends for the time period chosen by you.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","footnotes":""},"categories":[3,14],"tags":[],"class_list":["post-12369","post","type-post","status-publish","format-standard","hentry","category-googl-search-tips","category-karooya-adwords-script"],"featured_image_src":null,"author_info":{"display_name":"Kirti","author_link":"https:\/\/www.karooya.com\/blog\/author\/kirti\/"},"_links":{"self":[{"href":"https:\/\/www.karooya.com\/blog\/wp-json\/wp\/v2\/posts\/12369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.karooya.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.karooya.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.karooya.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.karooya.com\/blog\/wp-json\/wp\/v2\/comments?post=12369"}],"version-history":[{"count":38,"href":"https:\/\/www.karooya.com\/blog\/wp-json\/wp\/v2\/posts\/12369\/revisions"}],"predecessor-version":[{"id":13476,"href":"https:\/\/www.karooya.com\/blog\/wp-json\/wp\/v2\/posts\/12369\/revisions\/13476"}],"wp:attachment":[{"href":"https:\/\/www.karooya.com\/blog\/wp-json\/wp\/v2\/media?parent=12369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.karooya.com\/blog\/wp-json\/wp\/v2\/categories?post=12369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.karooya.com\/blog\/wp-json\/wp\/v2\/tags?post=12369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}