:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(google-ads): clarify MCC customer-not-accessible error (#81054)
Tom Owers885282476ff0
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/google_ads/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/google_ads/source.pyindex b25c125e0b9b..92d2e7e4d713 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/google_ads/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/google_ads/source.py@@ -417,7 +417,9 @@ class GoogleAdsSource(if "CUSTOMER_NOT_FOUND" in error_message or "USER_PERMISSION_DENIED" in error_message:return (False,- f"Customer ID {config.customer_id} is not accessible. Please verify your customer ID and manager account settings.",+ f"Customer ID {config.customer_id} isn't accessible through the connected manager "+ "(MCC) account. Check that the customer ID is correct, that the manager customer ID "+ "you entered is right, and that this account is linked under that manager, then try again.",)raisediff --git a/products/warehouse_sources/backend/temporal/data_imports/tests/e2e/test_google_ads_source.py b/products/warehouse_sources/backend/temporal/data_imports/tests/e2e/test_google_ads_source.pyindex b6390102e4a3..7b19ae270eb6 100644--- a/products/warehouse_sources/backend/temporal/data_imports/tests/e2e/test_google_ads_source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/tests/e2e/test_google_ads_source.py@@ -543,7 +543,7 @@ class TestGoogleAdsSourceValidation:assert is_valid is Falseassert error is not None- assert "is not accessible" in error+ assert "linked under that manager" in error@mock.patch("products.warehouse_sources.backend.temporal.data_imports.sources.google_ads.google_ads.google_ads_client"@@ -563,7 +563,7 @@ class TestGoogleAdsSourceValidation:assert is_valid is Falseassert error is not None- assert "is not accessible" in error+ assert "linked under that manager" in errorclass TestGoogleAdsClientStaleConnection: