Hi,

I am testing what will be a web app auth flow.

I have created an MCC account, and also have a google developer client ID 
and secret.  I go through the web app flow that I mimic via the Google 
Sandbox token process. From this process, I am able to get a refresh token. 
 I attempt to run a simply get campaigns script in PHP, and receive the 
following error:

Client error: `POST https://www.googleapis.com/oauth2/v4/token` resulted in 
a `401 Unauthorized` response:
{
 "error": "unauthorized_client",
 "error_description": "Unauthorized"
}

My client-id is not associated with a "service account"; it is a regular 
account which I use for other Google apis.  Basically, i am looking for a 
simply login flow to allow multiple, independent users to grant me access 
to their accounts. My questions are as follows:

1. Do I need to get a service account if I don't mind it Google asking the 
user to allow for me to have access to their account when getting a 
authorization code?
2. Can I simply go through "installed app" procedure as is recommended?

Please let me know if you need me to clarify any steps; thank you very much 
in advance.

Thanks,
Tim


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/412a13a2-28fa-47a0-88d6-577edd448f79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • "error"... Tim Johnson
    • Re: "e... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
      • Re: &qu... Tim Johnson
        • Re:... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum

Reply via email to