Method: customers.createCustomerClient

在经理账号下创建一个新的客户。返回新客户。

抛出的错误列表:AccessInvitationError AuthenticationError AuthorizationError CurrencyCodeError HeaderError InternalError ManagerLinkError QuotaError RequestError StringLengthError TimeZoneError

HTTP 请求

POST https://googleads.googleapis.com/v16/customers/{customerId}:createCustomerClient

网址采用 gRPC 转码语法。

路径参数

参数
customerId

string

必需。在其下创建客户客户的经理的 ID。

请求正文

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

JSON 表示法
{
  "customerClient": {
    object (Customer)
  },
  "accessRole": enum (AccessRole),
  "validateOnly": boolean,
  "emailAddress": string
}
字段
customerClient

object (Customer)

必需。要创建的新客户。此客户的资源名称将被忽略。

accessRole

enum (AccessRole)

建议的用户角色。仅限许可名单中的客户访问。

validateOnly

boolean

如果为 true,则会验证该请求,但不会执行该请求。系统只会返回错误,不会返回结果。

emailAddress

string

应邀请创建的客户客户的用户的电子邮件地址。仅限许可名单中的客户访问。

响应正文

customer.createCustomerClient mutate 的响应消息。

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

JSON 表示法
{
  "resourceName": string,
  "invitationLink": string
}
字段
resourceName

string

新创建的客户的资源名称。客户资源名称采用 customers/{customerId} 格式。

授权范围

需要以下 OAuth 作用域:

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

有关详情,请参阅 OAuth 2.0 概览