I need a bare bones example to use the python adwords adspygoogle v13 for AccountService

63 views
Skip to first unread message

Monty808

unread,
Oct 19, 2010, 6:07:54 AM10/19/10
to AdWords API Forum
Hi,

I cant seem to get adspygoogle to work. I am migrating from aw_api.

Here is what I am workig with so far

import os
import sys
from adspygoogle.adwords.AdWordsClient import AdWordsClient
from adspygoogle.adwords.AccountService import AccountService
from adspygoogle.common import Utils

google_service = 'https://adwords.google.com'
headers = {
'email': 'xxx...@gmail.com',
'password': xxxxxxx',
'useragent': 'Test',
'developerToken': 'xxxxxxxxxx',
}
client = AdWordsClient(headers=headers,path=os.path.join('.', '..',
'..', '..'))
account_service = client.GetAccountService(google_service)
client_accounts = account_service.GetClientAccounts()

When I run the code I get this error.

adspygoogle.common.Errors.ValidationError: The version 'v201008' is
not compatible with 'AccountService'.

What is the correct way to run this code from start to finish?

Tim Wintle

unread,
Oct 19, 2010, 6:22:09 AM10/19/10
to davidmo...@gmail.com, AdWords API Forum
On Tue, 2010-10-19 at 03:07 -0700, Monty808 wrote:
> Hi,
>
> I cant seem to get adspygoogle to work. I am migrating from aw_api.


I'm just starting with the adwords api, and I can't get adspygoogle to
work for the life of me, I'm just getting too many errors and no
response to my questions.

I've decided to go with the aw_api for now, even though it's a new
application, and migrate later when there have been more bug fixes.

Tim


Joshua J. Kugler

unread,
Oct 19, 2010, 1:33:23 PM10/19/10
to adwor...@googlegroups.com, davidmo...@gmail.com
On Tuesday 19 October 2010, Monty808 elucidated thus:

> When I run the code I get this error.
>
> adspygoogle.common.Errors.ValidationError: The version 'v201008' is
> not compatible with 'AccountService'.

AccountService is still a v13 service.

j

--
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com - Fairbanks, AK
PGP Key: http://pgp.mit.edu/ �ID 0x73B13B6A

AdWords API Advisor

unread,
Oct 20, 2010, 8:15:28 AM10/20/10
to AdWords API Forum
Guys,

The new python library (adspygoogle) has an example for v13
AccountService at
http://code.google.com/p/google-api-adwords-python-lib/source/browse/branches/api.sgrinberg-adspygoogle.adwords-13.0.0/examples/adspygoogle/adwords/v13/get_accounts_info.py.
Could you try and see if it works for you?

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Oct 19, 10:33 pm, "Joshua J. Kugler" <jos...@eeinternet.com> wrote:
> On Tuesday 19 October 2010, Monty808 elucidated thus:
>
> > When I run the code I get this error.
>
> > adspygoogle.common.Errors.ValidationError: The version 'v201008' is
> > not compatible with 'AccountService'.
>
> AccountService is still a v13 service.
>
> j
>
> --
> Joshua Kugler
> Part-Time System Admin/Programmerhttp://www.eeinternet.com- Fairbanks, AK
> PGP Key:http://pgp.mit.edu/ID 0x73B13B6A
Reply all
Reply to author
Forward
0 new messages