Skip to content

Commit 6b908c0

Browse files
authored
Changes for release v11_1. (#691)
1 parent ec7664c commit 6b908c0

File tree

275 files changed

+3202
-3965
lines changed

Some content is hidden

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

275 files changed

+3202
-3965
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
* 18.1.0
2+
- Google Ads API v11_1 release.
3+
- Bump protobuf dependency to version 4.21.5.
4+
- Bump proto-plus dependency to version 1.22.0.
5+
- Update examples to remove references to expanded text ads.
6+
- Fix bug preventing https protocol in proxy URLs.
7+
- Various example updates.
8+
19
* 18.0.0
210
- Remove support for Google Ads API v9.
311
- Added "pb" user agent key/value pair.

examples/account_management/approve_merchant_center_link.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def main(client, customer_id, merchant_center_account_id):
7171
== merchant_center_link_status_enum.PENDING
7272
and str(merchant_center_link.id) == merchant_center_account_id
7373
):
74-
_update_merchant_center_link_status(
74+
update_merchant_center_link_status(
7575
client,
7676
customer_id,
7777
merchant_center_link_service,
@@ -81,7 +81,7 @@ def main(client, customer_id, merchant_center_account_id):
8181

8282

8383
# [START approve_merchant_center_link_2]
84-
def _update_merchant_center_link_status(
84+
def update_merchant_center_link_status(
8585
client,
8686
customer_id,
8787
merchant_center_link_service,

examples/account_management/get_account_hierarchy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def main(client, login_customer_id=None):
133133
"The hierarchy of customer ID "
134134
f"{root_customer_client.id} is printed below:"
135135
)
136-
_print_account_hierarchy(
136+
print_account_hierarchy(
137137
root_customer_client, customer_ids_to_child_accounts, 0
138138
)
139139
else:
@@ -144,7 +144,7 @@ def main(client, login_customer_id=None):
144144
)
145145

146146

147-
def _print_account_hierarchy(
147+
def print_account_hierarchy(
148148
customer_client, customer_ids_to_child_accounts, depth
149149
):
150150
"""Prints the specified account's hierarchy using recursion.
@@ -171,7 +171,7 @@ def _print_account_hierarchy(
171171
# Recursively call this function for all child accounts of customer_client.
172172
if customer_id in customer_ids_to_child_accounts:
173173
for child_account in customer_ids_to_child_accounts[customer_id]:
174-
_print_account_hierarchy(
174+
print_account_hierarchy(
175175
child_account, customer_ids_to_child_accounts, depth + 1
176176
)
177177

examples/account_management/link_manager_to_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def main(client, customer_id, manager_customer_id):
7878
for row in response.result:
7979
manager_link_id = row.customer_client_link.manager_link_id
8080
except GoogleAdsException as ex:
81-
_handle_googleads_exception(ex)
81+
handle_googleads_exception(ex)
8282

8383
customer_manager_link_service = client.get_service(
8484
"CustomerManagerLinkService"

examples/account_management/reject_merchant_center_link.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def main(client, customer_id, merchant_center_account_id):
7979
if merchant_center_link.id == merchant_center_account_id:
8080
# A Merchant Center link can be pending or enabled; in both
8181
# cases, we reject it by removing the link.
82-
_remove_merchant_center_link(
82+
remove_merchant_center_link(
8383
client,
8484
merchant_center_link_service,
8585
customer_id,
@@ -99,7 +99,7 @@ def main(client, customer_id, merchant_center_account_id):
9999

100100

101101
# [START reject_merchant_center_link]
102-
def _remove_merchant_center_link(
102+
def remove_merchant_center_link(
103103
client, merchant_center_link_service, customer_id, merchant_center_link
104104
):
105105
"""Removes a Merchant Center link from a Google Ads client customer account.

examples/account_management/update_user_access.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ def main(client, customer_id, email_address, access_role):
4343
access_role: The updated access role.
4444
"""
4545

46-
user_id = _get_user_access(client, customer_id, email_address)
46+
user_id = get_user_access(client, customer_id, email_address)
4747

4848
if user_id:
49-
_modify_user_access(client, customer_id, user_id, access_role)
49+
modify_user_access(client, customer_id, user_id, access_role)
5050

5151

52-
def _get_user_access(client, customer_id, email_address):
52+
def get_user_access(client, customer_id, email_address):
5353
"""Gets the customer user access given an email address.
5454
5555
Args:
@@ -98,7 +98,7 @@ def _get_user_access(client, customer_id, email_address):
9898
return None
9999

100100

101-
def _modify_user_access(client, customer_id, user_id, access_role):
101+
def modify_user_access(client, customer_id, user_id, access_role):
102102
"""Modifies the user access role to a specified value.
103103
104104
Args:

0 commit comments

Comments
 (0)