Method: edits.tracks.create
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks
网址采用 gRPC 转码语法。
路径参数
参数 |
packageName |
string
必需。应用的软件包名称。
|
editId |
string
必需。修改内容的标识符。
|
请求正文
请求正文包含一个 TrackConfig
实例。
响应正文
如果成功,响应正文将包含一个新创建的 Track
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/androidpublisher
TrackConfig
字段 |
track |
string
必需。新曲目的标识符。 对于默认轨道,此字段仅包含轨道别名。 设备规格轨道使用特殊前缀作为标识符,例如 wear:production 、automotive:production 。如果此前缀不是默认轨道,则必须与 formFactor 字段的值匹配。 详细了解轨道名称
|
type |
enum (TrackType )
必需。新轨道的类型。 目前,唯一支持的值是 closeTesting。
|
formFactor |
enum (FormFactor )
必需。新轨道的设备规格。默认为默认轨道。
|
TrackType
枚举 |
TRACK_TYPE_UNSPECIFIED |
后备值,请勿使用。 |
CLOSED_TESTING |
封闭式测试轨道。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis operation creates a new track for an Android application using the provided configurations.\u003c/p\u003e\n"],["\u003cp\u003eIt requires a \u003ccode\u003ePOST\u003c/code\u003e request to a specific URL, including the package name and edit ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain the new track's configuration, such as its identifier, type, and form factor.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful execution results in the response body containing the newly created track details.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidpublisher\u003c/code\u003e scope is necessary.\u003c/p\u003e\n"]]],["This document outlines how to create a new track using the Android Publisher API. The `POST` request is sent to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks`, with the package name and edit ID as path parameters. The request body requires a `TrackConfig` instance, defining the track's `track`, `type` (currently only `CLOSED_TESTING` is supported), and `formFactor` (default, `WEAR`, or `AUTOMOTIVE`). The response will be a newly created `Track` instance. Authorization requires the `https://www.googleapis.com/auth/androidpublisher` scope.\n"],null,[]]