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. The same error occurs, when I run http://adwords.notewaredigital.com/vendor/googleads/googleads-php-lib/examples/AdWords/v201705/BasicOperations/GetCampaigns.php Here is the sample request: https://adwords.google.com/api/adwords/cm/v201705/CampaignService?wsdl Any suggestions are welcomed. Thank you -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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 "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. 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/efcda8a7-b7d1-46a4-be78-59ced22e3558%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.