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

2023-01-11 Thread fe...@dashbo.io
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: "\nSELECT\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!!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ab564473-89fc-4c13-9f79-f9bd439e8b75n%40googlegroups.com.


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

2024-03-15 Thread Marius S
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.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/747f51d3-061f-4fc8-867d-9575570e9f3fn%40googlegroups.com.


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

2024-03-15 Thread Marius S
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.

On Wednesday 11 January 2023 at 20:42:16 UTC+1 Google Ads API Forum Advisor 
wrote:

> 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,
>
> [image: Google Logo] 
> Peter Laurence 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2hxDPh:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/259ac2d9-0ed1-47ce-9bb9-6e710615dfc3n%40googlegroups.com.