Skip to content

suse_microsoft_adlevel_staging_v2

Full reference: paidteam-data-warehouse.customer_ads_suse.suse_microsoft_adlevel_staging_v2Type: Staging | Rows: 19,097 | Size: 8.6 MB

Microsoft Ads ad-level staging data (V2). Dataslayer writes a rolling ~60-day window of ad-level performance data into this table daily. The scheduled refresh script reads from here to update the final table.

Schema

ColumnTypeNullableDescription
DateDATENoDate of ad performance
AccountNameSTRINGYesMicrosoft Ads account name
CampaignIDSTRINGYesMicrosoft Ads campaign ID
AdGroupIDSTRINGYesMicrosoft Ads ad group ID
AdIDSTRINGYesMicrosoft Ads ad ID
CampaignNameSTRINGYesCampaign name
AdGroupNameSTRINGYesAd group name
AdTitleSTRINGYesAd headline / title
CampaignTypeSTRINGYesCampaign type (Search, Audience, etc.)
FinalUrlSTRINGYesFinal destination URL
ImpressionsINTEGERYesNumber of impressions
ClicksINTEGERYesNumber of clicks
CTRFLOATYesClick-through rate
CPCFLOATYesCost per click
CostFLOATYesTotal cost
ConversionsINTEGERYesNumber of conversions
ViewThroughConversionsINTEGERYesView-through conversions
ConversionsRateFLOATYesConversion rate
VideoViewsINTEGERYesNumber of video views
VideoViewsRateINTEGERYesVideo views rate
VideoViews25PercentINTEGERYesVideo watched to 25%
VideoViews50PercentINTEGERYesVideo watched to 50%
VideoViews75PercentINTEGERYesVideo watched to 75%
VideoViews100PercentINTEGERYesVideo watched to 100%
AverageWatchTimeVideoINTEGERYesAverage video watch time (seconds)

Partitioning & Clustering

  • Partitioned by: Date (DAY)
  • Partitions: 60
  • Clustering: None

Refresh Logic

This is a staging table. Dataslayer overwrites data here on a daily schedule. The refresh script reads from this table and upserts into suse_microsoft_adlevel_final_v2.

Primary keys used for refresh: Date, CampaignID, AdGroupID, AdID

Sample Query

sql
SELECT
  Date,
  AccountName,
  CampaignName,
  AdGroupName,
  AdTitle,
  Impressions,
  Clicks,
  Cost
FROM `paidteam-data-warehouse.customer_ads_suse.suse_microsoft_adlevel_staging_v2`
WHERE Date >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
ORDER BY Date DESC, Impressions DESC
LIMIT 100;

Notes

  • Microsoft uses CampaignName / AdGroupName / AdTitle naming (contrast with Google's Campaign / Adgroup / Adname).
  • Microsoft uses AdGroupID (capital G) whereas Google uses AdgroupID (lowercase g). These casing differences must be accounted for in any cross-platform views.
  • VideoViewsRate is currently INTEGER in this staging table. This may need to be changed to FLOAT64 if Microsoft starts returning decimal values.
  • The AccountName column is unique to Microsoft; other platforms do not include account-level identifiers.

SUSE Paid Advertising Data Warehouse V2