From 5350e747c36a8dc24d5698810137317f81a5ba11 Mon Sep 17 00:00:00 2001 From: Andrei Markin Date: Tue, 10 Mar 2026 12:53:37 +0400 Subject: [PATCH] fix(ads): count only unique account during mcc expansion --- .../google/ads/garf/community/google/ads/report_fetcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/community/google/ads/garf/community/google/ads/report_fetcher.py b/libs/community/google/ads/garf/community/google/ads/report_fetcher.py index 2eb28b4..da068c6 100644 --- a/libs/community/google/ads/garf/community/google/ads/report_fetcher.py +++ b/libs/community/google/ads/garf/community/google/ads/report_fetcher.py @@ -198,10 +198,10 @@ def expand_mcc( raise GoogleAdsApiReportFetcherError( f'No accounts found satisfying the follow query: {customer_ids_query}' ) - child_customer_ids = [ + child_customer_ids = { row[0] if isinstance(row, garf.core.report.GarfRow) else row for row in child_customer_ids - ] + } span.set_attribute( 'accounts.child_accounts_conditioned', len(child_customer_ids) )