Hi Kieran, 

Thanks for explaining. Since you are using the web application type to 
setup the OAuth, you will need to specify a valid redirect url while 
creating the client credentials in the Google developers console.  
<https://console.developers.google.com/apis/credentials>The same redirect 
url should be specified in your code snippet used to generate the tokens. 
The redirect url can be internally hosted applications as well. Please 
check this guide 
<https://developers.google.com/identity/protocols/OAuth2WebServer#creatingcred> 
for 
reference. Once you set your redirect url in the credentials page, you will 
need to ensure to use the same in the code. For instance, the CALLBACK_URL 
variable in Java code sample 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/auth/AdvancedCreateCredentialFromScratch.java#L70-L72>
 should 
be having the same url as specified in your credentials page. 

If you are already doing this, could you share a screenshot of your client 
credentials page with the redirect url visible (please be sure to redact 
the client id and client secret before sharing those) along with the code 
snippet that you are using to generate the OAuth tokens? Please use *reply 
privately to author* while sharing the sensitive information. 

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/da90f15e-8fd9-45cc-8823-12bf3326f918%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Jianbo zhu
    • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Kieran Hewitson
        • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
          • ... Kieran Hewitson
            • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to