Hi Mithila, I'll close this post since it looks like a duplicate of the following post:
https://groups.google.com/d/msg/adwords-api/Ub3CbU2I-5Y/jnR93KvfEN8J Please see the other post for my recent reply. Thanks, Josh, AdWords API Team On Saturday, November 30, 2013 5:21:04 AM UTC-5, [email protected] wrote: > > Hi, > > We have been trying to execute the GetKeywordIdeas.php demo from the > Adwords API php library. We get the following error: > > An error has occurred: { "error" : "invalid_client" } > > We changed the following in auth.ini > > developerToken = "TEST MCC ACCOUNT DEVELOPER TOKEN" > userAgent = "USER DEFINED STRING" > client_id = "CLIENT ID FROM GOOGLE CLOUD CONSOLE" > client_secret = "CLIENT SECRET FROM GOOGLE CLOUD CONSOLE" > refresh_token = "" > > Since we didn't have the refresh token, we ran GetRefreshToken.php from > the Adwords API php library. We get the following error: > > Log in to your AdWords account and open the following URL: > https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=CLIENTID > FROM GOOGLE CLOUD CONSOLE&redirect_uri=USER DEFINED URI FROM GOOGLE > CLOUD CONSOLE > GetRefreshToken.php&scope=https%3A%2F%2Fadwords.google.com%2Fapi%2Fadwords%2F&access_type=offline > > After approving the token enter the authorization code here: Your OAuth2 > Credentials are incorrect. Please see the GetRefreshToken.php example. { > "error" : "invalid_request" } > > After logging into the AdWords account and accessing the above mentioned > URL, we were asked to authenticate. After successful authentication we were > redirected back to USER DEFINED URI FROM GOOGLE CLOUD CONSOLE > GetRefreshToken.php with the same error. > > We are not sure how to proceed. Please can someone help us figure out what > we are doing wrong. > > Kind regards, > > Mithila > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://googleadsdeveloper.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. For more options, visit https://groups.google.com/groups/opt_out.
