Skip to content

Commit 310a10b

Browse files
committed
Changes for release v15_0.
1 parent eb2b981 commit 310a10b

File tree

1,522 files changed

+232523
-525
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,522 files changed

+232523
-525
lines changed

ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
* 22.1.0
2+
- Google Ads API v15 release.
3+
- Add configuration option allowing developer token to be ignored.
4+
- Make "impersonation_email" an optional configuration for service accounts.
5+
- Redact PII fields from new LocalServicesLead and LocalServicesLeadConversation in logs.
6+
- Add DMA consent to conversions and Customer Match examples.
7+
- Update enhanced conversions examples to fit with for-leads and for-web workflows.
8+
- Update usage of ProductBiddingCategoryConstant to ProductCategoryConstant in examples.
9+
110
* 22.0.0
211
- Remove support for Google Ads API v12.
312

examples/account_management/approve_merchant_center_link.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
To run this code example, you must use the Merchant Center UI or the Content
2222
API for Shopping to send a link request between your Merchant Center and Google
2323
Ads accounts.
24+
25+
NOTE: This code example uses version v14 of the Google Ads API. Version v15 of
26+
the Google Ads API replaces MerchantCenterLinkService with
27+
ProductLinkInvitationService and ProductLinkService. We will add new code
28+
examples using these services shortly.
2429
"""
2530

2631
import argparse

examples/account_management/create_customer.py

Lines changed: 1 addition & 1 deletion
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="v14")
61+
googleads_client = GoogleAdsClient.load_from_storage(version="v15")
6262

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

examples/account_management/get_account_hierarchy.py

Lines changed: 1 addition & 1 deletion
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="v14")
182+
googleads_client = GoogleAdsClient.load_from_storage(version="v15")
183183

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

examples/account_management/get_change_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def main(client, customer_id):
186186
if __name__ == "__main__":
187187
# GoogleAdsClient will read the google-ads.yaml configuration file in the
188188
# home directory if none is specified.
189-
googleads_client = GoogleAdsClient.load_from_storage(version="v14")
189+
googleads_client = GoogleAdsClient.load_from_storage(version="v15")
190190

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

examples/account_management/get_change_summary.py

Lines changed: 1 addition & 1 deletion
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="v14")
88+
googleads_client = GoogleAdsClient.load_from_storage(version="v15")
8989

9090
parser = argparse.ArgumentParser(
9191
description=(

examples/account_management/invite_user_with_access_role.py

Lines changed: 1 addition & 1 deletion
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="v14")
62+
googleads_client = GoogleAdsClient.load_from_storage(version="v15")
6363

6464
parser = argparse.ArgumentParser(
6565
description=(

examples/account_management/link_manager_to_client.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,12 @@ def main(client, customer_id, manager_customer_id):
8585
)
8686
manager_link_operation = client.get_type("CustomerManagerLinkOperation")
8787
manager_link = manager_link_operation.update
88-
manager_link.resource_name = customer_manager_link_service.customer_manager_link_path(
89-
customer_id, manager_customer_id, manager_link_id,
88+
manager_link.resource_name = (
89+
customer_manager_link_service.customer_manager_link_path(
90+
customer_id,
91+
manager_customer_id,
92+
manager_link_id,
93+
)
9094
)
9195

9296
manager_link.status = client.enums.ManagerLinkStatusEnum.ACTIVE
@@ -108,7 +112,7 @@ def main(client, customer_id, manager_customer_id):
108112
if __name__ == "__main__":
109113
# GoogleAdsClient will read the google-ads.yaml configuration file in the
110114
# home directory if none is specified.
111-
googleads_client = GoogleAdsClient.load_from_storage(version="v14")
115+
googleads_client = GoogleAdsClient.load_from_storage(version="v15")
112116

113117
parser = argparse.ArgumentParser(
114118
description=(

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="v14")
47+
googleads_client = GoogleAdsClient.load_from_storage(version="v15")
4848

4949
try:
5050
main(googleads_client)

examples/account_management/reject_merchant_center_link.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
Shopping to send a link request between your Merchant Center and Google Ads
2323
accounts. You can find detailed instructions to link your Merchant Center and
2424
Google Ads accounts here: https://support.google.com/merchants/answer/6159060.
25+
26+
NOTE: This code example uses version v14 of the Google Ads API. Version v15 of
27+
the Google Ads API replaces MerchantCenterLinkService with
28+
ProductLinkInvitationService and ProductLinkService. We will add new code
29+
examples using these services shortly.
2530
"""
2631

2732
import argparse
@@ -45,8 +50,10 @@ def main(client, customer_id, merchant_center_account_id):
4550
"MerchantCenterLinkService"
4651
)
4752
# Get the extant customer account to Merchant Center account links.
48-
list_merchant_center_links_response = merchant_center_link_service.list_merchant_center_links(
49-
customer_id=customer_id
53+
list_merchant_center_links_response = (
54+
merchant_center_link_service.list_merchant_center_links(
55+
customer_id=customer_id
56+
)
5057
)
5158

5259
number_of_links = len(

0 commit comments

Comments
 (0)