Get account balance and all time cost for a campaign with php

26 views
Skip to first unread message

иван ганенко

unread,
Dec 10, 2018, 9:28:50 AM12/10/18
to AdWords API and Google Ads API Forum
Can someone share an example how to get of an account?
Also I'm in search of the code that will return all time cost for an ad campaign. 
I'm using PHP language on backend.
Thanks a lot!

Bharani Cherukuri (AdWords API Team)

unread,
Dec 10, 2018, 4:24:45 PM12/10/18
to AdWords API and Google Ads API Forum
Hello,

You may refer to all the report types listed here to pull the Cost metrics at different levels. At the campaign level, you may use the Campaign performance Report which will return the Cost metrics with one row per campaign. You can also take a look at the PHP Reporting code samples as a reference.

Let me know if you have any other questions. 

Regards,
Bharani, AdWords API Team
Reply all
Reply to author
Forward
0 new messages