Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5961ef5

Browse files
authored
Changes for release v9_0. (googleads#527)
1 parent 9f8008f commit 5961ef5

File tree

1,685 files changed

+234388
-906
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,685 files changed

+234388
-906
lines changed

ChangeLog

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
* 14.1.0
2+
- Google Ads API v9_0 release
3+
- Update gRPC transport logic to replace "gapic" user-agent with "gccl"
4+
- Update examples to support v9 changes
5+
- Add new Performance Max examples
6+
advanced_operations/add_performance_max_campaign.py and
7+
shopping_ads/add_performance_max_retail_campaign.py
8+
19
* 14.0.1
210
- Pin protobuf to < 3.18.0
311
- Add examples add_bidding_data_exclusion, add_bidding_seasonality_adjustment

examples/account_management/approve_merchant_center_link.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def _update_merchant_center_link_status(
125125
if __name__ == "__main__":
126126
# GoogleAdsClient will read the google-ads.yaml configuration file in the
127127
# home directory if none is specified.
128-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
128+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
129129

130130
parser = argparse.ArgumentParser(
131131
description=("Approves a Merchant Center link request.")

examples/account_management/create_customer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def main(client, manager_customer_id):
5858
if __name__ == "__main__":
5959
# GoogleAdsClient will read the google-ads.yaml configuration file in the
6060
# home directory if none is specified.
61-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
61+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
6262

6363
parser = argparse.ArgumentParser(
6464
description=("Creates a new client under the given manager.")

examples/account_management/get_account_hierarchy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def _print_account_hierarchy(
179179
if __name__ == "__main__":
180180
# GoogleAdsClient will read the google-ads.yaml configuration file in the
181181
# home directory if none is specified.
182-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
182+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
183183

184184
parser = argparse.ArgumentParser(
185185
description="This example gets the account hierarchy of the specified "

examples/account_management/get_account_information.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def main(client, customer_id):
4242
if __name__ == "__main__":
4343
# GoogleAdsClient will read the google-ads.yaml configuration file in the
4444
# home directory if none is specified.
45-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
45+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
4646

4747
parser = argparse.ArgumentParser(
4848
description=(

examples/account_management/get_change_details.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def main(client, customer_id):
177177
if __name__ == "__main__":
178178
# GoogleAdsClient will read the google-ads.yaml configuration file in the
179179
# home directory if none is specified.
180-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
180+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
181181

182182
parser = argparse.ArgumentParser(
183183
description="This example gets specific details about the most recent "

examples/account_management/get_change_summary.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def main(client, customer_id):
8585
if __name__ == "__main__":
8686
# GoogleAdsClient will read a google-ads.yaml configuration file in the
8787
# home directory if none is specified.
88-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
88+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
8989

9090
parser = argparse.ArgumentParser(
9191
description=(

examples/account_management/get_pending_invitations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def main(client, customer_id):
6565
if __name__ == "__main__":
6666
# GoogleAdsClient will read the google-ads.yaml configuration file in the
6767
# home directory if none is specified.
68-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
68+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
6969

7070
parser = argparse.ArgumentParser(
7171
description=("Retrieves pending invitations for a customer account.")

examples/account_management/invite_user_with_access_role.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def main(client, customer_id, email_address, access_role):
5959
if __name__ == "__main__":
6060
# GoogleAdsClient will read the google-ads.yaml configuration file in the
6161
# home directory if none is specified.
62-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
62+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
6363

6464
parser = argparse.ArgumentParser(
6565
description=(

examples/account_management/link_manager_to_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def main(client, customer_id, manager_customer_id):
110110
if __name__ == "__main__":
111111
# GoogleAdsClient will read the google-ads.yaml configuration file in the
112112
# home directory if none is specified.
113-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
113+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
114114

115115
parser = argparse.ArgumentParser(
116116
description=(

examples/account_management/list_accessible_customers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def main(client):
4444
if __name__ == "__main__":
4545
# GoogleAdsClient will read the google-ads.yaml configuration file in the
4646
# home directory if none is specified.
47-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
47+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
4848

4949
try:
5050
main(googleads_client)

examples/account_management/reject_merchant_center_link.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _remove_merchant_center_link(
129129
if __name__ == "__main__":
130130
# GoogleAdsClient will read the google-ads.yaml configuration file in the
131131
# home directory if none is specified.
132-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
132+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
133133

134134
parser = argparse.ArgumentParser(
135135
description=(

examples/account_management/update_user_access.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _modify_user_access(client, customer_id, user_id, access_role):
137137
if __name__ == "__main__":
138138
# GoogleAdsClient will read the google-ads.yaml configuration file in the
139139
# home directory if none is specified.
140-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
140+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
141141

142142
parser = argparse.ArgumentParser(
143143
description="This code example updates the access role of a user, "

examples/advanced_operations/add_ad_customizer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def _handle_googleads_exception(exception):
438438
if __name__ == "__main__":
439439
# GoogleAdsClient will read the google-ads.yaml configuration file in the
440440
# home directory if none is specified.
441-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
441+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
442442

443443
parser = argparse.ArgumentParser(
444444
description=(

examples/advanced_operations/add_ad_group_bid_modifier.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def main(client, customer_id, ad_group_id, bid_modifier_value):
6565
if __name__ == "__main__":
6666
# GoogleAdsClient will read the google-ads.yaml configuration file in the
6767
# home directory if none is specified.
68-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
68+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
6969

7070
parser = argparse.ArgumentParser(
7171
description=(

examples/advanced_operations/add_app_campaign.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def _create_ad_text_asset(client, text):
297297
if __name__ == "__main__":
298298
# GoogleAdsClient will read the google-ads.yaml configuration file in the
299299
# home directory if none is specified.
300-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
300+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
301301

302302
parser = argparse.ArgumentParser(
303303
description=(

examples/advanced_operations/add_bidding_data_exclusion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def main(client, customer_id, start_date_time, end_date_time):
8080
if __name__ == "__main__":
8181
# GoogleAdsClient will read the google-ads.yaml configuration file in the
8282
# home directory if none is specified.
83-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
83+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
8484

8585
parser = argparse.ArgumentParser(
8686
description="Adds a data exclusion for conversions in Smart Bidding "

examples/advanced_operations/add_bidding_seasonality_adjustment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def main(
9494
if __name__ == "__main__":
9595
# GoogleAdsClient will read the google-ads.yaml configuration file in the
9696
# home directory if none is specified.
97-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
97+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
9898

9999
parser = argparse.ArgumentParser(
100100
description="Adds a seasonality adjustment for conversions in Smart "

examples/advanced_operations/add_display_upload_ad.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _create_display_upload_ad_group_ad(
149149
if __name__ == "__main__":
150150
# GoogleAdsClient will read the google-ads.yaml configuration file in the
151151
# home directory if none is specified.
152-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
152+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
153153

154154
parser = argparse.ArgumentParser(
155155
description="Adds a display upload ad to a given ad group."

examples/advanced_operations/add_dynamic_page_feed.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def _add_dsa_targeting(client, customer_id, ad_group_resource_name, label):
359359
if __name__ == "__main__":
360360
# GoogleAdsClient will read the google-ads.yaml configuration file in the
361361
# home directory if none is specified.
362-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
362+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
363363

364364
parser = argparse.ArgumentParser(
365365
description=(

examples/advanced_operations/add_dynamic_search_ads.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def _add_webpage_criterion(client, customer_id, ad_group_resource_name):
260260
if __name__ == "__main__":
261261
# GoogleAdsClient will read the google-ads.yaml configuration file in the
262262
# home directory if none is specified.
263-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
263+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
264264

265265
parser = argparse.ArgumentParser(
266266
description=(

examples/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def main(client, customer_id, ad_group_id):
9292
if __name__ == "__main__":
9393
# GoogleAdsClient will read the google-ads.yaml configuration file in the
9494
# home directory if none is specified.
95-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
95+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
9696

9797
parser = argparse.ArgumentParser(
9898
description=(

examples/advanced_operations/add_local_campaign.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def _create_youtube_video_asset(
337337
if __name__ == "__main__":
338338
# GoogleAdsClient will read the google-ads.yaml configuration file in the
339339
# home directory if none is specified.
340-
googleads_client = GoogleAdsClient.load_from_storage(version="v8")
340+
googleads_client = GoogleAdsClient.load_from_storage(version="v9")
341341

342342
parser = argparse.ArgumentParser(
343343
description="Adds a Local Campaign to the given account."

0 commit comments

Comments
 (0)