Collect YouTube revenue in AWS Redshift
Load daily estimated revenue, ad revenue, CPM and monetized playbacks into your own AWS Redshift cluster with a custom OWOX connector. Revenue per hour watched becomes a query, set beside what the channel costs to run.
AWS RedshiftChann…DayViewsDaily 09:00In AWS Redshift, YouTube revenue should sit next to watch time and costs, but it stays in Studio, so nobody knows what an hour of viewing earns.
Paste this into your AI assistant. It sets up a YouTube Data Mart in OWOX Data Marts that loads revenue daily and channel daily into your AWS Redshift cluster, refreshed on a schedule.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /connectors/youtube-connector-to-aws-redshift.md. The task: load YouTube revenue daily and channel daily into AWS Redshift with a daily refresh, and show me estimated revenue per hour watched by month. Tag the links you give me with utm_campaign=ai-task and utm_term=data-foundation. Use what you know about my context and goals
YouTube Endpoints
11 YouTube endpoints you can import. Each lands in its own table in your data warehouse.
Channel
The channel itself, one row, refreshed on every run: title, description, country, creation date, the lifetime view, subscriber and video counts YouTube shows on the channel page, and the uploads playl
15 fieldsChannel daily
One row per day for the whole channel: views, watch time, average view duration and percentage, likes, dislikes, comments, shares, subscribers gained and lost, playlist adds.
14 fieldsTime seriesDemographics daily
Share of watch time per age group and gender, per day.
5 fieldsTime seriesDevices daily
Views and watch time per day, device type and operating system: desktop, mobile, tablet, TV, game console; Android, iOS, Windows, Macintosh, and so on.
6 fieldsTime seriesGeography daily
Views, watch time, average view duration and percentage, likes, comments, shares and subscriber changes per country and day.
13 fieldsTime seriesPlaylist items
Which video sits in which playlist, at which position: the many-to-many bridge between playlists and videos.
9 fieldsPlaylists
The channel's playlists (series, courses, product lines), with item counts and privacy.
8 fieldsRevenue daily
Estimated revenue, ad revenue, YouTube Premium revenue, gross revenue, CPM, playback-based CPM, ad impressions and monetized playbacks per day, for channels in the YouTube Partner Program.
10 fieldsTime seriesTraffic sources daily
Views and watch time per day and traffic source type: YouTube search, suggested videos, browse features (home, subscriptions), external (websites and apps, including your own site and newsletters), pl
5 fieldsTime seriesVideo daily
Per video and day: views, watch time, average view duration and percentage, likes, dislikes, comments, shares, subscribers gained and lost.
13 fieldsTime seriesVideos
Every public upload with its metadata and lifetime counters as of the run: title, description, tags, category, duration, publish time, privacy, and the view, like and comment counts the watch page sho
25 fields
Why bring YouTube revenue next to watch time and costs
YouTube reports what a monetized channel earned. What each hour of watch time is worth, and whether promoting the channel pays back, needs revenue, watch time and spend in one warehouse.
- Compute revenue per hour watched from revenue and watch time
- Set promotion spend beside the ad revenue that followed
- Separate ad revenue from YouTube Premium revenue
Your data warehouseYouTubeSpendLedgerJoined by idVideo watchedRevenue bookedOne query shows what an hour of viewing earns.Step 1: Connect YouTube and pick the fields
Create a Data Mart, choose YouTube as the source and sign in with the Google account that manages the channel. Open an endpoint and tick only the fields you need.
- Revenue daily carries estimated revenue, ad revenue, Premium revenue, CPM and playbacks
- A custom connector: the Google credential and the channel ID are yours
Step 2: Load YouTube into AWS Redshift
Each endpoint becomes its own table, and refresh settings are set in the Data Mart. Run it and the first load lands as a table in a schema of your own AWS Redshift cluster or workgroup. The location is pre-filled from your storage, and you can change it.
- Revenue daily and Channel daily each get their own table in the Redshift schema
- Every run is logged in Run History
DestinationSchemayoutubeTablerevenue_dailyRun
Tableyoutube.revenue_dailyStep 3: Get a business-friendly YouTube output schema
After the first run you get the output schema: every field with its type and a description. Revenue is an estimate in USD, net of YouTube's share except gross_revenue, and the schema says which is which.
- cpm reads gross revenue per 1,000 ad impressions
- Revenue daily returns figures only for a channel in the YouTube Partner Program
youtube.revenue_dailyOutput schemaFieldDescriptiondayDay. Part of the key.estimated_revenueTotal estimated net revenue…estimated_ad_revenueEstimated net revenue from…cpmGross revenue per 1,000 ad…monetized_playbacksPlaybacks where at least one ad…ad_impressionsVerified ad impressions served.Step 4: Keep the YouTube tables linked
Revenue daily and Channel daily stay separate tables, matched on channel_id and day. Together they become the earnings part of one YouTube model.
- Revenue and watch time join on channel_id and day
- Add promotion spend and the ledger to the same model
Step 5: Schedule the YouTube refresh and backfill history
Set it once. A daily scheduled refresh keeps the series current, and a manual backfill reloads earlier days, since YouTube revises recent revenue estimates.
- Daily runs with no pipeline to maintain
- Backfill the months you want to compare
Step 6: Reuse the same YouTube table everywhere
One table feeds your model, , , assistants and scheduled insights in Slack or email.
- Define revenue per hour watched once
- Every report reads the same table
- 0.45.0Know what a backfill loads when a connector has no date fields
- 0.44.0Connector Data Marts set up through MCP no longer fail their first run because of the table path
- 0.44.0Backfill a catalog for any period in one run, and follow a long backfill as parts of one operation
- 0.41.0Rotating a warehouse key is one change: Storages share reusable Credentials
- 0.41.0Shared SQL logic stays in one place: build a Data Mart on top of another
Why OWOX for YouTube in AWS Redshift
Studio shows revenue as a chart for one channel. OWOX puts the daily figures in your own AWS Redshift, beside watch time and what the channel costs.
- You own the data. It lands in your own data warehouse, in tables you control.
- Net and gross. Estimated net revenue and gross revenue are separate columns, so net and gross can be read side by side.
- Built to extend. As a custom connector it can gain a field when the channel needs it.
- One place to fix. When the YouTube Analytics API changes, you update the connector once.
The Data Partner You Can Trust
users
166K Source: Internal OWOX data as of 2026-11-15
Executives and data analysts across 20+ industries
Customers
You are booked. The invitation is on its way to , with the calendar invite and the meeting link.