Method: customers.generateAdGroupThemes

返回建议的广告组列表,以及指定关键字的修改建议(文字、匹配类型)。

抛出的错误的列表:AuthenticationError AuthorizationError CollectionSizeError HeaderError InternalError QuotaError RequestError

HTTP 请求

POST https://googleads.googleapis.com/v17/customers/{customerId}:generateAdGroupThemes

网址采用 gRPC 转码语法。

路径参数

参数
customerId

string

必需。客户的 ID。

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "keywords": [
    string
  ],
  "adGroups": [
    string
  ]
}
字段
keywords[]

string

必需。要划分到所提供的广告组的关键字列表。

adGroups[]

string

必需。用于对关键字进行分组的广告组的资源名称列表。资源名称格式:customers/{customerId}/adGroups/{adGroupId}

响应正文

KeywordPlanIdeaService.GenerateAdGroupThemes 的响应消息。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "adGroupKeywordSuggestions": [
    {
      object (AdGroupKeywordSuggestion)
    }
  ],
  "unusableAdGroups": [
    {
      object (UnusableAdGroup)
    }
  ]
}
字段
adGroupKeywordSuggestions[]

object (AdGroupKeywordSuggestion)

建议的广告组/关键字对的列表。

unusableAdGroups[]

object (UnusableAdGroup)

所提供的一系列无法用作建议的广告组。

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/adwords

如需了解详情,请参阅 OAuth 2.0 概览

AdGroupKeywordSuggestion

针对特定关键字的建议文字与广告组/广告系列配对。

JSON 表示法
{
  "keywordText": string,
  "suggestedKeywordText": string,
  "suggestedMatchType": enum (KeywordMatchType),
  "suggestedAdGroup": string,
  "suggestedCampaign": string
}
字段
keywordText

string

原始关键字文字。

suggestedKeywordText

string

用于广泛/完全匹配/词组建议的 keywordText 标准化版本。

suggestedMatchType

enum (KeywordMatchType)

建议的关键字匹配类型。

suggestedAdGroup

string

为关键字建议的广告组。资源名称格式:customers/{customerId}/adGroups/{adGroupId}

suggestedCampaign

string

为关键字建议的广告系列。资源名称格式:customers/{customerId}/campaigns/{campaignId}

UnusableAdGroup

不能用作关键字建议的广告组/广告系列对。

如果广告组

  • 所属的广告系列未启用或已暂停
  • 本身未启用
JSON 表示法
{
  "adGroup": string,
  "campaign": string
}
字段
adGroup

string

广告组资源名称。资源名称格式:customers/{customerId}/adGroups/{adGroupId}

campaign

string

Campaign 资源名称。资源名称格式:customers/{customerId}/campaigns/{campaignId}