In the java libraries, we use Axis for SOAP calls (everything but reports) but jaxb for the report download requests. Choose which import you need depending on which functionality you are using.
As you pointed out, the generated code is slightly different and it won't compile if you have the wrong import, so it's pretty easy to see when its wrong. - Kevin Winter AdWords API Team On Thursday, November 8, 2012 5:26:24 AM UTC-5, erob wrote: > > Hi, > > I'm using the Java client and finding some of the dependencies quite > confusing... > > For example, If you're creating a Selector, there are two places you can > import the class from: > > import com.google.api.ads.adwords.axis.v201209.cm.Selector; > import com.google.api.ads.adwords.lib.jaxb.v201209.Selector; > > However, the two classes behave quite differently, for > example axis.v201209.cm.Selector provides a setFields(String[] fields) > method, while the .jaxb.v201209.Selector does not. > > Further, while you can use the .jaxb.v201209.Selector for ad-hoc > reporting, e.g., a KEYWORD_PERFORMANCE_REPORT, if you are using > the AdGroupCriterionService and AdwordsServices then the service object > expects an axis.v201209.cm.Selector > > It's quite confusing... Can I solely rely on one type of library or do I > need the axis and jaxb libraries? > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en