AdWords
4.9K members online now
4.9K members online now
Use AdWords conversion tracking and reporting to measure your results. Have a question about Google Analytics? Post it here, on the Google Analytics Community!
Guide Me
star_border
Reply

Search Impression Share through Script

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi all,

 

I want to fetch Search Impression share data through Adwords Scripts. How can it be possible? Is there any method through which I can fetch it?

 

I am able to get clicks, impressions, cost etc but I need Search Impression Share data.

Marked as Best Answer.
Solution
Accepted by MosheTLV (Top Contributor)
May 2016

Re: Search Impression Share through Script

Participant ✭ ✭ ✭
# 2
Participant ✭ ✭ ✭
Hi Rohit,

As far as I know there is no way to fetch IS numbers with scripts and last I heard there was no plan to add this (although that was awhile ago). I did have a quick look through Dev guide and IS is still not there.

Good Luck

Re: Search Impression Share through Script

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thanks for your quick reply.

Search Impression Share through Script

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

Try this:

https://gist.github.com/royharmon4/560ebaab757b1b3e20bf48e192119ee4

   
  function main() {
  var accountIterator = MccApp.accounts().get();
  var mccAccount = AdWordsApp.currentAccount();
  while (accountIterator.hasNext()) {
  var account = accountIterator.next();
  MccApp.select(account);
  var accountName = account.getName();
   
  Logger.log(accountName);
   
  var report = AdWordsApp.report(
  "SELECT CampaignName, SearchImpressionShare, SearchRankLostImpressionShare, SearchBudgetLostImpressionShare " +
  "FROM CAMPAIGN_PERFORMANCE_REPORT " +
  "WHERE AdvertisingChannelType IN [SEARCH] " +
  "DURING THIS_MONTH", {
  includeZeroImpressions: false
  });
  var rows = report.rows();
  while (rows.hasNext()) {
  var row = rows.next();
  var cName = row['CampaignName'];
  var iShare = row['SearchImpressionShare'];
  var iShareRank = row['SearchRankLostImpressionShare'];
  var iShareBudget = row['SearchBudgetLostImpressionShare'];
  }
  }
  }

Search Impression Share through Script

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

That was helpful for me.   Thanks Roy.  

Search Impression Share through Script

Follower ✭ ✭ ☆
# 6
Follower ✭ ✭ ☆

Hi,

 

You can retrieve the value as shown by Roy H with a simple AWQL request. You can test it through AWQL.me if not sure.

 

var report = AdWordsApp.report(
  "SELECT CampaignName, SearchImpressionShare, SearchRankLostImpressionShare, SearchBudgetLostImpressionShare " +
  "FROM CAMPAIGN_PERFORMANCE_REPORT " +
  "WHERE AdvertisingChannelType IN [SEARCH] " +
  "DURING THIS_MONTH", {
  includeZeroImpressions: false
  });

The adwords script reference can be completed by all the fields available through the Adwords API.