Cant find existing Billing Setup to use when creating an Account Budget

106 views
Skip to first unread message

fe...@dashbo.io

unread,
Jan 11, 2023, 9:29:28 AM1/11/23
to Google Ads API and AdWords API Forum
Hi, 
I am writing a python script that creates an account and its account budget.

The account budget will use a consolidated billing setup that already exists and it is used by many others account of the same manager account.

To create the account I am using this example. In this code I need to know the billing_setup_id. 

So, to get this billing setup id, i am running this request:

[2023-01-11 11:27:21,752 - DEBUG] Request
-------
Method: /google.ads.googleads.v12.services.GoogleAdsService/SearchStream
Host: googleads.googleapis.com
Headers: {
  "developer-token": "REDACTED",
  "login-customer-id": "1819813713",
  "x-goog-api-client": "gl-python/3.7.5 grpc/1.51.1 gax/2.10.1 gccl/19.0.0 pb/4.21.10",
  "x-goog-request-params": "customer_id=1512791080"
}
Request: customer_id: "1512791080"
query: "\n            SELECT\n              billing_setup.id,\n              billing_setup.status,\n              billing_setup.payments_account,\n              billing_setup.payments_account_info.payments_account_id,\n              billing_setup.payments_account_info.payments_account_name,\n              billing_setup.payments_account_info.payments_profile_id,\n              billing_setup.payments_account_info.payments_profile_name,\n              billing_setup.payments_account_info.secondary_payments_profile_id\n            FROM billing_setup"


And I am receiving an empty response:  

Response
-------
Headers: {
  "request-id": "J9uBQ5jl3xDpGoNrYGda0w"
}

My user has access to the payment manager account. 

Can you help me?  

Thanks!!

Google Ads API Forum Advisor

unread,
Jan 11, 2023, 2:42:16 PM1/11/23
to fe...@dashbo.io, adwor...@googlegroups.com
Hi,

Thank you for reaching out to our API suppor team.

Billing setups should be created first in the account before you can retrieve the ones already existing in the account, using the billing_setup report.

That said, are you instead looking for the payments account you can use when creating a billing setup?

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2hxDPh:ref

Marius S

unread,
Mar 15, 2024, 6:25:52 PM3/15/24
to Google Ads API and AdWords API Forum
I'm experiencing the same issue. In the UI you can select a billing setup, but via the API no billing setups are returned except for CANCELLED ones. And apparently it's not possible to query payments_account directly, so I can't create a billing setup with an existing payments_account.

Marius S

unread,
Mar 15, 2024, 6:25:52 PM3/15/24
to Google Ads API and AdWords API Forum
Sorry, I missed the fact that you can only fetch for non-managers. A bit confusing when you normally list all setups using a manager account in the UI.

Google Ads API Forum Advisor

unread,
Mar 15, 2024, 7:07:01 PM3/15/24
to soutier.mo...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

After reviewing your query, I understand that you are having concerns related to billing setup through Google Ads API. I would recommend you refer to this Billing Setup guide for more information related to your concern.

Please be informed that each BillingSetup identifies a Payments account that gets invoiced for costs incurred by its account budgets. This Payments account is associated with a Payments profile that is ultimately responsible for charges. You can create a billing setup using an existing payment account. I would suggest you refer to this using an existing payment account guide for more information.

I hope this helps. Let us know if you have any other questions.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02hxDPh:ref" (ADR-00163239)

Thanks,
 
Google Logo Google Ads API Team


Google Ads API Forum Advisor

unread,
Mar 15, 2024, 7:09:38 PM3/15/24
to soutier.mo...@gmail.com, adwor...@googlegroups.com
Hi, 

Thank you for reaching out to the Google Ads API support team. 

I see that you have already raised this concern on another thread with the subject "Cant find existing Billing Setup to use when creating an Account Budget" and we have already responded there for this issue. To avoid multiple threads on the same issue, please take a look at that thread and continue the discussion on the same for further updates on the issue.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02s00P1:ref" (ADR-00227500)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages