Hi Danial, Sent a private reply, hope you got it (I was slightly confused by the interface).
Thanks, Rocky On Monday, August 4, 2014 5:08:02 PM UTC+2, Danial Klimkin wrote: > > Hello Rocky, > > > Can you send me exact URLs produced in both cases, and exact server > responses? > > Please send that only to me *directly* ("reply to author" on the right). > > > -Danial, AdWords API Team. > > > On Monday, August 4, 2014 5:44:23 PM UTC+4, Rocky Jaiswal wrote: >> >> Hi Danial, >> >> Yes, so since the code is same locally and on server, the client lib is >> also sending the same request but I see different responses from Google >> locally and on server - >> >> sample code - >> >> adwords_client.authorize({oauth2_callback: "some_server_url"}) >> >> this returns back a redirect URL for localhost but a blank token hash on >> the prod servers. >> >> >> Thanks, >> Rocky >> >> On Monday, August 4, 2014 3:32:57 PM UTC+2, Danial Klimkin wrote: >>> >>> Hello Rocky, >>> >>> >>> The authorization URL is a known value and generally generated on the >>> client side (e.g. by our libraries). Is it the one you are missing? >>> >>> >>> -Danial, AdWords API Team. >>> >>> >>> On Monday, August 4, 2014 1:38:52 PM UTC+4, Rocky Jaiswal wrote: >>>> >>>> Thanks Danial. >>>> >>>> We have the setup for OAUTH as - >>>> Client ID for web application >>>> >>>> I have configured this on https://console.developers.google.com/ >>>> >>>> we have multiple URLs configured as Redirect URIs and JS origins for >>>> dev, testing and production. >>>> >>>> Now, lets say we want to add a new adwords account into our token >>>> server. We will first need to authorize it, and we should get a redirect >>>> URL from Google so that the user can confirm that. >>>> >>>> On production lets say https://abc.example.com I do not get a redirect >>>> URI back however if I do the same action on http://localhost:3000 it >>>> works. Both the URIs are configured on the developer console and the >>>> account has not given us any permissions already (so I should get a >>>> redirect url back not anything else). >>>> >>>> So I am lost at why this is happening. >>>> >>>> Thanks, >>>> Rocky >>>> >>>> On Monday, August 4, 2014 11:21:30 AM UTC+2, Danial Klimkin wrote: >>>>> >>>>> Hello Rocky, >>>>> >>>>> >>>>> Could you please describe the issue in more details? What are exact >>>>> steps for both prod and test setups? >>>>> >>>>> Do you use web application or offline OAuth2 client? >>>>> >>>>> >>>>> -Danial, AdWords API Team. >>>>> >>>>> >>>>> On Monday, August 4, 2014 1:04:37 PM UTC+4, Rocky Jaiswal wrote: >>>>>> >>>>>> Hi All, >>>>>> >>>>>> To minimize the hits on Adwords we create an OAuth2 API so one >>>>>> service is responsible for fetching / refreshing the tokens and all >>>>>> other >>>>>> apps get the tokens from this single app. Lately, we have been seeing >>>>>> this >>>>>> issue that when we first try and authorize a new account we do not get a >>>>>> redirect URL back (for the consent popup) on the production server, >>>>>> however >>>>>> when I do the same thing on localhost it works as expected. >>>>>> >>>>>> Is this something to do with OAUTH2 setup, I can confirm that both >>>>>> our URLs (localhost and production) are configured for OAUTH access so I >>>>>> cannot see why this is happening. >>>>>> >>>>>> Any help will be appreciated on this. >>>>>> >>>>>> >>>>>> Thanks, >>>>>> Rocky >>>>>> >>>>>> >>>>>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.