Your OAuth2 Credentials are incorrect. Please see the GetRefreshToken.php example. { "error": "unsupported_grant_type", "error_description": "Invalid grant_type: " }

684 views
Skip to first unread message

deepak khetarpal

unread,
Apr 14, 2018, 3:17:26 PM4/14/18
to AdWords API Forum
Hello there,

I am a newbie here and trying to integrate google adword api in PHP from the official github. We have installed this library using composer on our development server and have followed the tutorial to create a new project using google developer console, set up client id, client secret by selecting the application/project type as other and adding the scope and everything by generating the Authorization Code. Access Token and developer token in my adword account plus I have my clientCustomerId and everything I may need to be used.

I have added all the above information in my auth.ini file and I can see that this information is accessible in GetAccessToken.php

The system generates a url which I click always creates a new request token which means that the client id and other combination is correct. However, I am still not able to move forward as I am getting following errors, when I run http://adwords.notewaredigital.com/vendor/googleads/googleads-php-lib/examples/AdWords/Auth/GetRefreshToken.php 

Your OAuth2 Credentials are incorrect. Please see the GetRefreshToken.php example. { "error": "unsupported_grant_type", "error_description": "Invalid grant_type: " }

I would really appreciate if someone can help me to investigate this issue.

If needed, I can share further details with you.


Here is the sample request:


Any suggestions are welcomed.

Thank you
Reply all
Reply to author
Forward
0 new messages