Inconsistency between AdWordsApp.report and getStats() ??

41 views
Skip to first unread message

guy....@brainlabsdigital.com

unread,
Jul 31, 2015, 5:22:06 AM7/31/15
to AdWords Scripts Forum
Hi,

function main() {
  var account = AdWordsApp.currentAccount();
  var stats = account.getStatsFor('LAST_7_DAYS');
  Logger.log(stats.getClicks());
  Logger.log(stats.getCost());
  Logger.log(stats.getImpressions());
  Logger.log(stats.getConvertedClicks());
  
  var report = AdWordsApp.report(
  'SELECT Clicks, Cost, Impressions, ConvertedClicks FROM ACCOUNT_PERFORMANCE_REPORT DURING LAST_7_DAYS');
  
  var rows = report.rows();
  var row = rows.next();
  Logger.log(row['Clicks']);
  Logger.log(row['Cost']);
  Logger.log(row['Impressions']);
  Logger.log(row['ConvertedClicks']);
}

Logs:

8196.0
2884.83
639890.0
NaN
8196
2,884.83
639890
91

Why does converted clicks have different values (NaN and 91) but the others have the same? I can see the types aren't necessarily equal e.g. 2884.83 versus 2,884.83 but NaN versus 91?

Many thanks

Tyler Sidell (AdWords Scripts Team)

unread,
Jul 31, 2015, 11:03:42 AM7/31/15
to AdWords Scripts Forum
Hi,

We are currently aware of an issue with getConvertedClicks(). We are looking into it right now and will update this thread when it has been resolved.

Thank you for your patience,
Tyler Sidell
AdWords Scripts Team

guy....@brainlabsdigital.com

unread,
Aug 11, 2015, 4:39:00 AM8/11/15
to AdWords Scripts Forum
Hi,

Would it be possible to get an idea of how long this will take to resolve? I have some scripts that use getConvertedClicks() so it may be worth rewriting those if the expected resolution isn't expected to be soon

Many thanks

Tyler Sidell (AdWords Scripts Team)

unread,
Aug 11, 2015, 1:49:00 PM8/11/15
to AdWords Scripts Forum
Hi,

This issue should be resolved.  Can you run your script again and please let us know if you are still experiencing this issue.

Thanks,
Tyler Sidell
AdWords Scripts Team

Reply all
Reply to author
Forward
0 new messages