Connector

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.

YouTubeConnectedChannelChannel dailyDemographics da…Devices daily
Data MartPublishedone definition
AWS RedshiftChann…DayViewsDaily 09:00
Refreshed on a schedule. No exports, no copy-paste.

Get started free

Hand this to your AI

In 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

load YouTube revenue daily and channel daily into AWS Redshift with a daily refresh, and show me estimated revenue per hour watched by month

Endpoints

YouTube Endpoints

Documentation

11 YouTube endpoints you can import. Each lands in its own table in your data warehouse.

S00 · Why

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 data 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
YouTubeRevenue, CPM
Ad platformsPromotion spend
AccountingLedger
Your data warehouseAWS RedshiftYouTubeSpendLedgerJoined by idVideo watchedRevenue bookedOne query shows what an hour of viewing earns.

S01 · Step 1

Step 1: Connect YouTube and pick the fields

Create a Data Mart, choose YouTube as the data 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
New Data MartChoose a sourceGoogle AdsYouTubeQuickBooksAuthorizeConnectedEndpointRevenue dailyChannelChannel dailyDemographics daily
Revenue daily10 fieldsdayestimated_revenueestimated_ad_revenuecpmmonetized_playbacksad_impressions

S02 · Step 2

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 data 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
DestinationAWS RedshiftSchemayoutubeTablerevenue_dailyRun
Run HistoryPendingRunningSuccessIncremental load
Tableyoutube.revenue_daily

S03 · Step 3

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

S04 · Step 4

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 data model.

  • Revenue and watch time join on channel_id and day
  • Add promotion spend and the ledger to the same model
Channelchannel_idtitle
Revenue dailychannel_iddayestimated_revenue
Channel dailychannel_iddayestimated_minute…

S05 · Step 5

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
ScheduleRun on a scheduleDaily 09:00
BackfillRun backfill
Run HistoryDaily scheduleManual backfillDaily schedule

S06 · Step 6

Step 6: Reuse the same YouTube table everywhere

One table feeds your data model, spreadsheets, dashboards, AI assistants and scheduled insights in Slack or email.

  • Define revenue per hour watched once
  • Every report reads the same table
YouTubeData MartPublished
Your data model
Google Sheets
Data Studio dashboards
Claude, ChatGPT
Slack, email

Recent updates

Why OWOX

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.

Book a callGet started free

Trust

The Data Partner You Can Trust

users

166K Source: Internal OWOX data as of 2026-11-15

Executives and data analysts across 20+ industries

G2 rating

4.9★2

“A trusted data analytics partner” — verified review

npm installs

171K3

In Open Source We Trust

Customers