Billing Summary - getting remaining credit using SOAP request

104 views
Skip to first unread message

Inna Keegan

unread,
Jun 29, 2020, 7:53:06 AM6/29/20
to AdWords API and Google Ads API Forum
Hello! 

Could you please help me to find the correct namespace, method, and fields to get Billing Summary information from a regular client account by API SOAP request? I need to get the user's remaining credit.

Google Ads API Forum Advisor Prod

unread,
Jun 29, 2020, 3:30:03 PM6/29/20
to in...@keegan.ru, adwor...@googlegroups.com
Hi Inna,

Thank you for reaching out. It is not currently possible to directly retrieve the remaining credit balance. A feature request regarding your concern has already been created internally within our team. Please keep an eye on our blog for more details related to this. As a workaround, you can compute the remaining balance by subtracting the total Cost of the Account Performance Report from your known budget. Let us know if you need additional assistance.

Regards,
Danica, Google Ads API Team

 

ref:_00D1U1174p._5004Q21A9W0:ref

Inna Keegan

unread,
Jul 3, 2020, 5:13:40 AM7/3/20
to AdWords API and Google Ads API Forum
Okay, so I have an account with 0.00 remaining credit on it. I see zero in Google Ads account.

What I've got from API: 
<ns2:spendingLimit>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>5585214040000</microAmount>
</ns2:spendingLimit>
<ns2:totalAdjustments>
<ComparableValue.Type>Money</ComparableValue.Type>
<microAmount>8300280000</microAmount>
</ns2:totalAdjustments>
<ns2:startDateTime>20160202 121240 Europe/Moscow</ns2:startDateTime>
<ns2:endDateTime>20371231 105959 Europe/Moscow</ns2:endDateTime>

And what I've got also from API:
"ACCOUNT_PERFORMANCE_REPORT (Feb 2, 2016-Jul 3, 2020)"
Cost
5594879239565
Total


So now I have three numbers:
spendingLimit = 5585214040000
totalAdjustments = 8300280000
Cost = 5594879239565

And I can't get more, cause I see only one BudgetOrder in that account for all time, only those numbers. 

Please, tell me, how to calculate the remaining credit now to get 0.00 I see in Google Ads account?

понедельник, 29 июня 2020 г. в 22:30:03 UTC+3, adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
Jul 6, 2020, 12:17:34 PM7/6/20
to in...@keegan.ru, adwor...@googlegroups.com
Hi Inna,

The known budget is the amount of the budget in the local currency for the account represented by the field "amount" in BudgetService. Please try subtracting the cost value from the amount value to get your remaining credit.
Message has been deleted

Inna Keegan

unread,
Jul 7, 2020, 3:30:49 AM7/7/20
to AdWords API and Google Ads API Forum
Danica, 

BudgetService has nothing to do with the billing summary of the account.  It's an entity you may associate with a Campaign to limit daily spend of that campaign only. 

понедельник, 6 июля 2020 г. в 19:17:34 UTC+3, adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
Jul 7, 2020, 4:10:49 PM7/7/20
to in...@keegan.ru, adwor...@googlegroups.com
Hi Inna,

You will have to compute the remaining balance by subtracting the total Cost of the Account Performance Report from your known budget. Since you cannot pull the known budget from the API, this is not possible at the moment and you will have to know your account budget before making the calculation. A feature request has been put in place already, so please keep an eye out on our blog for updates.
Reply all
Reply to author
Forward
0 new messages