Method: customers.generateAdGroupThemes

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

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

HTTP 请求

POST https://googleads.googleapis.com/v16/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

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

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

广告系列资源名称。资源名称格式:customers/{customerId}/campaigns/{campaignId}