Re: ClientID
Hi Doug, You need email and password when you are using ClientLogin as the authentication mechanism (which is also the default). If you are using OAuth, you don't need to set them, but you have to set user-SetOAuthInfo() instead. See http://code.google.com/p/google-api-adwords-php/source/browse/apps/sample-webapp/public/login.php for details on how AdWordsUser is initialized in this case. You need one of ClientId / ClientEmail when the logged in OAuth user or the Email is an MCC account. This is used to identify the AdWords account against which the calls are happening. Hope this helps. Let me know if you have more questions. Cheers, Anash P. Oommen, AdWords API Advisor. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: ClientID
I believe ClientID (or ClientEmail) and Email are two separate things. Email/Password is the authentication, ClientID (or clientEmail) is used to determine what account(s) to use in the data set. I don't use OAuth however, so I may be talking out of my a$$. But with ClientLogon Authorization that's how it works, you need both, Email and ClientID -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: ClientID
Thank you for the response, I have found this inside the sample oauth app: http://code.google.com/p/google-api-adwords-php/source/browse/apps/sample-webapp/auth.ini It seems they don't specify an email inside this file, but when I comment it out for some reason I get the error: Validation failed for [email] with value []: email is required and cannot be NULL.null When I instantiate an AdwordsUser object, -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: ClientID
I am getting this error: Validation failed for [email] with value []: email is required and cannot be NULL.null When I try to setClientId: // instantiate a new adwordsuser $user = new AdWordsUser(); $user-SetClientId(wmyem...@gmail.com); -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
AdWords API Re: clientId for MCC
Hi Dovid, This can be done by using the method AccountService.getClientAccounts() http://code.google.com/apis/adwords/docs/developer/AccountService.html#getClientAccounts This will return the email address of each client account of an MCC. The ids of the clients must be fetched one at a time however. For each client, set the clientEmail header of the request to that client's email address and then run AccountService.getAccountInfo() http://code.google.com/apis/adwords/docs/developer/AccountService.html#getAccountInfo This response will include the client id for that client, as well as other useful information. Best, - Eric Koleda, AdWords API Team On Mar 9, 6:24 am, Dovid dyu...@gmail.com wrote: Is there a way to retrieve a list of client Ids (together with email address for that client) for a given MCC account via the API? Or do I need to look up my client IDs in another way? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en