Hi,
Thank you for reaching out. As for Google Ads API, the OAuth2 Playground is
only used to generate tokens
<https://developers.google.com/google-ads/api/docs/oauth/playground#generate_tokens>.
If you wish to get all the customers that are accessible to the user
authenticating the call, it can be done via the API by using
ListAccessibleCustomers() method from CustomerService
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.services#customerservice>.
You may refer to this sample code
<https://github.com/googleads/google-ads-java/blob/master/google-ads-examples/src/main/java/com/google/ads/googleads/examples/accountmanagement/ListAccessibleCustomers.java>
in
github written in java.
If I misunderstood your concern, could you provide a screenshot of the
error message when you encountered it?
Regards,
Dave Paurillo
Google Ads API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
https://ads-developers.googleblog.com/search/label/google_ads_api
https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
On 04/10/19 10:00:48 [email protected] wrote:
I am trying to access customerService.listAccessibleCustomers through
google ads api from one of my accounts.
I am testing the scenario currently through oauth playground, and using my
own client id and client secret for the same.
Along with this i am giving the scope as:
https://www.googleapis.com/auth/adwords
https://www.googleapis.com/auth/userinfo.profile
and trying to access the url:
https://googleads.googleapis.com/v1/customers:listAccessibleCustomers
but it is continuously giving me unauthenticated, missing oauth credential
error.
Am i missing any scope which needs to be added for this to work ??
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/c36e45f1-92e0-4000-819e-eccc0d421d63%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/c36e45f1-92e0-4000-819e-eccc0d421d63%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/ijlio0sve80000008mpqjq001h4o5aw6cmj6c1p6oo30c1g68r30e9k%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.