From 246bbce620d25583e31890d77e291762d34026a3 Mon Sep 17 00:00:00 2001 From: rachitm022 Date: Wed, 23 Jul 2025 20:17:56 +0530 Subject: [PATCH 1/2] feat: add search defaults --- defaults/docs-defaults.yaml | 14 +++++++++++ docs/snippets/defaults_ad_platform.mdx | 3 +++ docs/snippets/defaults_channel_mapping.mdx | 27 +++++++++++++++------- scope3_methodology/test/test_api.py | 2 +- 4 files changed, 37 insertions(+), 9 deletions(-) diff --git a/defaults/docs-defaults.yaml b/defaults/docs-defaults.yaml index 295899d4..ae835a24 100644 --- a/defaults/docs-defaults.yaml +++ b/defaults/docs-defaults.yaml @@ -8,6 +8,7 @@ defaults: tv: 160 default_average_data_kb_per_session_seconds_excluding_ads_by_channel: app: 29.500000000 + search: 1.011000000 social: 38 web: 1.011000000 default_average_seconds_per_session_excluding_ads_by_channel: @@ -15,6 +16,7 @@ defaults: audio: 1500 ctv-bvod: 2580 linear-tv: 2580 + search: 120 social: 240 streaming-video: 300 web: 320 @@ -27,6 +29,7 @@ defaults: - social - audio - web + - search - streaming-video - linear-tv phone: @@ -35,6 +38,7 @@ defaults: - audio - app - web + - search - streaming-video - linear-tv smart-speaker: @@ -45,6 +49,7 @@ defaults: - audio - app - web + - search - streaming-video - linear-tv tv: @@ -56,6 +61,7 @@ defaults: audio: 1000 ctv-bvod: 0 dooh: 0 + search: 150 social: 1000 streaming-video: 1000 web: 1500 @@ -65,6 +71,7 @@ defaults: ctv-bvod: tv dooh: tv linear-tv: tv + search: phone social: phone streaming-video: pc web: pc @@ -112,6 +119,8 @@ defaults: default_dynamic_watts_per_mbps: fixed: 0.030000000 mobile: 1.530000000 + default_emissions_ad_selection_gco2_per_imp_by_channel: + search: 0.001229300 default_emissions_generic_ad_server_gco2_per_imp: 0.000016000 default_emissions_generic_ad_server_gco2_per_imp_by_channel: social: 0.004300000 @@ -289,6 +298,7 @@ defaults: ctv-bvod: 15s Video dooh: Landscape - 1920x1080 Image linear-tv: 30s Video + search: Sponsored Search Listing social: Sponsored Post - 1080x1920 Image streaming-video: 15s Video web: Leaderboard - 728x90 Banner @@ -298,6 +308,7 @@ defaults: ctv-bvod: 15s-video-ctv-bvod-tv dooh: landscape-dooh linear-tv: 30s-video-ctv-bvod-tv + search: sponsored-listing-search-phone social: 1080-1920-sponsored-post-social-phone streaming-video: 15s-video-streaming-video-pc web: leaderboard-web-pc @@ -307,6 +318,7 @@ defaults: ctv-bvod: 100 dooh: 100 linear-tv: 100 + search: 100 social: 100 streaming-video: 100 web: 100 @@ -315,6 +327,7 @@ defaults: audio: 4.800000000 ctv-bvod: 8.256000000 linear-tv: 21.500000000 + search: 12 social: 24 streaming-video: 1 web: 32 @@ -323,6 +336,7 @@ defaults: audio: 0.049000000 ctv-bvod: 0.280000000 dooh: 0.049000000 + search: 0.049000000 social: 0.150000000 streaming-video: 0.049000000 web: 0.049000000 diff --git a/docs/snippets/defaults_ad_platform.mdx b/docs/snippets/defaults_ad_platform.mdx index fc058dff..e0bc243a 100644 --- a/docs/snippets/defaults_ad_platform.mdx +++ b/docs/snippets/defaults_ad_platform.mdx @@ -7,6 +7,7 @@ default_consumer_device_request_size_bytes: audio: 1000 social: 1000 streaming-video: 1000 + search: 150 default_emissions_per_creative_request_gco2_per_imp: 0.0003 default_emissions_per_bid_request_gco2_per_imp: 0.11442 @@ -14,6 +15,8 @@ default_emissions_per_rtdp_request_gco2_per_imp: 0.01 default_emissions_generic_ad_server_gco2_per_imp: 0.000016 default_emissions_generic_ad_server_gco2_per_imp_by_channel: social: 0.0043 +default_emissions_ad_selection_gco2_per_imp_by_channel: + search: 0.0012293 generic_creative_ad_server: emissions_per_creative_request_per_geo_gco2_per_imp: diff --git a/docs/snippets/defaults_channel_mapping.mdx b/docs/snippets/defaults_channel_mapping.mdx index e9a8d022..cc97e4b7 100644 --- a/docs/snippets/defaults_channel_mapping.mdx +++ b/docs/snippets/defaults_channel_mapping.mdx @@ -6,6 +6,7 @@ default_channel_by_device: - audio - app - web + - search - streaming-video - linear-tv tablet: @@ -14,6 +15,7 @@ default_channel_by_device: - audio - app - web + - search - streaming-video - linear-tv pc: @@ -21,6 +23,7 @@ default_channel_by_device: - social - audio - web + - search - streaming-video - linear-tv tv: @@ -30,14 +33,15 @@ default_channel_by_device: smart-speaker: - audio default_device_by_channel: - social: phone - ctv-bvod: tv + social: phone + ctv-bvod: tv streaming-video: pc - audio: phone - app: phone - web: pc - dooh: tv - linear-tv: tv + audio: phone + app: phone + web: pc + dooh: tv + linear-tv: tv + search: phone default_platform_ad_format_identifier_by_channel: dooh: landscape-dooh social: 1080-1920-sponsored-post-social-phone @@ -46,7 +50,8 @@ default_platform_ad_format_identifier_by_channel: audio: 30s-audio-digital-audio-phone app: interstitial-app-phone web: leaderboard-web-pc - linear-tv: 30s-video-ctv-bvod-tv + linear-tv: 30s-video-ctv-bvod-tv + search: sponsored-listing-search-phone default_platform_ad_format_by_channel: dooh: Landscape - 1920x1080 Image social: Sponsored Post - 1080x1920 Image @@ -56,6 +61,7 @@ default_platform_ad_format_by_channel: app: Interstitial - 1080x1920 Banner web: Leaderboard - 728x90 Banner linear-tv: 30s Video + search: Sponsored Search Listing default_property_average_imps_per_session_by_channel: social: 24 ctv-bvod: 8.256 @@ -64,6 +70,7 @@ default_property_average_imps_per_session_by_channel: app: 14 web: 32 linear-tv: 21.5 + search: 12 default_property_ad_funded_percentage_by_channel: dooh: 100 social: 100 @@ -73,6 +80,7 @@ default_property_ad_funded_percentage_by_channel: app: 100 web: 100 linear-tv: 100 + search: 100 default_average_seconds_per_session_excluding_ads_by_channel: social: 240 ctv-bvod: 2580 @@ -81,10 +89,12 @@ default_average_seconds_per_session_excluding_ads_by_channel: app: 140 web: 320 linear-tv: 2580 + search: 120 default_average_data_kb_per_session_seconds_excluding_ads_by_channel: social: 38 app: 29.5 web: 1.011 + search: 1.011 default_property_g_per_imp_by_channel: dooh: 0.049 social: 0.15 @@ -93,4 +103,5 @@ default_property_g_per_imp_by_channel: audio: 0.049 app: 0.049 web: 0.049 + search: 0.049 ``` diff --git a/scope3_methodology/test/test_api.py b/scope3_methodology/test/test_api.py index 3ab04496..e1c25f3d 100644 --- a/scope3_methodology/test/test_api.py +++ b/scope3_methodology/test/test_api.py @@ -240,7 +240,7 @@ def test_startup(self): ) docs_defs = docs_defaults - self.assertEqual(len(docs_defs), 44) + self.assertEqual(len(docs_defs), 45) def test_get_all_con_networking_connection_device_fixed_defaults(self): """Test get_all_networking_connection_device_defaults returns expected output""" From 716e1ba80172474c8e28aa610286447e75617d34 Mon Sep 17 00:00:00 2001 From: rachitm022 Date: Fri, 25 Jul 2025 17:25:56 +0530 Subject: [PATCH 2/2] update ad format --- defaults/docs-defaults.yaml | 4 ++-- docs/snippets/defaults_channel_mapping.mdx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/defaults/docs-defaults.yaml b/defaults/docs-defaults.yaml index ae835a24..637385b2 100644 --- a/defaults/docs-defaults.yaml +++ b/defaults/docs-defaults.yaml @@ -298,7 +298,7 @@ defaults: ctv-bvod: 15s Video dooh: Landscape - 1920x1080 Image linear-tv: 30s Video - search: Sponsored Search Listing + search: Responsive Search Ad social: Sponsored Post - 1080x1920 Image streaming-video: 15s Video web: Leaderboard - 728x90 Banner @@ -308,7 +308,7 @@ defaults: ctv-bvod: 15s-video-ctv-bvod-tv dooh: landscape-dooh linear-tv: 30s-video-ctv-bvod-tv - search: sponsored-listing-search-phone + search: responsive-search-ad-search-phone social: 1080-1920-sponsored-post-social-phone streaming-video: 15s-video-streaming-video-pc web: leaderboard-web-pc diff --git a/docs/snippets/defaults_channel_mapping.mdx b/docs/snippets/defaults_channel_mapping.mdx index cc97e4b7..2db12b75 100644 --- a/docs/snippets/defaults_channel_mapping.mdx +++ b/docs/snippets/defaults_channel_mapping.mdx @@ -51,7 +51,7 @@ default_platform_ad_format_identifier_by_channel: app: interstitial-app-phone web: leaderboard-web-pc linear-tv: 30s-video-ctv-bvod-tv - search: sponsored-listing-search-phone + search: responsive-search-ad-search-phone default_platform_ad_format_by_channel: dooh: Landscape - 1920x1080 Image social: Sponsored Post - 1080x1920 Image @@ -61,7 +61,7 @@ default_platform_ad_format_by_channel: app: Interstitial - 1080x1920 Banner web: Leaderboard - 728x90 Banner linear-tv: 30s Video - search: Sponsored Search Listing + search: Responsive Search Ad default_property_average_imps_per_session_by_channel: social: 24 ctv-bvod: 8.256