I had a rather strange error:
java.lang.NullPointerException
at com.google.api.adwords.v12.KeywordToolServiceSoapBindingStub.getKeywordVariations_aroundBody1$advice(KeywordToolServiceSoapBindingStub.java:146)
at com.google.api.adwords.v12.KeywordToolServiceSoapBindingStub.getKeywordVariations(KeywordToolServiceSoapBindingStub.java:1)
at org.hrstc.termexpansion.impl.google.GetKeywordVariations.main(GetKeywordVariations.java:69)
Solution:
http://groups.google.com/group/adwords-api/browse_thread/thread/77baa14b...
Examples provided in the API documentation are incorect:
- using the wrong package names
- not working even after fixing some minor errors
As the above blog suggests it is much better just to use library from http://code.google.com/p/google-api-adwords-java/ and the corresponding examples