Google Adword API: How to get total spent amount for given account using CURL/SOAP

53 views
Skip to first unread message

Pankaj K

unread,
Jun 11, 2018, 5:03:08 PM6/11/18
to AdWords API and Google Ads API Forum

As I want how much amount have spent on that account for ads by using the google adword api

I need to integrate that code in PHP.

If any one has any idea, please share with me. I have already search a lot but not get the what I have expected.

My question is to get the total spent on given account by using the adword api.

Pankaj K

unread,
Jun 11, 2018, 5:03:12 PM6/11/18
to AdWords API and Google Ads API Forum

Dannison Yao (AdWords API Team)

unread,
Jun 12, 2018, 12:17:49 AM6/12/18
to AdWords API and Google Ads API Forum
Hi Panjak,

Ideally, you can generate an ACCOUNT_PERFORMANCE_REPORT. This generates statistical reports at the account level. You can use the Cost field to determine the total amount spent on your campaigns.

Let me know if you have further clarifications.

Regards,
Dannison
AdWords API Team

Dannison Yao (AdWords API Team)

unread,
Jun 12, 2018, 3:43:56 AM6/12/18
to AdWords API and Google Ads API Forum
Hi Pankaj,

You can refer to this guide to know more about API call structures. 

You may follow the below format for your reference:

curl 
--header "Authorization: Bearer INSERT_ACCESS_TOKEN_HERE
--header "clientCustomerId: INSERT_CLIENTCUSTOMERID_HERE
--header "developerToken: INSERT_DEVELOPER_TOKEN_HERE
--data "__rdquery=INSERT_AWQL_HERE"

You may use this guide as your reference for constructing your AWQL statement. Just do the necessary adjustment to cater it for ACCOUNT_PERFORMANCE_REPORT.
Reply all
Reply to author
Forward
0 new messages