googleads / google-ads-java

Google Ads API Client Library for Java
Apache License 2.0
170 stars 177 forks source link

Confirm compatibility with the Google Ads APIs Client Library for Java (AdWords and DFP) #15

Closed jradcliff closed 6 years ago

jradcliff commented 6 years ago

Confirm that a single Maven project can depend on both this library and the Google Ads APIs Client Library for Java (AdWords and DFP).

This will ensure that users migrating from the AdWords API to the Google Ads API will be able to use both APIs within the same project.

jradcliff commented 6 years ago

Confirmed this by creating a local branch of this project and applying the following changes:

  1. Added a dependency on version 3.15.1 of the ads-lib and adwords-axis artifacts from the Google Ads APIs Client Library.
  2. Copied examples from the Google Ads APIs Client Library into the google-ads-examples directory.
  3. Compiled via mvn compile.

The above confirmed compilation was successful. To confirm runtime compatibility, I successfully ran the following pairs of examples that used both the AdWords API and the Google Ads API.

  1. Get campaigns
    • adwords.axis.v201806.basicoperations.GetCampaigns
    • com.google.ads.googleads.examples.basicoperations.GetCampaigns
  2. Add campaigns
    • adwords.axis.v201806.basicoperations.AddCampaigns
    • com.google.ads.googleads.examples.basicoperations.AddCampaigns
  3. Get keyword criteria performance metrics
    • adwords.axis.v201806.reporting.DownloadCriteriaReportWithSelector
    • com.google.ads.googleads.examples.reporting.GetKeywordStats