Method: accounts.provisionAccountTicket
HTTP 请求
POST https://analyticsadmin.googleapis.com/v1beta/accounts:provisionAccountTicket
网址采用 gRPC 转码语法。
请求正文
请求正文中包含结构如下的数据:
JSON 表示法 |
{
"account": {
object (Account )
},
"redirectUri": string
} |
字段 |
account |
object (Account )
要创建的账号。
|
redirectUri |
string
用户接受服务条款后会转到的重定向 URI。必须在 Cloud 控制台中配置为重定向 URI。
|
响应正文
accounts.provisionAccountTicket RPC 的响应消息。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"accountTicketId": string
} |
字段 |
accountTicketId |
string
要在服务条款链接中传递的参数。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/analytics.edit
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-14。
[null,null,["最后更新时间 (UTC):2025-01-14。"],[[["Requests a ticket for creating a new Google Analytics 4 account."],["The request body includes the account details and a redirect URI for user consent."],["Upon successful request, the response provides an account ticket ID for accessing the Terms of Service."],["Requires authorization with the `https://www.googleapis.com/auth/analytics.edit` scope to provision accounts."]]],["The content outlines how to request a ticket for account creation using a POST request to `https://analyticsadmin.googleapis.com/v1beta/accounts:provisionAccountTicket`. The request body must include an `account` object and a `redirectUri`. A successful response returns an `accountTicketId`. The process requires `https://www.googleapis.com/auth/analytics.edit` authorization scope, and the `redirectUri` must be pre-configured. This process is used to accept terms of service for new accounts.\n"]]