Method: variables.get

ชื่อเต็ม: accounts.containers.variables.get

รับตัวแปร GTM

คำขอ HTTP

GET https://tagmanager.googleapis.com/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}

พารามิเตอร์เส้นทาง

พารามิเตอร์
accountId

string

รหัสบัญชี GTM

containerId

string

รหัสคอนเทนเนอร์ GTM

variableId

string

รหัสตัวแปร GTM

เนื้อหาของคำขอ

เนื้อหาของคำขอต้องว่างเปล่า

เนื้อหาการตอบกลับ

หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Variable

ขอบเขตการให้สิทธิ์

ต้องใช้ขอบเขต OAuth ต่อไปนี้

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

ดูข้อมูลเพิ่มเติมได้ที่ OAuth 2.0 Overview