diff --git a/shadow-google-ads-helper/build.gradle b/shadow-google-ads-helper/build.gradle index 85120ac..f37c097 100644 --- a/shadow-google-ads-helper/build.gradle +++ b/shadow-google-ads-helper/build.gradle @@ -30,7 +30,7 @@ configurations { } dependencies { - compile("com.google.api-ads:google-ads:25.0.0") { + compile("com.google.api-ads:google-ads:26.1.0") { exclude group: "commons-logging", module: "commons-logging" } diff --git a/src/main/java/org/embulk/input/google_ads/GoogleAdsInputPlugin.java b/src/main/java/org/embulk/input/google_ads/GoogleAdsInputPlugin.java index e2da5a7..53f038a 100644 --- a/src/main/java/org/embulk/input/google_ads/GoogleAdsInputPlugin.java +++ b/src/main/java/org/embulk/input/google_ads/GoogleAdsInputPlugin.java @@ -1,7 +1,7 @@ package org.embulk.input.google_ads; -import com.google.ads.googleads.v13.services.GoogleAdsRow; -import com.google.ads.googleads.v13.services.GoogleAdsServiceClient; +import com.google.ads.googleads.v14.services.GoogleAdsRow; +import com.google.ads.googleads.v14.services.GoogleAdsServiceClient; import com.google.common.collect.ImmutableList; import org.embulk.config.ConfigDiff; diff --git a/src/main/java/org/embulk/input/google_ads/GoogleAdsReporter.java b/src/main/java/org/embulk/input/google_ads/GoogleAdsReporter.java index bbc0e25..bee630c 100644 --- a/src/main/java/org/embulk/input/google_ads/GoogleAdsReporter.java +++ b/src/main/java/org/embulk/input/google_ads/GoogleAdsReporter.java @@ -7,9 +7,9 @@ import com.fasterxml.jackson.databind.node.JsonNodeType; import com.fasterxml.jackson.databind.node.ObjectNode; import com.google.ads.googleads.lib.GoogleAdsClient; -import com.google.ads.googleads.v13.services.GoogleAdsRow; -import com.google.ads.googleads.v13.services.GoogleAdsServiceClient; -import com.google.ads.googleads.v13.services.SearchGoogleAdsRequest; +import com.google.ads.googleads.v14.services.GoogleAdsRow; +import com.google.ads.googleads.v14.services.GoogleAdsServiceClient; +import com.google.ads.googleads.v14.services.SearchGoogleAdsRequest; import com.google.auth.oauth2.UserCredentials; import com.google.common.base.CaseFormat; import com.google.protobuf.Descriptors; @@ -62,7 +62,7 @@ public Iterable getReportPage() String query = buildQuery(task, startDateTime); logger.info(query); SearchGoogleAdsRequest request = buildRequest(task, query); - GoogleAdsServiceClient googleAdsService = client.getVersion13().createGoogleAdsServiceClient(); + GoogleAdsServiceClient googleAdsService = client.getVersion14().createGoogleAdsServiceClient(); GoogleAdsServiceClient.SearchPagedResponse response = googleAdsService.search(request); if (response.getPage().getResponse().getResultsCount() == 0) {