Hi Carlos, You do *not* have to link the client accounts to your MCC, although many developers do this to make it easier -- it allows you to use the same OAuth credentials for requests on all of the accounts under the MCC. However, if you have a mechanism for obtaining OAuth credentials on a per-account basis, that will work as well.
For example, in your use case you could: 1. Use the web or native application flow get a refresh token or access token for a user's account. This will require authorization from the user, either just once if using a refresh token (offline flow) or repeatedly (each time the access token expires) if you are not using the offline flow. 2. In your requests, use: a. The developer token from your MCC b. The clientCustomerId of the customer's account. c. The OAuth access token from step 1 Again, the clientCustomerId (b) does not have to be in your MCC as long as the OAuth credentials (c) grant access to that customer ID (b). Cheers, Josh, AdWords API Team On Monday, November 17, 2014 6:08:02 PM UTC-5, Carlos Iriarte wrote: > > Hello AdWords API Team, > > I am trying to achieve the following scenario through OAuth2 / OpenID > Connect: > > Our software stack is AspNet MVC 4. Using > https://github.com/googleads/googleads-dotnet-lib and I've created an MCC > (and the corresponding MCC Test account). I have also registered our app at > https://console.developers.google.com > > We want our customers to add certain extensions to their ads (and possibly > add certain properties on their behalf) > > 1. The user is logged in to our application (a SaaS web app) > 2. We trigger an OAuth2.0 / OpenID Connect web server flow (here we obtain > the necessary tokens). > 3. We should be able to obtain access to their account programatically and > modify the customer's ads accordingly to our business logic. > > I'm facing a couple of questions that I've been unable to answer reading > through the documentation: > > - Do we need to "prelink" each potential account to our MCC? > - Can't we just use the OAuth2 web server flow to access their resources? > Without prelinking and authorizing their accounts manually? > > From what I've read so far, it looks like we need to add the > ClientCustomerId on each request, but it will work only for those accounts > linked to our MCC. Are there any workarounds? Can I autolink these new > accounts programatically? > > Please let me know if you need more information, I'd be happy to share > more details in private. > > Thanks, > Carlos > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/78a2b99c-1f32-42aa-a2df-ab18f6041211%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
