Skip to content

Commit 437d614

Browse files
authored
Changes for release v16_1. (#859)
1 parent 4e923a8 commit 437d614

File tree

2,855 files changed

+2438
-225164
lines changed

Some content is hidden

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

2,855 files changed

+2438
-225164
lines changed

ChangeLog

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
* 24.0.0
2+
- Google Ads API v16_1 release.
3+
- Remove support for Google Ads API v14.
4+
- Remove the following obsolete examples:
5+
- account_management/approve_merchant_center_link.py
6+
- account_management/reject_merchant_center_link.py
7+
- remarketing/add_flights_feed.py
8+
- remarketing/add_real_estate_feed.py
9+
- Added example account_management/verify_advertiser_identity.py.
10+
- Update example remarketing/upload_conversion_adjustment.py to use order ID.
11+
- Update all examples to initialize client after CLI argument validation.
12+
113
* 23.1.0
214
- Google Ads API v16 release.
315
- Use native `open` function to load README in setup.py.

examples/account_management/approve_merchant_center_link.py

-170
This file was deleted.

examples/account_management/create_customer.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ def main(client, manager_customer_id):
5656

5757

5858
if __name__ == "__main__":
59-
# GoogleAdsClient will read the google-ads.yaml configuration file in the
60-
# home directory if none is specified.
61-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
62-
6359
parser = argparse.ArgumentParser(
6460
description=("Creates a new client under the given manager.")
6561
)
@@ -75,6 +71,10 @@ def main(client, manager_customer_id):
7571
)
7672
args = parser.parse_args()
7773

74+
# GoogleAdsClient will read the google-ads.yaml configuration file in the
75+
# home directory if none is specified.
76+
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
77+
7878
try:
7979
main(googleads_client, args.manager_customer_id)
8080
except GoogleAdsException as ex:

examples/account_management/get_account_hierarchy.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,6 @@ def print_account_hierarchy(
177177

178178

179179
if __name__ == "__main__":
180-
# GoogleAdsClient will read the google-ads.yaml configuration file in the
181-
# home directory if none is specified.
182-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
183-
184180
parser = argparse.ArgumentParser(
185181
description="This example gets the account hierarchy of the specified "
186182
"manager account and login customer ID."
@@ -198,6 +194,10 @@ def print_account_hierarchy(
198194
"authenticated Google Ads account.",
199195
)
200196
args = parser.parse_args()
197+
198+
# GoogleAdsClient will read the google-ads.yaml configuration file in the
199+
# home directory if none is specified.
200+
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
201201
try:
202202
main(googleads_client, args.login_customer_id)
203203
except GoogleAdsException as ex:

examples/account_management/get_change_details.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,6 @@ def main(client, customer_id):
184184

185185

186186
if __name__ == "__main__":
187-
# GoogleAdsClient will read the google-ads.yaml configuration file in the
188-
# home directory if none is specified.
189-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
190-
191187
parser = argparse.ArgumentParser(
192188
description="This example gets specific details about the most recent "
193189
"changes in the given account."
@@ -201,6 +197,10 @@ def main(client, customer_id):
201197
help="The Google Ads customer ID.",
202198
)
203199
args = parser.parse_args()
200+
201+
# GoogleAdsClient will read the google-ads.yaml configuration file in the
202+
# home directory if none is specified.
203+
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
204204
try:
205205
main(googleads_client, args.customer_id)
206206
except GoogleAdsException as ex:

examples/account_management/get_change_summary.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ def main(client, customer_id):
8484

8585
if __name__ == "__main__":
8686
# GoogleAdsClient will read a google-ads.yaml configuration file in the
87-
# home directory if none is specified.
88-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
89-
9087
parser = argparse.ArgumentParser(
9188
description=(
9289
"Displays account changes that occurred in the last 7 days."
@@ -102,6 +99,10 @@ def main(client, customer_id):
10299
)
103100
args = parser.parse_args()
104101

102+
# GoogleAdsClient will read the google-ads.yaml configuration file in the
103+
# home directory if none is specified.
104+
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
105+
105106
try:
106107
main(googleads_client, args.customer_id)
107108
except GoogleAdsException as ex:

examples/account_management/invite_user_with_access_role.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ def main(client, customer_id, email_address, access_role):
5757

5858

5959
if __name__ == "__main__":
60-
# GoogleAdsClient will read the google-ads.yaml configuration file in the
61-
# home directory if none is specified.
62-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
63-
6460
parser = argparse.ArgumentParser(
6561
description=(
6662
"Sends an invitation email to a user to manage a customer "
@@ -92,6 +88,10 @@ def main(client, customer_id, email_address, access_role):
9288
)
9389
args = parser.parse_args()
9490

91+
# GoogleAdsClient will read the google-ads.yaml configuration file in the
92+
# home directory if none is specified.
93+
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
94+
9595
try:
9696
main(
9797
googleads_client,

examples/account_management/link_manager_to_client.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ def main(client, customer_id, manager_customer_id):
110110

111111

112112
if __name__ == "__main__":
113-
# GoogleAdsClient will read the google-ads.yaml configuration file in the
114-
# home directory if none is specified.
115-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
116-
117113
parser = argparse.ArgumentParser(
118114
description=(
119115
"Links an existing manager customer to an existing"
@@ -132,6 +128,10 @@ def main(client, customer_id, manager_customer_id):
132128
help="The manager customer ID.",
133129
)
134130
args = parser.parse_args()
131+
132+
# GoogleAdsClient will read the google-ads.yaml configuration file in the
133+
# home directory if none is specified.
134+
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
135135
try:
136136
main(googleads_client, args.customer_id, args.manager_customer_id)
137137
except GoogleAdsException as ex:

0 commit comments

Comments
 (0)