- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- InsightsAudienceDefinition
- InsightsAudienceDescription
- AudienceInsightsMarketingObjective
- 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/v18/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 |
---|
{ "customerInsightsGroup": string, // Union field |
Fields | |
---|---|
customerInsightsGroup |
Optional. The name of the customer being planned for. This is a user-defined value. |
Union field audience_input . Required. The audience to get suggestions for. audience_input can be only one of the following: |
|
audienceDefinition |
Provide a seed audience to get suggestions for. |
audienceDescription |
Provide a text description of an audience to get AI-generated targeting suggestions. This can take around 5 or more seconds to complete. |
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.
InsightsAudienceDefinition
A structured definition of the audience of interest for which insights are being requested in AudienceInsightsService.
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. |
InsightsAudienceDescription
A text description of the audience of interest for which insights are being requested in AudienceInsightsService.
JSON representation |
---|
{ "countryLocations": [ { object ( |
Fields | |
---|---|
countryLocations[] |
Required. The countries for the audience. |
audienceDescription |
Required. An English language text description of an audience to get suggestions for. Maximum length is 2000 characters. For example, "Women in their 30s who love to travel". |
marketingObjective |
Optional. An optional marketing objective which will influence the type of suggestions produced. AWARENESS will provide affinity audience segments, while CONSIDERATION will provide in-market audience segments. Leaving it unset will provide both. |
AudienceInsightsMarketingObjective
Describes the overall objective for defining an audience for insights.
Enums | |
---|---|
UNSPECIFIED |
Not specified. |
UNKNOWN |
The value is unknown in this version. |
AWARENESS |
The objective is to increase awareness of a brand or product among relevant audiences. |
CONSIDERATION |
The objective is to encourage potential customers to consider your brand or products when they're researching or shopping for product. |