Hi Shwetha,

We are building a web app, therefore the credentials are for a web app. I 
always create the credentials using the link you provided. In order to try 
the examples, I created installed type credentials as well in order to test 
the example files, but I could not make them work either, got the same 
error. 

I created different clientID & secret couples but none of them worked. In 
the error stack, the error seems to be related to this call:

at SimpleOAuth2Handler
->MakeRequest('https://accounts.google.com/o/oauth2/token', array('code' => 
'my_auth_code_1234567', 'client_id' => 
'my_client_id.apps.googleusercontent.com', 'client_secret' => 
'my_client_secret', 'redirect_uri' => 
'http://mydomain.com/auth/google/callback', 'grant_type' => 
'authorization_code'))

I don't know the working version of this call, therefore I don't know what 
is missing. I can try different things you advise.

Thank you very much for your help.

On Friday, December 9, 2016 at 9:36:27 PM UTC+3, Shwetha Vastrad (AdWords 
API Team) wrote:
>
> Hi Burak,
>
> Could you provide the steps you followed to create your OAuth2 credentials 
> and generate the refresh token? Could you also let me know if you are using 
> Installed application type credentials or web app type credentials? The 
> invalid_request error usually occurs if a required parameter is missing 
> from the OAuth2 request. 
>
> Could you also try creating a new set of credentials by following the 
> instructions provided here 
> <https://developers.google.com/adwords/api/docs/guides/authentication#generate_oauth2_credentials>
>  and 
> let me know if it works? 
>
> Thanks,
> Shwetha, AdWords API Team.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/da2505c7-80d3-4a5e-ae76-3149a3a959dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • PHP - Invalid ... Burak Karakan
    • Re: PHP -... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
      • Re: P... Burak Karakan
        • R... Burak Karakan
          • ... 'Nadine Sundquist (AdWords API Team)' via AdWords API Forum
            • ... Sabri Karagönen
            • ... Burak Karakan
            • ... Burak Karakan
              • ... 'Nadine Sundquist (AdWords API Team)' via AdWords API Forum

Reply via email to