RE: repeatedly getting oauth2 error using google-ads java lib

2021-03-15 Thread Google Ads API Forum Advisor Prod
Hello, Thanks for reaching out. Can you please confirm if your OAuth credentials and refresh token are properly set in your ads.properties file? Can you also please provide us with the customer ID? Please reply privately from here as your responses may contain sensitive information. Thanks, Ma

repeatedly getting oauth2 error using google-ads java lib

2021-03-13 Thread Shubham Srivastava
Hi team, I'm trying to use google-ads java library with the sample GetCampaigns code. I'm repeatedly getting below error: Status: Status{code=UNAVAILABLE, description=Credentials failed to obtain metadata, cause=com.google.api.client.http.HttpResponseException: 400 Bad Request POST https://oaut

RE: Adwords API OAuth2 : "error": "invalid_grant", "error_description": "Bad Request"

2019-01-29 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
Hello, The "invalid_grant" error usually indicates that the access or refresh token being passed in your request is incorrect or invalid. Your curl request seems fine. If your curl request working, then the credentials are good and you can use the same credentials in the API call. In case, you a

Adwords API OAuth2 : "error": "invalid_grant", "error_description": "Bad Request"

2019-01-29 Thread service . info . mcc
Hello, With the update of the Adwords API, I wanted to test my code with an "old" test account with an Adwords test campaign. But I ended up with the error: { "error": "invalid_grant", "error_description": "Bad Request" } So I recreated a new Oauth2 Credential of type "Other" on the develope

Re: Server to Server OAuth2 Error - NOT_ADS_USER with python client library

2017-09-19 Thread Jim 4Cite
Thank you for getting back to me, I ended up being able to authenticate with the installed application flow, I didn't have G Suite Domain for the server to server flow. On Monday, September 18, 2017 at 5:21:25 PM UTC-4, Bharani Cherukuri (AdWords API Team) wrote: > > Hello, > > The NOT_ADS_USER

Re: Server to Server OAuth2 Error - NOT_ADS_USER with python client library

2017-09-18 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
Hello, The NOT_ADS_USER error is noticed when the API call is made by a user *not* associated with an AdWords account. Could you please confirm if these prerequisites

Server to Server OAuth2 Error - NOT_ADS_USER with python client library

2017-09-18 Thread Jim 4Cite
I am very new to the AdWords API and have done a lot of research and testing trying to authenticate and test the API. I believe I have followed the authentication flow correctly, but since I am consistently getting the same error I wanted to reach out to an AdWords API Team Member and see if th

Re: OAuth2 Error

2017-02-13 Thread 'Joyce Lava' via AdWords API Forum
Hello, If you don't require call back URLs, then you should be able to use the installed app flow (recommended). If so, let's try to focus on making it work with the installed app flow (app type = "Other"). Please make sure that you perform these steps

Re: OAuth2 Error

2017-02-12 Thread Minas Gratas
@Joyce, Thank you for your response! Yes, I am using a Web App flow. First, I generated OAuth Credentials as "Other" type and used the sample code from GitHub on my localhost. Worked fine! I

Re: OAuth2 Error

2017-02-12 Thread 'Joyce Lava' via AdWords API Forum
Hello, If you are doing the web app flow, you should follow the steps for the web app flow which includes entering the JavaScript origins, redirect URIs or both. You can use the local m

OAuth2 Error

2017-02-12 Thread Minas Gratas
Hello there, My application works perfectly on my localhost (http://localhost:/app). When I deploy the app, on OAuth step I get an error. 400. That’s an error. > Error: redirect_uri_mismatch I am using PHP Lib. So Refresh token is fetched by the library. My OAuth 2.0 client ID is "Other"