Skip to content

: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.

feat(data-warehouse): sync google ads campaign status and impression share fields (#124152)

Javier Bahamondes418c9f293ccf
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/google_ads/canonical_descriptions.py b/products/warehouse_sources/backend/temporal/data_imports/sources/google_ads/canonical_descriptions.py
index beaac6f31fd1..9915fa412da9 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/google_ads/canonical_descriptions.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/google_ads/canonical_descriptions.py
@@ -149,6 +149,8 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {
"campaign_status": "Status of the campaign (enabled, paused, or removed).",
"campaign_labels": "Resource names of labels attached to the campaign.",
"campaign_serving_status": "Whether the campaign is currently able to serve ads.",
+ "campaign_primary_status": "Overall serving state of the campaign (eligible, limited, paused, learning and others), as shown in the Google Ads UI.",
+ "campaign_primary_status_reasons": "Reasons behind the primary status, for example a budget or search volume limit.",
"campaign_advertising_channel_type": "Primary serving target (e.g. search, display, shopping, video).",
"campaign_advertising_channel_sub_type": "More specific serving target within the channel type.",
"campaign_bidding_strategy_type": "Automated or manual bidding strategy in use.",
@@ -188,6 +190,10 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {
"segments_date": "The date the metrics are reported for.",
"metrics_impressions": "Number of impressions.",
"metrics_search_impression_share": "Share of eligible Search Network impressions received. Values below 0.1 are reported as 0.0999.",
+ "metrics_search_top_impression_share": "Share of eligible Search Network impressions shown anywhere above the organic results.",
+ "metrics_search_absolute_top_impression_share": "Share of eligible Search Network impressions shown as the very first ad above the organic results.",
+ "metrics_search_budget_lost_impression_share": "Share of eligible Search Network impressions lost because the budget ran out. Values above 0.9 are reported as 0.9001.",
+ "metrics_search_rank_lost_impression_share": "Share of eligible Search Network impressions lost to low Ad Rank (bid and ad quality). Values above 0.9 are reported as 0.9001.",
"metrics_content_impression_share": "Share of eligible Display Network impressions received. Values below 0.1 are reported as 0.0999.",
},
},
@@ -362,6 +368,7 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {
"metrics_impressions": "Number of impressions.",
"metrics_cost_micros": "Total cost in micros.",
"metrics_conversions": "Number of conversions.",
+ "metrics_absolute_top_impression_percentage": "Fraction of impressions shown as the first ad.",
"segments_date": "The date the metrics are reported for.",
},
},
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/google_ads/schemas.py b/products/warehouse_sources/backend/temporal/data_imports/sources/google_ads/schemas.py
index d4fe8b01dd88..6b3f4d5b99e9 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/google_ads/schemas.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/google_ads/schemas.py
@@ -401,6 +401,8 @@ RESOURCE_SCHEMAS: dict[str, dict[str, Any]] = {
"campaign.name",
"campaign.percent_cpc.enhanced_cpc_enabled",
"campaign.labels",
+ "campaign.primary_status",
+ "campaign.primary_status_reasons",
"campaign.serving_status",
"campaign.start_date_time",
"campaign.status",
@@ -540,6 +542,10 @@ RESOURCE_SCHEMAS: dict[str, dict[str, Any]] = {
"segments.date",
"metrics.impressions",
"metrics.search_impression_share",
+ "metrics.search_top_impression_share",
+ "metrics.search_absolute_top_impression_share",
+ "metrics.search_budget_lost_impression_share",
+ "metrics.search_rank_lost_impression_share",
"metrics.content_impression_share",
],
},
@@ -893,6 +899,7 @@ RESOURCE_SCHEMAS: dict[str, dict[str, Any]] = {
"metrics.impressions",
"metrics.cost_micros",
"metrics.conversions",
+ "metrics.absolute_top_impression_percentage",
"segments.date",
],
},