Filipe Ferminiano
Filipe Ferminiano

Reputation: 8801

Python 2.7 with Adwords API: ImportError: cannot import name AdWordsClient

I'm getting the following error when I try to use Adwords API with Python 2.7 in a Windws 7: ImportError: cannot import name AdWordsClient

with the following code (I got it from google examples):

import os
import sys
sys.path.insert(0, os.path.join('..', '..', '..', '..', '..'))

# Import appropriate classes from the client library.
from adspygoogle import AdWordsClient
from adspygoogle.common import Utils

Upvotes: 1

Views: 885

Answers (1)

Filipe Ferminiano
Filipe Ferminiano

Reputation: 8801

Already solved. Just add the line in the start of code:

import fpconst

Upvotes: 1

Related Questions