Re: Get the names of the customer accounts using listAccessibleCustomers

2024-05-15 Thread Rathina Boopathi
Hi all,

I tried the query the API team gave. I got the following error and the 
response itself takes above 10secs. 
mg {
  errors: [],
  '@type': 'type.googleapis.com/google.rpc.BadRequest',
  field_violations: [
{
  description: 'Invalid value (query), Starting an object on a scalar 
field'
}
  ]
}

What is the status of getting the descriptive names in 
listAccessibleCustomers() call itself?

On Wednesday, November 22, 2023 at 9:14:21 PM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> The solution provided by ‘Olivier’ is correct. I would recommend you to 
> kindly execute the below query for retrieving the descriptive name from the 
> customer_client 
>  
> resource. 
>   
>
>
> SELECT customer_client.descriptive_name, customer_client.client_customer, 
> customer_client.level, customer_client.manager, 
> customer_client.currency_code, customer_client.time_zone, customer_client.id 
> FROM customer_client WHERE customer_client.level <= 1
>
>
> Please let us know if you run into any issues with this solution. 
>
> Kindly get back to us if you have any further questions related to the 
> Google Ads API. 
>   
> This message is in relation to case "ref:!00D1U01174p.!5004Q02ZM01g:ref"
>
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e30c541b-978b-425b-9162-054d6edef851n%40googlegroups.com.


How to get customer_id when user logs in with Oauth

2024-05-15 Thread Rathina Boopathi
Hi Google Ads API Team. 

We are building a web application for users to view leads generated form 
Google Ads. 
I have implemented OAuth login with scope including adwords. I get the 
authorization code from that login with I am getting access token and 
refresh token. 

Now if I need to get the list of accounts accessible by that logged in 
account, I need to set customer_id to customer instance. (As far as I 
know). 

>From where can I get that customer_id? 
 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/dd6f4988-bc05-4d95-9e75-13852c496f79n%40googlegroups.com.