Hi all, I'm a little green but want to have a try at creating a simple list of all accounts in our MCC to sort with various criteria later.
I've setup the "AdWords API Sample Web Application" and sorted out a minor few errors in the code (a method AddParamsToURL was being incorrectly called causing oAuth to fail). Also jquery.cookie.js had to be renamed jquery_cookie.js or it would throw a 406 error. Well that all works now and I can login via oAuth and grant "Google Adwords" access to the app. It loads but shows "Accounts: No Accounts", though I know there are accounts in the MCC. The dev token is ok and I get the same result between production and sandbox. There is one console error : 'undefined' is not an object (evaluating 'result.accounts[0]') http://my-test-domain/js/main.js:64 This is line 64 : if (!result.error) { scope.rootAccount = result.rootAccount; scope.accounts = result.accounts; *scope.customerId = result.accounts[0].customerId;* } else { scope.error = result.error; } Not sure where to go from here. Any thoughts? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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
<<attachment: Screen Shot 2012-05-24 at 5.01.29 PM.png>>
