From 80ebb5fc3f09627a4060f80e2b56da12bfce9002 Mon Sep 17 00:00:00 2001 From: Gustav Ernberg von Heijne Date: Thu, 13 Jul 2023 11:47:30 +0200 Subject: [PATCH 1/3] Update get_availability_forecast_for_line_item.py --- .../forecast_service/get_availability_forecast_for_line_item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ad_manager/v202302/forecast_service/get_availability_forecast_for_line_item.py b/examples/ad_manager/v202302/forecast_service/get_availability_forecast_for_line_item.py index 0335a615..9975d79a 100755 --- a/examples/ad_manager/v202302/forecast_service/get_availability_forecast_for_line_item.py +++ b/examples/ad_manager/v202302/forecast_service/get_availability_forecast_for_line_item.py @@ -49,7 +49,7 @@ def main(client, line_item_id): else: available_percent = 0 - contending_line_items = getattr(forecast, 'contentingLineItems', []) + contending_line_items = getattr(forecast, 'contendingLineItems', []) # Display results. print('%s %s matched.' % (matched, forecast['unitType'].lower())) From 97ac5f768feba7118185fb327c2cea3ad0c400be Mon Sep 17 00:00:00 2001 From: Gustav Ernberg von Heijne Date: Thu, 13 Jul 2023 11:47:53 +0200 Subject: [PATCH 2/3] Fix typo --- .../forecast_service/get_availability_forecast_for_line_item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ad_manager/v202305/forecast_service/get_availability_forecast_for_line_item.py b/examples/ad_manager/v202305/forecast_service/get_availability_forecast_for_line_item.py index 4c55fbe1..4c48406e 100755 --- a/examples/ad_manager/v202305/forecast_service/get_availability_forecast_for_line_item.py +++ b/examples/ad_manager/v202305/forecast_service/get_availability_forecast_for_line_item.py @@ -49,7 +49,7 @@ def main(client, line_item_id): else: available_percent = 0 - contending_line_items = getattr(forecast, 'contentingLineItems', []) + contending_line_items = getattr(forecast, 'contendingLineItems', []) # Display results. print('%s %s matched.' % (matched, forecast['unitType'].lower())) From 2c0e236882bb18daf66e85ed667588c52318b65b Mon Sep 17 00:00:00 2001 From: Gustav Ernberg von Heijne Date: Thu, 13 Jul 2023 11:49:27 +0200 Subject: [PATCH 3/3] Fix typo --- .../forecast_service/get_availability_forecast_for_line_item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ad_manager/v202211/forecast_service/get_availability_forecast_for_line_item.py b/examples/ad_manager/v202211/forecast_service/get_availability_forecast_for_line_item.py index 2e967298..fa3dde45 100755 --- a/examples/ad_manager/v202211/forecast_service/get_availability_forecast_for_line_item.py +++ b/examples/ad_manager/v202211/forecast_service/get_availability_forecast_for_line_item.py @@ -49,7 +49,7 @@ def main(client, line_item_id): else: available_percent = 0 - contending_line_items = getattr(forecast, 'contentingLineItems', []) + contending_line_items = getattr(forecast, 'contendingLineItems', []) # Display results. print('%s %s matched.' % (matched, forecast['unitType'].lower()))