From fe86dc24c36b5ad0edfa96a9df7bdd928516097f Mon Sep 17 00:00:00 2001 From: chikamura Date: Mon, 18 Dec 2023 11:50:17 +0900 Subject: [PATCH 1/2] v13->v14.0 --- shadow-google-ads-helper/build.gradle | 2 +- .../org/embulk/input/google_ads/GoogleAdsInputPlugin.java | 4 ++-- .../java/org/embulk/input/google_ads/GoogleAdsReporter.java | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/shadow-google-ads-helper/build.gradle b/shadow-google-ads-helper/build.gradle index 85120ac..e9e16c3 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.0.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 a03ac70..c3e423e 100644 --- a/src/main/java/org/embulk/input/google_ads/GoogleAdsReporter.java +++ b/src/main/java/org/embulk/input/google_ads/GoogleAdsReporter.java @@ -7,8 +7,8 @@ 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.GoogleAdsServiceClient; -import com.google.ads.googleads.v13.services.SearchGoogleAdsRequest; +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; @@ -57,7 +57,7 @@ public Iterable getReportPage() String query = buildQuery(task); logger.info(query); SearchGoogleAdsRequest request = buildRequest(task, query); - GoogleAdsServiceClient googleAdsService = client.getVersion13().createGoogleAdsServiceClient(); + GoogleAdsServiceClient googleAdsService = client.getVersion14().createGoogleAdsServiceClient(); GoogleAdsServiceClient.SearchPagedResponse response = googleAdsService.search(request); return response.iteratePages(); } From 3ad3e12536db8f79983b36616c121a929c8eeead Mon Sep 17 00:00:00 2001 From: chikamura Date: Sun, 24 Dec 2023 17:09:30 +0900 Subject: [PATCH 2/2] v14.0 -> v14.1 --- shadow-google-ads-helper/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadow-google-ads-helper/build.gradle b/shadow-google-ads-helper/build.gradle index e9e16c3..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:26.0.0") { + compile("com.google.api-ads:google-ads:26.1.0") { exclude group: "commons-logging", module: "commons-logging" }