Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

estimate_keyword_traffic.py example throws AttributeError #35

Closed
schmilblick opened this issue Oct 21, 2014 · 3 comments
Closed

estimate_keyword_traffic.py example throws AttributeError #35

schmilblick opened this issue Oct 21, 2014 · 3 comments

Comments

@schmilblick
Copy link

When running the example, an AttributeError is thrown: https://gist.github.com/schmilblick/0ab036790c7404055685

When debugging it I found additional errors. I went step by step through the example, and when reaching the line:

estimates = traffic_estimator_service.get(selector)

Suds logs the following errors:

[2014-10-21 12:..] [/.../suds/resolver.py:134] [ERROR] (Money) not-found
[2014-10-21 12:..] [/.../suds/resolver.py:116] [ERROR] path: Money, not-found
[2014-10-21 12:..] [/.../suds/resolver.py:134] [ERROR] (Keyword) not-found
[2014-10-21 12:..] [/.../suds/resolver.py:116] [ERROR] path: Keyword, not-found
[2014-10-21 12:..] [/.../suds/resolver.py:134] [ERROR] (Location) not-found
[2014-10-21 12:..] [/.../suds/resolver.py:116] [ERROR] path: Location, not-found
[2014-10-21 12:..] [/.../suds/resolver.py:134] [ERROR] (Language) not-found
[2014-10-21 12:..] [/.../suds/resolver.py:116] [ERROR] path: Language, not-found

I am using the example code from: https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201409/optimization/estimate_keyword_traffic.py

@msaniscalchi
Copy link
Contributor

Hello,

Were you having any other issues with your client? I'm not seeing these errors when running the sample on v201409, and the StatsEstimate should have the averageCpc field:

https://developers.google.com/adwords/api/docs/reference/v201409/TrafficEstimatorService.StatsEstimate

The first thing that comes to mind is that there might be an issue with your installation. If you're still experiencing this problem, try reinstalling the library (and all dependencies) and see if that makes a difference. I will be closing this issue, because this doesn't appear to be an issue with the library as far as I can tell. If reinstalling fails to resolve the problem, please reopen and provide more details about your environment so I can better attempt to reproduce this.

@smartermarketing
Copy link

@msaniscalchi Reopening this as #41 since the problem still persists.

@junna-zhou
Copy link

the same problem.
I've tried to reinstall all the related packages. But it didn't works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants