- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- SearchAudience
- SearchTopics
- TrendInsight
- TrendInsightMetrics
- InsightsTrend
- Try it!
Returns insights for trending content on YouTube.
List of thrown errors: AuthenticationError AuthorizationError FieldError HeaderError InternalError QuotaError RangeError RequestError
HTTP request
POST https://googleads.googleapis.com/v19/customers/{customerId}:generateTrendingInsights
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, "countryLocation": { object ( |
Fields | |
---|---|
customerInsightsGroup |
Required. The name of the customer being planned for. This is a user-defined value. |
countryLocation |
Required. The country to find trends in. |
Union field criteria . The criteria used to search for trending content. criteria can be only one of the following: |
|
searchAudience |
An audience to search for trending content in. |
searchTopics |
Content topics to return trend information for. |
Response body
Response message for [ContentCreatorInsightsService.GenerateTrendingInsights]
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"trendInsights": [
{
object ( |
Fields | |
---|---|
trendInsights[] |
The list of trending insights for the given criteria. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adwords
For more information, see the OAuth 2.0 Overview.
SearchAudience
A collection of audience attributes that describe an audience of viewers. This is used to search for topics trending for the defined audience.
JSON representation |
---|
{
"audienceAttributes": [
{
object ( |
Fields | |
---|---|
audienceAttributes[] |
Required. Audience attributes that describe an audience of viewers. This is used to search for topics trending for the defined audience. |
SearchTopics
A collection of content topics to return trend information for.
JSON representation |
---|
{
"entities": [
{
object ( |
Fields | |
---|---|
entities[] |
Required. A list of knowledge graph entities to retrieve trend information for. Supported entities are tagged with [InsightsKnowledgeGraphEntityCapabilities.CONTENT_TRENDING_INSIGHTS][]. |
TrendInsight
A trend insight for a given attribute.
JSON representation |
---|
{ "trendAttribute": { object ( |
Fields | |
---|---|
trendAttribute |
The attribute this trend is for. |
trendMetrics |
Metrics associated with this trend. |
trend |
The direction of trend (such as RISING or DECLINING). |
TrendInsightMetrics
Metrics associated with a trend insight.
JSON representation |
---|
{ "viewsCount": string } |
Fields | |
---|---|
viewsCount |
The number of views for this trend. |
InsightsTrend
Describes which direction a trend is moving.
Enums | |
---|---|
UNSPECIFIED |
Not specified. |
UNKNOWN |
The value is unknown in this version. |
EMERGING |
This is a new trend. |
RISING |
This trend has increased recently. |
SUSTAINED |
This trend has remained stable. |
DECLINING |
This trend is declining. |