Skip to content

Commit

Permalink
Merge pull request #44 from trocco-io/bump-sdk
Browse files Browse the repository at this point in the history
bump Google Ads SDK to 0.25.0 (support for Google Ads API v13.1)
  • Loading branch information
d-hrs authored Sep 20, 2023
2 parents 3ad2b35 + b4f4ff5 commit 333b1e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion shadow-google-ads-helper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ configurations {
}

dependencies {
compile("com.google.api-ads:google-ads:22.0.0") {
compile("com.google.api-ads:google-ads:25.0.0") {
exclude group: "commons-logging", module: "commons-logging"
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.embulk.input.google_ads;

import com.google.ads.googleads.v12.services.GoogleAdsRow;
import com.google.ads.googleads.v12.services.GoogleAdsServiceClient;
import com.google.ads.googleads.v13.services.GoogleAdsRow;
import com.google.ads.googleads.v13.services.GoogleAdsServiceClient;
import com.google.common.collect.ImmutableList;

import org.embulk.config.ConfigDiff;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.v12.services.GoogleAdsServiceClient;
import com.google.ads.googleads.v12.services.SearchGoogleAdsRequest;
import com.google.ads.googleads.v13.services.GoogleAdsServiceClient;
import com.google.ads.googleads.v13.services.SearchGoogleAdsRequest;
import com.google.auth.oauth2.UserCredentials;
import com.google.common.base.CaseFormat;
import com.google.protobuf.Descriptors;
Expand Down Expand Up @@ -57,7 +57,7 @@ public Iterable<GoogleAdsServiceClient.SearchPage> getReportPage()
String query = buildQuery(task);
logger.info(query);
SearchGoogleAdsRequest request = buildRequest(task, query);
GoogleAdsServiceClient googleAdsService = client.getVersion12().createGoogleAdsServiceClient();
GoogleAdsServiceClient googleAdsService = client.getVersion13().createGoogleAdsServiceClient();
GoogleAdsServiceClient.SearchPagedResponse response = googleAdsService.search(request);
return response.iteratePages();
}
Expand Down

0 comments on commit 333b1e3

Please sign in to comment.