Hi Ray When I execute the url provided by the script I get the following error on screen:
401 Error: disabled_client The OAuth client was disabled. Request Details scope=https://www.googleapis.com/auth/adwords response_type=code access_type=offline redirect_uri=urn:ietf:wg:oauth:2.0:oob client_id=[there is a new id generated here] If I paste my client id into the string and try again it gets me past the consent screen and generates the code, but then I get the following error on the command line: Your OAuth2 Credentials are incorrect. Please see the GetRefreshToken.php example. { "error" : "disabled_client", "error_description" : "The OAuth client was disabled." } I've checked and double checked the code string and my OAuth2 details in auth.ini so not sure whats wrong. Thanks On Wednesday, 16 July 2014 19:56:32 UTC+1, Ray Tsang (AdWords API Team) wrote: > > Sarah, > > Could I trouble you to send me the exact errors that you've received? The > authorization code is long (it sometimes doesn't fully display in the text > box) - please make sure the entire string is selected and pasted. > > Thanks, > > Ray > > On Wednesday, July 16, 2014 9:20:58 AM UTC-4, Sarah Gilmore wrote: >> >> Hi, I am having the same issue as Jake (above). I'm using the PHP client >> library to run the script on the command line, but when I paste the url, it >> says 'the oauth client is disabled'.( I can get it to go one step further >> by pasting in my client id into the url, as the url created by >> GetRefreshToken seems to use a different id, but after I enter the code >> provided into the command line I still get the same message.) >> >> I have the app set as installed and have set the name, url and logo in >> the console consent screen. >> >> I am using a test account and an unapproved developer token. The token >> was created about a year ago, could this be the issue? >> >> I am also wondering whether the test account is a valid test account but >> without connecting to the API its difficult to test this. >> >> Thanks! >> >> On Thursday, 24 April 2014 16:08:06 UTC+1, Ray Tsang (AdWords API Team) >> wrote: >>> >>> Sounds great. Glad it helped. >>> >>> Cheers, >>> >>> Ray >>> >>> On Thursday, April 24, 2014 9:11:49 AM UTC-4, piotr.d...@bonito.pl >>> wrote: >>>> >>>> Thanks, everything works well ! >>>> >>>> On Wednesday, April 23, 2014 5:53:44 PM UTC+2, Ray Tsang (AdWords API >>>> Team) wrote: >>>>> >>>>> Hi, >>>>> >>>>> It's most likely that you've created an OAuth 2.0 "Web application". >>>>> Please review our AdWords OAuth 2.0 authentication guide >>>>> <https://developers.google.com/adwords/api/docs/guides/authentication#create_a_client_identifier_and_client_secret> >>>>> . >>>>> In step 6, please select Installed application. >>>>> >>>>> Thanks, >>>>> >>>>> Ray >>>>> >>>>> On Wednesday, April 23, 2014 9:45:50 AM UTC-4, piotr.d...@bonito.pl >>>>> wrote: >>>>>> >>>>>> Now, I have other errro: >>>>>> >>>>>> *Error: redirect_uri_mismatch* >>>>>> >>>>>> The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob did not >>>>>> match a registered redirect URI >>>>>> So what am I doing wrong here? >>>>>> >>>>>> On Wednesday, April 23, 2014 2:35:36 PM UTC+2, piotr.d...@bonito.pl >>>>>> wrote: >>>>>>> >>>>>>> Hello, >>>>>>> I have the same problem :( >>>>>>> Also filled field required in Consent screen, I have http error 400 >>>>>>> and Error: disabled_client. >>>>>>> So what am I doing wrong here? >>>>>>> How enable OAuth client for me project ? >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> >>>>>>> >>>>>>> W dniu wtorek, 4 marca 2014 20:40:28 UTC+1 użytkownik Ray Tsang >>>>>>> (AdWords API Team) napisał: >>>>>>>> >>>>>>>> Jake, >>>>>>>> >>>>>>>> In the cloud console, could I trouble you to navigate to the >>>>>>>> Consent Screen configuration and enter an application name (and any of >>>>>>>> the >>>>>>>> other required fields). >>>>>>>> >>>>>>>> Please let me know if it works for you - and I can update relevant >>>>>>>> documentations. >>>>>>>> >>>>>>>> Thanks, >>>>>>>> >>>>>>>> On Friday, February 28, 2014 5:50:34 PM UTC-5, Jake Wilson wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> I am building a simple web app to connect to our Adwords MMC and >>>>>>>>> spit out some reports. >>>>>>>>> >>>>>>>>> In the Google API Console I created a new Client ID. I chose >>>>>>>>> Installed Application even though this is a web-based PHP tool I'm >>>>>>>>> making. >>>>>>>>> This page: >>>>>>>>> >>>>>>>>> >>>>>>>>> https://developers.google.com/adwords/api/docs/guides/authentication#access_and_refresh_token >>>>>>>>> >>>>>>>>> says to choose Installed Application if: >>>>>>>>> >>>>>>>>> - You are just getting started for the first time. >>>>>>>>> - You want to test our example code and get started quickly. >>>>>>>>> - You are managing all of your AdWords accounts using a single >>>>>>>>> top level MCC. >>>>>>>>> >>>>>>>>> All of which apply to us. Also, the auth.ini says: >>>>>>>>> >>>>>>>>> ; If you do not have a client ID or secret, please create one of >>>>>>>>> type >>>>>>>>> ; "installed application" in the Google API console: >>>>>>>>> ; https://cloud.google.com/console >>>>>>>>> >>>>>>>>> So anyways, I created an installed application client ID. I get >>>>>>>>> my Client ID and Client Secret. I add these to auth.ini along with >>>>>>>>> my >>>>>>>>> Adwords API Key (which is approved) and a unique userAgentID string >>>>>>>>> to >>>>>>>>> identify my application. >>>>>>>>> >>>>>>>>> At the command line I run the GetRefreshToken.php script, giving >>>>>>>>> me: >>>>>>>>> >>>>>>>>> Log in to your AdWords account and open the following URL: >>>>>>>>> >>>>>>>>> https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=5XXXXXXXXXXXXXXXXXXXXXXXXXXleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fadwords.google.com%2Fapi%2Fadwords%2F&access_type=offline >>>>>>>>> >>>>>>>>> After approving the token enter the authorization code here: >>>>>>>>> >>>>>>>>> I log into my Adwords account and then paste in the above URL. I >>>>>>>>> get this page: >>>>>>>>> >>>>>>>>> <http://imgur.com/vcilAXI.jpg> >>>>>>>>> >>>>>>>>> So what am I doing wrong here? >>>>>>>>> >>>>>>>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. For more options, visit https://groups.google.com/d/optout.