Hi Yulong, We have an ongoing issue with sandbox, where sandbox returns customerId as 0 on initialization. The steps you are performing are correct, your code will start working once the sandbox issues are addressed.
Cheers, Anash P. Oommen, AdWords API Advisor. On Tuesday, 7 August 2012 22:17:10 UTC+5:30, Yulong wrote: > > Hi all, > > I am trying to use python client lib for adwords. However I encounter > various problems just to follow the very basic steps in the README: > > 1. all dependecies installed: PyXML, fpconst, httplib2, oauth2 > 2. fresh google account registered > 3. adwords enabled for the account > 4. run get_campaigns.py and get: > No campaigns were found. > > Usage: 1 units, 1 operations > > 5. run get_account_hierarchy.py and get: > No serviced accounts were found > > Usage: 0 units, 0 operations > > It should have 5 auto-generated account, right? This is the result of > using v201206 examples. When I use v201109 examples, I do have following > account generated: > Login, CustomerId (Status) > Root, 9468626018 > --client_5+...@gmail.com <javascript:>, 0 (ESTABLISHED) > --client_5+myaddr...@gmail.com, 0 (ESTABLISHED) > --client_5+myaddr...@gmail.com, 0 (ESTABLISHED) > --client_5+myaddr...@gmail.com, 0 (ESTABLISHED) > --client_5+myaddr...@gmail.com, 0 (ESTABLISHED) > > Usage: 0 units, 0 operations > > However the customer ID 0 could not pass the auth2.0 authentication in the > use_auth.py example, nor the get_client_customer_id.py. Says error > INVALID_CLIENT_EMAIL or USER_PERMISSION_DENIED. > > Do I have to do anything to the account? like set it up for adwords API > access, or anything else. > > Any help would be really appreciated. Kind of urgent. > > Thank you! > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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