Finding Cost Per Click with API Reporting

43 views
Skip to first unread message

sz...@mymail.mines.edu

unread,
Jun 14, 2018, 3:38:39 PM6/14/18
to AdWords API and Google Ads API Forum
Hello, 

While looking through the reports at https://developers.google.com/adwords/api/docs/appendix/reports/all-reports, I noticed that there was no usable metric for Cost Per Click. I am setting up an Ad Performance Report and what wondering is there is any way to get this statistic. 

Thanks

Dannison Yao (AdWords API Team)

unread,
Jun 15, 2018, 1:13:01 AM6/15/18
to AdWords API and Google Ads API Forum
Hi Szusi,

Could you confirm if you are pertaining to Cost Per Click Bid? If yes, the field CpcBid should be the metric used. However, this is not available in the AD_PERFORMANCE_REPORT.

Other Cost Per Click metric related that can be used in the AD_PERFORMANCE_REPORT are the AverageCpc and the Cost metric. Both uses Cost Per Click computation for reports.

Let me know if you have further clarifications.

Regards,
Dannison
AdWords API Team

sz...@mymail.mines.edu

unread,
Jun 15, 2018, 12:53:05 PM6/15/18
to AdWords API and Google Ads API Forum
Thanks for the reply! If I wanted to filter my report to only show ads that were above a certain AverageCPC, how would I go about doing that?

Dannison Yao (AdWords API Team)

unread,
Jun 17, 2018, 11:01:34 PM6/17/18
to AdWords API and Google Ads API Forum
Hi Szusi,

In order to achieve this, you have to put a 'WHERE' condition in your AWQL statement to specify the filter for the value of AverageCpc. You may check this guide for an example of AWQL statements.

Hope this helps.

sz...@mymail.mines.edu

unread,
Jun 18, 2018, 12:39:51 PM6/18/18
to AdWords API and Google Ads API Forum
I am currently using the example DownloadCriteriaReportWithSelector as a base, can I use AWQL in this example or would I have to use the DownloadReportWithAWQL version?

sz...@mymail.mines.edu

unread,
Jun 18, 2018, 12:41:38 PM6/18/18
to AdWords API and Google Ads API Forum
To be more specific, I am trying to use a predicate, using the following code: new Predicate('AverageCpc', PredicateOperator::GREATER_THAN_EQUALS, ['xxxxx']). 

Dannison Yao (AdWords API Team)

unread,
Jun 19, 2018, 3:26:24 AM6/19/18
to AdWords API and Google Ads API Forum
Hi Szusi,

You may still use the selector method if this is what you wish to use, but the syntax would be a bit different. You could use the sample code you have provided. However, you have to associate this predicate to your selector. 

Could you confirm if you are encountering an error with the sample code you have provided? If yes, could you provide your code for downloading the report and the complete SOAP request and response logs generated via Reply privately to author?
Reply all
Reply to author
Forward
0 new messages