- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- SearchAttributes
- SearchBrand
- YouTubeChannels
- YouTubeCreatorInsights
- YouTubeChannelInsights
- YouTubeMetrics
- Try it!
Returns insights for a collection of YouTube Creators and Channels.
List of thrown errors: AuthenticationError AuthorizationError FieldError HeaderError InternalError QuotaError RangeError RequestError
HTTP request
POST https://googleads.googleapis.com/v19/customers/{customerId}:generateCreatorInsights
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
customerId |
Required. The ID of the customer. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "customerInsightsGroup": string, "countryLocations": [ { object ( |
Fields | |
---|---|
customerInsightsGroup |
Required. The name of the customer being planned for. This is a user-defined value. |
countryLocations[] |
Required. The countries to search that apply to the criteria. |
Union field criteria . A criteria used to search for creators and creator insights. criteria can be only one of the following: |
|
searchAttributes |
The attributes used to identify top creators. Data fetched is based on the list of countries specified in [countryLocations]. |
searchBrand |
A brand used to search for top creators. Data fetched is based on the list of countries specified in [countryLocations]. |
searchChannels |
YouTube Channel IDs for Creator Insights. Data fetched for channels is based on the list of countries specified in [countryLocations]. |
Response body
Response message for ContentCreatorInsightsService.GenerateCreatorInsights
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"creatorInsights": [
{
object ( |
Fields | |
---|---|
creatorInsights[] |
A collection of YouTube Creators, each containing a collection of YouTube Channels maintained by the YouTube Creator. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adwords
For more information, see the OAuth 2.0 Overview.
SearchAttributes
The audience attributes (such as Age, Gender, Affinity, and In-Market) and creator attributes (such as creator's content topics) used to search for top creators.
JSON representation |
---|
{ "audienceAttributes": [ { object ( |
Fields | |
---|---|
audienceAttributes[] |
Optional. Audience attributes that describe an audience of viewers. This is used to search for creators whose own viewers match the input audience. Attributes ageRange, gender, userInterest, entity, category, parentalStatus, and incomeRange are supported. Attribute location is not supported. |
creatorAttributes[] |
Optional. Creator attributes that describe a collection of types of content. This is used to search for creators whose content matches the input creator attributes. Attribute entity tagged with [InsightsKnowledgeGraphEntityCapabilities.CREATOR_ATTRIBUTE][] is supported. Other attributes including location are not supported. |
SearchBrand
The brand used to search for top creators.
JSON representation |
---|
{
"brandEntities": [
{
object ( |
Fields | |
---|---|
brandEntities[] |
Optional. One or more Knowledge Graph Entities that represent the brand for which to find insights. |
includeRelatedTopics |
Optional. When true, we will expand the search to beyond just the entities specified in [brandEntities] to other related knowledge graph entities similar to the brand. The default value is |
YouTubeChannels
A collection of YouTube Channels.
JSON representation |
---|
{
"youtubeChannels": [
{
object ( |
Fields | |
---|---|
youtubeChannels[] |
Optional. The YouTube Channel IDs to fetch creator insights for. |
YouTubeCreatorInsights
A YouTube creator and the insights for this creator.
JSON representation |
---|
{
"creatorName": string,
"creatorChannels": [
{
object ( |
Fields | |
---|---|
creatorName |
The name of the creator. |
creatorChannels[] |
The list of YouTube Channels |
YouTubeChannelInsights
YouTube Channel insights, and its metadata (such as channel name and channel ID), returned for a creator insights response.
JSON representation |
---|
{ "displayName": string, "youtubeChannel": { object ( |
Fields | |
---|---|
displayName |
The name of the YouTube Channel. |
youtubeChannel |
The YouTube Channel ID. |
channelUrl |
URL for the channel in the form of https://www.youtube.com/channel/{channelId}. |
channelDescription |
Description of the channel. |
channelMetrics |
The metrics for a YouTube Channel. |
channelAudienceAttributes[] |
The types of audiences and demographics linked to the channel's main audience. Audiences and demographics have a breakdown of subscriber share across dimensions of the same value, such as Age Range, Gender, and User Interest. |
channelAttributes[] |
The attributes associated with the content made by a channel. |
topVideos[] |
The top 10 videos for the channel. |
channelType |
Metadata string associated with the type of channel. |
YouTubeMetrics
YouTube Channel metrics.
JSON representation |
---|
{ "subscriberCount": string, "viewsCount": string, "videoCount": string, "isActiveShortsCreator": boolean } |
Fields | |
---|---|
subscriberCount |
The number of subscribers. |
viewsCount |
The total number of views. |
videoCount |
The total number of videos. |
isActiveShortsCreator |
When true, this channel has published a shorts video in the last 90 days. |