- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- TargetingSuggestionMetrics
- Try it!
Returns a collection of targeting insights (e.g. targetable audiences) that are relevant to the requested audience.
List of thrown errors: AudienceInsightsError AuthenticationError AuthorizationError FieldError HeaderError InternalError QuotaError RangeError RequestError
HTTP request
POST https://googleads.googleapis.com/v16/customers/{customerId}:generateSuggestedTargetingInsights
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 |
---|
{ "audience": { object ( |
Fields | |
---|---|
audience |
Required. The audience of interest for which insights are being requested. |
baselineAudience |
Optional. The baseline audience. The default, if unspecified, is all people in the same country as the audience of interest. |
dataMonth |
Optional. The one-month range of historical data to use for insights, in the format "yyyy-mm". If unset, insights will be returned for the last thirty days of data. |
customerInsightsGroup |
Optional. The name of the customer being planned for. This is a user-defined value. |
Response body
Response message for AudienceInsightsService.GenerateSuggestedTargetingInsights
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"suggestions": [
{
object ( |
Fields | |
---|---|
suggestions[] |
Suggested insights for targetable audiences. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/adwords
For more information, see the OAuth 2.0 Overview.
TargetingSuggestionMetrics
A suggested targetable audience relevant to the requested audience.
JSON representation |
---|
{ "locations": [ { object ( |
Fields | |
---|---|
locations[] |
Suggested location targeting. These attributes all have dimension GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION |
ageRanges[] |
Suggested age targeting; may be empty indicating no age targeting. |
gender |
Suggested gender targeting. If present, this attribute has dimension GENDER. |
userInterests[] |
Suggested audience segments to target. These attributes all have dimension AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST |
coverage |
The fraction (from 0 to 1 inclusive) of the requested audience that can be reached using the suggested targeting. |
index |
The ratio of coverage to the coverage of the baseline audience or zero if this ratio is undefined or is not meaningful. |
potentialYoutubeReach |
The approximate estimated number of people that can be reached on YouTube using this targeting. |