Changes for release v15_0. · googleads/google-ads-python@310a10b · GitHub
Skip to content

Commit 310a10b

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

1,522 files changed

Lines changed: 232523 additions & 525 deletions

File tree

Some content is hidden

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

‎ChangeLog‎

Lines changed: 9 additions & 0 deletions

‎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

0 commit comments

Comments
 (0)