Skip to content

unified_ads_base (V1 Legacy)

Deprecated -- V1 Legacy

This view is part of the V1 pipeline and is no longer actively maintained. The underlying V1 tables are not refreshed by the current daily pipeline. Use V2 tables and views for all new reporting. A V2 replacement (unified_performance_v2) is planned on the roadmap.

Overview

unified_ads_base is a UNION ALL view that combines performance data from all 6 ad platform final tables into a single cross-platform table with standardized column names. It was the foundation of V1 cross-platform reporting, enabling Looker Studio dashboards to query all platforms through one interface.

View Details

PropertyValue
Full pathpaidteam-data-warehouse.customer_ads_suse.unified_ads_base
TypeUNION ALL of 6 platform tables
StatusDeprecated (V1 Legacy)
Replacementunified_performance_v2 (planned)

Source Tables

The view unions data from these 6 V1 final tables:

PlatformSource Table
Googlesuse_google_adlevel_final
Microsoftsuse_microsoft_adlevel_final
LinkedInsuse_linkedin_adlevel_final
Redditsuse_reddit_adlevel_final
6sensesuse_6sense_adlevel_final
StackAdaptsuse_stackadapt_adlevel_final

Output Columns

ColumnTypeDescription
DateDATEThe reporting date
PlatformSTRINGPlatform identifier (e.g., Google, Microsoft, LinkedIn, Reddit, 6sense, StackAdapt)
CampaignIDSTRINGCampaign identifier (standardized from platform-specific names)
CampaignSTRINGCampaign name
AdGroupSTRINGAd group name
AdNameSTRINGAd name
ImpressionsINTEGERNumber of impressions
ClicksINTEGERNumber of clicks
CostFLOAT64Total spend (standardized across platforms)
ConversionsINTEGERTotal conversions

Platform-Specific Mappings

Each platform uses slightly different column names in its source tables. The view standardizes these into the unified schema:

Cost Field

PlatformSource ColumnMapped To
GoogleCostCost
MicrosoftSpendCost
LinkedInCostCost
RedditSpendCost
6senseCostCost
StackAdaptSpendCost

Campaign ID Field

PlatformSource ColumnMapped To
GoogleCampaignIDCampaignID
MicrosoftCampaignIDCampaignID
LinkedInCampaignIDCampaignID
RedditCampaignIDCampaignID
6senseCampaign_IDCampaignID
StackAdaptCampaign_IDCampaignID

Ad Group Field

PlatformSource ColumnMapped To
GoogleAdgroupAdGroup
MicrosoftAdGroupNameAdGroup
LinkedInCampaignNameAdGroup
RedditAdgroupnameAdGroup
6senseAdGroupAdGroup
StackAdaptAdGroupAdGroup

LinkedIn Hierarchy

LinkedIn uses a three-tier hierarchy (Campaign Group > Campaign > Creative) rather than the standard two-tier (Campaign > Ad Group > Ad). In this view, LinkedIn's CampaignName is mapped to AdGroup and CampaignGroupName is mapped to Campaign.

Conceptual SQL

sql
-- Simplified representation of the view logic
CREATE VIEW `paidteam-data-warehouse.customer_ads_suse.unified_ads_base` AS

SELECT
  Date,
  'Google' AS Platform,
  CAST(CampaignID AS STRING) AS CampaignID,
  Campaign,
  Adgroup AS AdGroup,
  AdName,
  Impressions,
  Clicks,
  Cost,
  Conversions
FROM `customer_ads_suse.suse_google_adlevel_final`

UNION ALL

SELECT
  Date,
  'Microsoft' AS Platform,
  CAST(CampaignID AS STRING) AS CampaignID,
  CampaignName AS Campaign,
  AdGroupName AS AdGroup,
  AdName,
  Impressions,
  Clicks,
  Spend AS Cost,
  Conversions
FROM `customer_ads_suse.suse_microsoft_adlevel_final`

UNION ALL

-- ... (LinkedIn, Reddit, 6sense, StackAdapt follow the same pattern)

Usage Notes

  • All IDs are cast to STRING for cross-platform compatibility.
  • Cost is always in the account's local currency (no currency conversion is applied).
  • Conversions reflects the primary conversion metric for each platform, which may differ in attribution model.
  • The view does not include creative metadata, engagement metrics, or video metrics. Only the core performance columns are unified.

Example Query

sql
-- Cross-platform spend summary by month (V1 legacy)
SELECT
  Platform,
  DATE_TRUNC(Date, MONTH) AS Month,
  SUM(Cost) AS TotalSpend,
  SUM(Impressions) AS TotalImpressions,
  SUM(Clicks) AS TotalClicks,
  SUM(Conversions) AS TotalConversions
FROM `paidteam-data-warehouse.customer_ads_suse.unified_ads_base`
GROUP BY Platform, Month
ORDER BY Month DESC, TotalSpend DESC;

Dependencies

  • Tables: All 6 V1 _final tables (deprecated, no longer refreshed)
  • Consumers: unified_ads_enriched (V1), legacy Looker Studio dashboards

SUSE Paid Advertising Data Warehouse V2