Skip to content

Commit

Permalink
Changes for release v16_1. (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenRKarl authored Apr 25, 2024
1 parent 4e923a8 commit 437d614
Show file tree
Hide file tree
Showing 2,855 changed files with 2,438 additions and 225,164 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
* 24.0.0
- Google Ads API v16_1 release.
- Remove support for Google Ads API v14.
- Remove the following obsolete examples:
- account_management/approve_merchant_center_link.py
- account_management/reject_merchant_center_link.py
- remarketing/add_flights_feed.py
- remarketing/add_real_estate_feed.py
- Added example account_management/verify_advertiser_identity.py.
- Update example remarketing/upload_conversion_adjustment.py to use order ID.
- Update all examples to initialize client after CLI argument validation.

* 23.1.0
- Google Ads API v16 release.
- Use native `open` function to load README in setup.py.
Expand Down
170 changes: 0 additions & 170 deletions examples/account_management/approve_merchant_center_link.py

This file was deleted.

8 changes: 4 additions & 4 deletions examples/account_management/create_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ def main(client, manager_customer_id):


if __name__ == "__main__":
# GoogleAdsClient will read the google-ads.yaml configuration file in the
# home directory if none is specified.
googleads_client = GoogleAdsClient.load_from_storage(version="v16")

parser = argparse.ArgumentParser(
description=("Creates a new client under the given manager.")
)
Expand All @@ -75,6 +71,10 @@ def main(client, manager_customer_id):
)
args = parser.parse_args()

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

try:
main(googleads_client, args.manager_customer_id)
except GoogleAdsException as ex:
Expand Down
8 changes: 4 additions & 4 deletions examples/account_management/get_account_hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ def print_account_hierarchy(


if __name__ == "__main__":
# GoogleAdsClient will read the google-ads.yaml configuration file in the
# home directory if none is specified.
googleads_client = GoogleAdsClient.load_from_storage(version="v16")

parser = argparse.ArgumentParser(
description="This example gets the account hierarchy of the specified "
"manager account and login customer ID."
Expand All @@ -198,6 +194,10 @@ def print_account_hierarchy(
"authenticated Google Ads account.",
)
args = parser.parse_args()

# GoogleAdsClient will read the google-ads.yaml configuration file in the
# home directory if none is specified.
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
try:
main(googleads_client, args.login_customer_id)
except GoogleAdsException as ex:
Expand Down
8 changes: 4 additions & 4 deletions examples/account_management/get_change_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,6 @@ def main(client, customer_id):


if __name__ == "__main__":
# GoogleAdsClient will read the google-ads.yaml configuration file in the
# home directory if none is specified.
googleads_client = GoogleAdsClient.load_from_storage(version="v16")

parser = argparse.ArgumentParser(
description="This example gets specific details about the most recent "
"changes in the given account."
Expand All @@ -201,6 +197,10 @@ def main(client, customer_id):
help="The Google Ads customer ID.",
)
args = parser.parse_args()

# GoogleAdsClient will read the google-ads.yaml configuration file in the
# home directory if none is specified.
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
try:
main(googleads_client, args.customer_id)
except GoogleAdsException as ex:
Expand Down
7 changes: 4 additions & 3 deletions examples/account_management/get_change_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ def main(client, customer_id):

if __name__ == "__main__":
# GoogleAdsClient will read a google-ads.yaml configuration file in the
# home directory if none is specified.
googleads_client = GoogleAdsClient.load_from_storage(version="v16")

parser = argparse.ArgumentParser(
description=(
"Displays account changes that occurred in the last 7 days."
Expand All @@ -102,6 +99,10 @@ def main(client, customer_id):
)
args = parser.parse_args()

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

try:
main(googleads_client, args.customer_id)
except GoogleAdsException as ex:
Expand Down
8 changes: 4 additions & 4 deletions examples/account_management/invite_user_with_access_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ def main(client, customer_id, email_address, access_role):


if __name__ == "__main__":
# GoogleAdsClient will read the google-ads.yaml configuration file in the
# home directory if none is specified.
googleads_client = GoogleAdsClient.load_from_storage(version="v16")

parser = argparse.ArgumentParser(
description=(
"Sends an invitation email to a user to manage a customer "
Expand Down Expand Up @@ -92,6 +88,10 @@ def main(client, customer_id, email_address, access_role):
)
args = parser.parse_args()

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

try:
main(
googleads_client,
Expand Down
8 changes: 4 additions & 4 deletions examples/account_management/link_manager_to_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ def main(client, customer_id, manager_customer_id):


if __name__ == "__main__":
# GoogleAdsClient will read the google-ads.yaml configuration file in the
# home directory if none is specified.
googleads_client = GoogleAdsClient.load_from_storage(version="v16")

parser = argparse.ArgumentParser(
description=(
"Links an existing manager customer to an existing"
Expand All @@ -132,6 +128,10 @@ def main(client, customer_id, manager_customer_id):
help="The manager customer ID.",
)
args = parser.parse_args()

# GoogleAdsClient will read the google-ads.yaml configuration file in the
# home directory if none is specified.
googleads_client = GoogleAdsClient.load_from_storage(version="v16")
try:
main(googleads_client, args.customer_id, args.manager_customer_id)
except GoogleAdsException as ex:
Expand Down
Loading

0 comments on commit 437d614

Please sign in to comment.