Skip to content

Commit 0f0fde3

Browse files
authored
Changes for release v17. (#866)
1 parent 437d614 commit 0f0fde3

File tree

1,549 files changed

+239299
-382
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,549 files changed

+239299
-382
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* 24.1.0
2+
- Google Ads API v17 release.
3+
- Remove page_size parameter from Search requests in all examples.
4+
15
* 24.0.0
26
- Google Ads API v16_1 release.
37
- Remove support for Google Ads API v14.

examples/account_management/create_customer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def main(client, manager_customer_id):
7373

7474
# GoogleAdsClient will read the google-ads.yaml configuration file in the
7575
# home directory if none is specified.
76-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
76+
googleads_client = GoogleAdsClient.load_from_storage(version="v17")
7777

7878
try:
7979
main(googleads_client, args.manager_customer_id)

examples/account_management/get_account_hierarchy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def print_account_hierarchy(
197197

198198
# GoogleAdsClient will read the google-ads.yaml configuration file in the
199199
# home directory if none is specified.
200-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
200+
googleads_client = GoogleAdsClient.load_from_storage(version="v17")
201201
try:
202202
main(googleads_client, args.login_customer_id)
203203
except GoogleAdsException as ex:

examples/account_management/get_change_details.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929
from google.ads.googleads.util import get_nested_attr
3030

3131

32-
_DEFAULT_PAGE_SIZE = 1000
33-
34-
3532
# [START get_change_details]
3633
def main(client, customer_id):
3734
"""Gets specific details about the most recent changes in the given account.
@@ -72,7 +69,6 @@ def main(client, customer_id):
7269
search_request = client.get_type("SearchGoogleAdsRequest")
7370
search_request.customer_id = customer_id
7471
search_request.query = query
75-
search_request.page_size = _DEFAULT_PAGE_SIZE
7672

7773
results = googleads_service.search(request=search_request)
7874

@@ -200,7 +196,7 @@ def main(client, customer_id):
200196

201197
# GoogleAdsClient will read the google-ads.yaml configuration file in the
202198
# home directory if none is specified.
203-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
199+
googleads_client = GoogleAdsClient.load_from_storage(version="v17")
204200
try:
205201
main(googleads_client, args.customer_id)
206202
except GoogleAdsException as ex:

examples/account_management/get_change_summary.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
from google.ads.googleads.client import GoogleAdsClient
2525
from google.ads.googleads.errors import GoogleAdsException
2626

27-
_DEFAULT_PAGE_SIZE = 1000
28-
2927

3028
# [START get_change_summary]
3129
def main(client, customer_id):
@@ -52,7 +50,6 @@ def main(client, customer_id):
5250
search_request = client.get_type("SearchGoogleAdsRequest")
5351
search_request.customer_id = customer_id
5452
search_request.query = query
55-
search_request.page_size = _DEFAULT_PAGE_SIZE
5653

5754
response = ads_service.search(request=search_request)
5855

@@ -101,7 +98,7 @@ def main(client, customer_id):
10198

10299
# GoogleAdsClient will read the google-ads.yaml configuration file in the
103100
# home directory if none is specified.
104-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
101+
googleads_client = GoogleAdsClient.load_from_storage(version="v17")
105102

106103
try:
107104
main(googleads_client, args.customer_id)

examples/account_management/invite_user_with_access_role.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def main(client, customer_id, email_address, access_role):
9090

9191
# GoogleAdsClient will read the google-ads.yaml configuration file in the
9292
# home directory if none is specified.
93-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
93+
googleads_client = GoogleAdsClient.load_from_storage(version="v17")
9494

9595
try:
9696
main(

examples/account_management/link_manager_to_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def main(client, customer_id, manager_customer_id):
131131

132132
# GoogleAdsClient will read the google-ads.yaml configuration file in the
133133
# home directory if none is specified.
134-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
134+
googleads_client = GoogleAdsClient.load_from_storage(version="v17")
135135
try:
136136
main(googleads_client, args.customer_id, args.manager_customer_id)
137137
except GoogleAdsException as ex:

examples/account_management/list_accessible_customers.py

Lines changed: 1 addition & 1 deletion
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="v16")
47+
googleads_client = GoogleAdsClient.load_from_storage(version="v17")
4848

4949
try:
5050
main(googleads_client)

examples/account_management/update_user_access.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def modify_user_access(client, customer_id, user_id, access_role):
167167

168168
# GoogleAdsClient will read the google-ads.yaml configuration file in the
169169
# home directory if none is specified.
170-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
170+
googleads_client = GoogleAdsClient.load_from_storage(version="v17")
171171
try:
172172
main(
173173
googleads_client,

examples/account_management/verify_advertiser_identity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def start_identity_verification(client, customer_id):
144144

145145
# GoogleAdsClient will read the google-ads.yaml configuration file in the
146146
# home directory if none is specified.
147-
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
147+
googleads_client = GoogleAdsClient.load_from_storage(version="v17")
148148

149149
try:
150150
main(googleads_client, args.customer_id)

0 commit comments

Comments
 (0)