Hi Ray I have now managed to work out what the issue was. At some point I started editing the Auth file in examples rather than in lib, whoops. How embarrassing!
Thanks for your help, but I've now retrieved the refresh token and will hopefully get the rest working! On Friday, 28 February 2014 22:50:34 UTC, 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.