Hi Sandhiya, Since this is somehow related to your other post <https://groups.google.com/d/msgid/adwords-api/eb8b4404-7da0-45d8-9082-90e6bc9ba62b%40googlegroups.com?utm_medium=email&utm_source=footer>, then I'm afraid that there is currently no direct feature available in the AdWords API that will allow you to dynamically retrieve the OAuth2 credentials and use them against their respective accounts. What I can recommend is that you create a file and store all those credentials (client id, client secret, refresh token, etc.) for each gmail login in that file that you can later on read when you switch accounts. You can refer to this guide <https://developers.google.com/adwords/api/docs/guides/samples-use-cases#anatomy_of_an_api_code_sample> on how to create or set each attribute from the AdWordsSession.
Thanks and regards, Luis 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/3cc161eb-27c4-4011-8164-f39257f2cf82%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
