Hi Bikram, There are couple of ways by which you can do this depending on how your business works. IMO the 4th option is probably what you need.
1. If you are managing the entire client account on your own without involving the end user in any manner at any stage, then it might as well make sense to create a brand new AdWords account for them and manage their ads in that account. You could create it using ManagedCustomerService under your MCC account. That way, you would need only the credentials of your MCC account. You could generate a refresh token for your MCC account and put that in a configuration file. 2. See if it is a possibility to link the accounts under your MCC. If this can be done, then you only need to know your MCC account's credentials. The OAuth2 logic works the same way as (1). 3. See if you can invite a login from your organization to manage the client's account. This way, you will end up with multiple accounts, but you know the credentials of all those accounts. You could generate refresh tokens offline for each of these accounts, and store those in the database. For each hierarchy of accounts, you could use the corresponding refresh token from your data store. 4. Provide a login page for your client, where they can login and then authenticate your service to access their AdWords accounts on their behalf. That web page could implement OAuth2, and generate a refresh token that you store in your database, along with the clientCustomerId of that account. You could then use these tokens to make API calls. In all the above cases, getting a refresh token is a one-time process and wouldn't need any more user interaction. Cheers, Anash P. Oommen, AdWords API Advisor. On Friday, November 8, 2013 12:22:59 PM UTC-5, Bikram Bhuyan wrote: > > Hi Anash, > > Thanks for your reply. Actually it will be a brand new integration we are > doing with AdWords API. So I am looking for the best possible way to > implement. So your suggestion and any other tips will be highly helpful as > we are currently working on a POC how to implement it in the right way. > > As our application will be a background running process, I am not sure how > we can implement it with connecting to different client AdWords account > which might not be related to our MCC account in any way. And based on the > documentation, we should use OAuth2 for the authentication and API access. > > So that part is little gray area for me right now. > > Thanks, > Bikram. > > On Friday, November 8, 2013 8:21:00 AM UTC-8, Anash P. Oommen (AdWords API > Team) wrote: >> >> Hi Bikram, >> >> How exactly do you add a client to your system today? Do you ask for >> their email / password and store it locally, or ask them to invite one of >> your logins to manage the account, and use that account's username/password >> to make calls? >> >> Cheers, >> Anash P. Oommen, >> AdWords API Advisor. >> >> On Thursday, November 7, 2013 5:29:24 PM UTC-5, Bikram Bhuyan wrote: >>> >>> Hello, >>> >>> I have tested the sample application for our MCC account and everything >>> is working fine (All the basic API calls). But our requirement is little >>> different. >>> >>> We have a windows service which will be accessing the AdWords accounts >>> for our different clients. So no way their accounts will be related to our >>> MCC account which will be the primary account to be used in the windows >>> service. So my question is what is the process we should follow to access >>> the API for our clients, and what is the best way to generate the OAUTH >>> tokens to access the API. >>> >>> As it will be totally a back end running program, could you please >>> suggest what the is best practice normally followed in this scenario. >>> >>> Thanks, >>> Bikram. >>> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://googleadsdeveloper.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. For more options, visit https://groups.google.com/groups/opt_out.
