Method: containers.snippet

全名:accounts.containers.snippet

取得容器的標記片段。

HTTP 要求

GET https://tagmanager.googleapis.com/tagmanager/v2/{path}:snippet

路徑參數

參數
path

string

容器程式碼片段的 API 相對路徑。其格式為 accounts/{account}/containers/{container}

要求主體

要求主體必須為空白。

回應主體

如果成功,回應主體即會包含具有以下結構的資料:

JSON 表示法
{

  // Union field type can be only one of the following:
  "snippet": string,
  "containerConfig": string
  // End of list of possible types for union field type.
}
欄位

聯集欄位 type

type 只能是下列其中一項:

snippet

string

為容器加上標記片段。

containerConfig

string

用於手動佈建標記伺服器的伺服器容器設定參數。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/tagmanager.edit.containers
  • https://www.googleapis.com/auth/tagmanager.readonly

詳情請參閱 OAuth 2.0 Overview