Can't find reportTypeId or Job which have "Youtube Red Partner Revenue Report" and "Paid features Report" in Youtube reporting API
Im recently developing system for creator's revenue report.
As i know My company(Contents Owner, MCN) have 3 kinds of revenue source from youtube which is
- Ads Partner Revenue
- YouTube Red Partner Revenue (Youtube Premium)
- Paid Features (Superchat)
So i looked up to APIs and found reporting API that supports System managed reports for contents owners! but i can not find revenue report of 2) YouTube Red Partner Revenue 3) Paid Features (Superchat)
list below are system managed reportTypes that i find in API (All reports are systemManaged)
- "id": "content_owner_ad_revenue_raw_a1","name": "Monthly video ad revenue"
- "id": "content_owner_ad_revenue_summary_a1", "name": "Monthly video ad revenue summary"
- "id": "content_owner_asset_ad_revenue_raw_a1", "name": "Monthly asset ad revenue"
- "id": "content_owner_asset_ad_revenue_summary_a1", "name": "Monthly asset ad revenue summary"
- "id": "content_owner_claim_ad_revenue_summary_a1", "name": "Monthly claim ad revenue"
so i retrieved/created reports and sum it.
But i found that {}_ad_revenue_{} kinds of reports only have 1) Ads Partner Revenue data.
where can i find Youtube Red(Premium) and Superchat revenue data from Youtube reporting api?
I have Oauth tokens of scopes
- "https://www.googleapis.com/auth/yt-analytics.readonly"
- "https://www.googleapis.com/auth/youtube.force-ssl"
- "https://www.googleapis.com/auth/youtubepartner"
- "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"
import google.oauth2.credentials
from googleapiclient.discovery import build
from googleapiclient.http import HttpError
if __name__ == "__main__":
yt_credentials = google.oauth2.credentials.Credentials.from_authorized_user_info(YOUTUBE_AUTH_TOKEN)
yt_service = build(YOUTUBE_SERVICE_NAME, YOUTUBE_API_VER, credentials=yt_credentials)
results = yt_service.reportTypes().list(includeSystemManaged=True,
onBehalfOfContentOwner='MY Content Owner Id').execute()
print(json.dumps(results, indent=4, sort_keys=True))