About redirect url creation

150 views
Skip to first unread message

srav...@newtel.in

unread,
Apr 3, 2014, 7:23:49 AM4/3/14
to adwor...@googlegroups.com
hi,
please help me out,v are thinking to develop adwords api.already we have credentials and created project. now we r thinking to develop api  for this project for that we need client id and client secrete id and redirect url..when i logged into the account there is no redirect url so i started creating new client id there its asking me to mention redirect url so i gave my site url..went i tried to give http://www.cardekho.com in Redirect URIsl its giving http://www.cardekho.com/oauth2callback and took this client id,secret id and pasted into ads.properties and in AdvancedCreateCredentialFromScratch we pasted all required fields and tried to execute program from  console screen  copied  link and pasted in browser then it showed two options one is cancle and accept, clicked accept nxt it showed me following error
  • Requested page couldn't be found on CarDekho.com
  • we havnt configured www.cardekho.com/oauth2callback url in our site,is it mandatory to configure oauth2callback in our project or will automatically taken by adword api and one more thing is it mandatory to configure consent screen. 


Thanks in advance

Josh Radcliff (AdWords API Team)

unread,
Apr 3, 2014, 11:26:49 AM4/3/14
to adwor...@googlegroups.com
Hi,

Please read our OAuth 2.0 Authentication guide, particularly item #6 in the Getting started section.  This describes the use cases for the installed application and web application flows.

If after reading the documentation you decide that you will use the web application flow, then yes, you will need to point the redirect URL to a valid URL on your site that will exchange the authorization code for an access token as documented here.  If you request offline access then you will only need to do this once per account, after which you can use the refresh token to get new access tokens without further intervention by the user.

Note that the easiest setup by far is to organize all of your accounts under a single top level MCC as described here.

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages