Skip to content

Commit 9f13661

Browse files
committed
Change v19 to v20
1 parent 8bc0d02 commit 9f13661

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/custom_logging_interceptor/get_campaigns.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
from google.ads.googleads.client import GoogleAdsClient
2525
from google.ads.googleads.errors import GoogleAdsException
26-
from google.ads.googleads.v19.services.services.google_ads_service import GoogleAdsServiceClient
27-
from google.ads.googleads.v19.services.types.google_ads_service import SearchGoogleAdsStreamResponse
28-
from google.ads.googleads.v19.types.google_ads_row import GoogleAdsRow
26+
from google.ads.googleads.v20.services.services.google_ads_service import GoogleAdsServiceClient
27+
from google.ads.googleads.v20.services.types.google_ads_service import SearchGoogleAdsStreamResponse
28+
from google.ads.googleads.v20.types.google_ads_row import GoogleAdsRow
2929

3030
from cloud_logging_interceptor import CloudLoggingInterceptor
3131

@@ -34,7 +34,7 @@ def main(client: GoogleAdsClient, customer_id: str) -> None:
3434
# Instantiate the GoogleAdsService object with a custom interceptor.
3535
ga_service: GoogleAdsServiceClient = client.get_service(
3636
"GoogleAdsService",
37-
interceptors=[CloudLoggingInterceptor(api_version="v19")],
37+
interceptors=[CloudLoggingInterceptor(api_version="v20")],
3838
)
3939

4040
query: str = """
@@ -72,7 +72,7 @@ def main(client: GoogleAdsClient, customer_id: str) -> None:
7272

7373
# GoogleAdsClient will read the google-ads.yaml configuration file in the
7474
# home directory if none is specified.
75-
googleads_client: GoogleAdsClient = GoogleAdsClient.load_from_storage(version="v19")
75+
googleads_client: GoogleAdsClient = GoogleAdsClient.load_from_storage(version="v20")
7676

7777
try:
7878
main(googleads_client, args.customer_id)

0 commit comments

Comments
 (0)