Hi Joel, Thanks for the feedback, and you make some good points. I believe one of the reasons for the current package name structure is around the migration from v13 to v2009. We wanted to allow users to run both API versions side-by-side, so that they didn't have to migrate all their code at once. The issue was that the different versions of the API used the same names for certain classes (Keyword, Campaign, etc) but the definitions were not compatible. Using the version in the package name allowed for these classes to coexist. Going forward new versions of the API will continue to be released and old ones deprecated, so there may be a use for this structure beyond the v13-v2009 migration.
I'll pass your comments on to the maintainers of the library, and if you'd like to open a conversation with them on this issue you can file a feature request against the library's issue tracker: http://code.google.com/p/google-api-adwords-java/issues/list Best, - Eric Koleda, AdWords API Team On Dec 9, 8:59 am, joel <[email protected]> wrote: > Hi, I wanted to point out that there's a very bad naming convention > used in the Java Client Library for AdWords package names. The > packages are named like "com.google.api.adwords.v200906.cm" and > "com.google.api.adwords.v200909.cm" and include the version numbers. > This means every time we upgrade we need to update every single one of > our files that imports these classes just so that we can change the > package statement. This is not standard for Java and means that I'll > continue using our own WSDL-generated Java files and not the Client > Library, but if you can change this I would consider using the > library. My suggestion for fixing it is to use separate jars, 1 for > the v200909-specific classes, and 1 for the v200906-specific classes. > That way we could add/drop the jar dependencies without modifying our > own source code. Thanks! > > Joel -- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en.
