Thanks Vincent for patiently reading my questions and answering . Thanks! Hari.
On Thursday, November 9, 2017 at 2:31:22 PM UTC+5:30, Vincent Racaza (AdWords API Team) wrote: > > Hi Hari, > > You are correct that the difference with your code is only those methods. > However, I am not sure on why you are setting the tokenUrlServer. For the > AdWords API itself, the needed fields in order to create an AdWordsSession > is your credential (client ID, client secret, refresh token, developer > token). These are the four required fields. > > For your two questions, please see answers below: > > 1)Is it mandatory to have client id , client secret and Refreshtoken to > generate access token to connect to adwords APIs or is there any other way > to do that. > > Yes, it is mandatory to have client ID, client secret and refresh token to > generate the access token. As I have said, the access token is > automatically generated in the background using the client library. Client > ID and client secret are needed to generate the refresh token, and the > refresh token is needed to generate the access token, so all these > properties are required. > > 2)If I have client Id, client sect and developer token, Then can i > connect to any account if i have refresh token for that account. Should > There be any link between (client id , client secret and developer token) > to the refresh token of that account. > > It is not the refresh token alone that is needed to access an AdWords > account. Every refresh token is associated to a client ID and secret, so > you cannot randomly match your client ID and secret with the refresh token > (e.g. from the other email address). > > To answer your question, if the refresh token is the* correct refresh > token associated to your client ID and secret*, then you can access any > AdWords account as long as the *email address (associated to the client > ID) is a user with valid permission* in those AdWords accounts. If you > will be using a refresh token that is not associated to your client ID, > then the API will generate an error. If you'll target an AdWords account > and the user is not existing on that account, it will also generate an > error. > > Thanks, > Vincent > AdWords API Team > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. 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/686b2203-eac1-46ba-95e0-54d526d67140%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
