How to find out how much traffic goes for hidden requests in Google Ads [script]

How to find out how much traffic goes for hidden requests in Google Ads [script]


In early September, Google cut its search terms report. It used to be a source of live semantics and negative phrases. And now ... Now what? Do you know how much traffic goes for undefined requests?



«» «» . // , - .



« » . .



: Google Ads



Google Ads :



How to find out how much traffic goes for hidden requests in Google Ads [script]


Google , , . SearchEngineLand Google :



« » — , .



. « » .



, . . . :



  • , , . : , . ( ). .
  • -. , , -. / , , .


How to find out how much traffic goes for hidden requests in Google Ads [script]


, Google . , , , . .





Frederick Vallaeys SearchEngineLand. , , .



: ( Ad Network Type = Search):





Google .





, ( — ).



:



  1. var EMAILS email — .
  2. var PRIMARY_METRIC , . Cost (), Clicks () Impressions ().
  3. var LAST_N_DAYS . — 30 . 60 .


. , . . — , — .



How to find out how much traffic goes for hidden requests in Google Ads [script]


:



/***************************************************
* Undefined Search Terms Report
* @version 1.1
* @author: Naman Jindal (Optmyzr)
****************************************************/

var LAST_N_DAYS = 30; // Number of previous days to include in report
var EMAILS = ['example@example.com']; // Array of Emails to be notified and given access to the results in a Google Sheet
var PRIMARY_METRIC = 'Cost'; // E.g. Impressions, Cost, Clicks

function main() {
  var map = {};
  var DATE_RANGE = getAdWordsFormattedDate(LAST_N_DAYS, 'yyyyMMdd') + ',' + getAdWordsFormattedDate(1, 'yyyyMMdd');
  var query = [
    'SELECT Date, Impressions, Cost, Clicks FROM ACCOUNT_PERFORMANCE_REPORT',
    'WHERE AdNetworkType1 = SEARCH', 'DURING', DATE_RANGE
  ].join(' ');
  
  var rows = AdsApp.report(query).rows();
  while(rows.hasNext()) {
    var row = rows.next();
    map[row.Date] = {
      'ACTUAL': 0,
      'QUERIES': 0
    };
    map[row.Date].ACTUAL = parseInt(row[PRIMARY_METRIC], 10);
  }
  
  var query = [
    'SELECT Date, Query, Impressions, Cost, Clicks FROM SEARCH_QUERY_PERFORMANCE_REPORT',
    'WHERE AdNetworkType1 = SEARCH',
    'DURING', DATE_RANGE
  ].join(' ');
  
  var rows = AdsApp.report(query).rows();
  while(rows.hasNext()) {
    var row = rows.next();
    map[row.Date].QUERIES += parseInt(row[PRIMARY_METRIC], 10);
  }
  
  var output = [];
  for(var date in map) {
    output.push([date, map[date].ACTUAL, map[date].QUERIES, (map[date].ACTUAL - map[date].QUERIES) / map[date].ACTUAL]);
  }
  
  if(!output.length) {
    Logger.log('No data in the account'); 
  }
  
  var TEMPLATE_URL = 'https://docs.google.com/spreadsheets/d/1G1-zPqm0kqQjZSPEwS8cfndYVzkswbyl80SiLlqiPF8/edit#gid=0';
  var template = SpreadsheetApp.openByUrl(TEMPLATE_URL);
  var ss = template.copy(AdsApp.currentAccount().getName() + ' - Undefined Search Terms Report by ' + PRIMARY_METRIC);
  ss.addEditors(EMAILS);
  
  var tab = ss.getSheets()[0];
  tab.getRange(2,1,tab.getLastRow(),tab.getLastColumn()).clearContent();
  tab.getRange(2,1,output.length,output[0].length).setValues(output).sort([{'column': 1, 'ascending': true}]); 
  
  var msg = 'Hi,\nPlease find below the undefined search terms report for your Google Ads account:\n'+ss.getUrl();
  MailApp.sendEmail(EMAILS.join(','), AdsApp.currentAccount().getName() + ' - Undefined Search Terms Report by ' + PRIMARY_METRIC, msg); 
  Logger.log("Your report is ready at " + ss.getUrl());
}


function round_(num,n) {    
  return +(Math.round(num + "e+"+n)  + "e-"+n);
}

function getAdWordsFormattedDate(d, format){
  var date = new Date();
  date.setDate(date.getDate() - d);
  return Utilities.formatDate(date,AdsApp.currentAccount().getTimeZone(),format);
}


: 50-60%



60 . , . .



1. - (B2B)



— 100 . «» « ».



, :



How to find out how much traffic goes for hidden requests in Google Ads [script]


:



How to find out how much traffic goes for hidden requests in Google Ads [script]


1 0 55%. . , .



, . , « 1», « 187» . . Google , .



How to find out how much traffic goes for hidden requests in Google Ads [script]


2. -



— 150 .



. . 31.08 ( 21%) 1.09 ( 65,7%).



How to find out how much traffic goes for hidden requests in Google Ads [script]


3. -



— 200-250 . , , ( ).



«» — ( 40%).



How to find out how much traffic goes for hidden requests in Google Ads [script]


— . , .



- Google



, . — , . , , - .



:



  1. , . , SEO — 3 .
  2. - . — -. - Click.ru.
  3. ( — ). — , . , Click.ru ( ).




  • Google Ads — . . , 20%. 50-60% .
  • , . .
  • , - . , . . ( ) -.


, , . , .




All Articles