Hello. I am trying OAuth2 credentials and gnerate the access token using the library google-ads-doctor of PHP. But it is not getting generated and return the error below.
I have follow below steps as given in this page https://github.com/googleads/google-ads-doctor. 1. Update the file google_ads_php.ini with developer token, client customer id, client id, client secret and refresh token. Put the file in the root of 'google-ads-doctor' folder. 2. Run the below commands one by one. c:\google-ads-doctor\oauthdoctor\bin\windows\386>oauthdoctor -language php -oauthtype web -configpath c:\google-ads-doctor\google_ads_php.ini It is asking for Please enter a Google Ads account ID: 3. I have entered the client id from the google cloud console's OAuth Client credentials. 4. It generates the auth code and browser message was 'Auth code received'. 5. In the command line the below error was given. oauth2: cannot fetch token: 400 Bad Request Response: { "error": "redirect_uri_mismatch", "error_description": "Bad Request" } Please tell me what I am missing. How do I resolve it? The issue arises since a long time. Please help me to resolve the issue. Regards & Thanks, Amit -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/47321da8-7f85-4668-9ba0-6375fcc86c20%40googlegroups.com.
