Reputation: 8801
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
Reputation: 8801
Already solved. Just add the line in the start of code:
import fpconst
Upvotes: 1