ต้องการเริ่มตอนนี้เลยไหม อ่านคู่มือนักพัฒนาซอฟต์แวร์ แต่ละแอปพลิเคชันที่ใช้ API จะต้องผ่าน 2 ขั้นตอนเพื่อลงทะเบียน ให้สิทธิ์ผู้ใช้ และทำงานกับ API คู่มือนักพัฒนาซอฟต์แวร์จะนำคุณผ่านแต่ละขั้นตอน และในตอนท้ายจะมีแอปพลิเคชันที่ใช้งานได้ที่คุณสามารถปรับแต่งได้
ภาพรวมในเชิงแนวคิด
API นี้จะแสดงเอนทิตีการกำหนดค่า Google Tag Manager หลายรายการ
ที่มีลำดับชั้น บัญชีผู้ใช้แต่ละรายจะมีคอนเทนเนอร์ได้ 1 รายการหรือมากกว่านั้น ซึ่งแต่ละบัญชีจะมีพื้นที่ทำงานได้อย่างน้อย 1 รายการ พื้นที่ทำงานช่วยให้แก้ไขตัวแปร ตัวแปรบิวท์อิน ทริกเกอร์ โฟลเดอร์ และแท็กของคอนเทนเนอร์ได้หลายรายการพร้อมกัน เมื่อแก้ไขพื้นที่ทำงานตามที่ต้องการแล้ว คุณสามารถสร้าง ดูตัวอย่าง และนำเวอร์ชันไปใช้จริงได้ ทรัพยากรสิทธิ์ให้คุณจัดการสิทธิ์ของผู้ใช้ได้ที่ระดับบัญชี แผนภาพต่อไปนี้แสดงความสัมพันธ์ระดับบนสุดและระดับย่อยระหว่างเอนทิตีต่างๆ
ภาพที่ 1: ความสัมพันธ์ระดับบนสุดและระดับย่อยของทรัพยากร Google Tag Manager
Google Tag Manager API แสดงเอนทิตีแต่ละรายการเป็นทรัพยากร รายการทรัพยากรในประเภทหนึ่งๆ
จะประกอบกันเป็นคอลเล็กชัน โดย API นี้จะแสดงแต่ละคอลเล็กชันใน URI ที่ค้นหาได้เพื่อแสดงรายการเอนทิตีในนั้น
Google Tag Manager API จัดการการดำเนินการหลายล้านรายการ หากต้องการป้องกันไม่ให้ระบบได้รับการดำเนินการมากเกินกว่าจะจัดการได้ และเพื่อให้การกระจายทรัพยากรระบบอย่างเท่าเทียม คุณจำเป็นต้องใช้ระบบโควต้า อ่านคำแนะนำขีดจำกัดและโควต้าเพื่อดูขีดจำกัดเฉพาะ
ขั้นตอนถัดไป
แหล่งข้อมูลที่จะช่วยให้คุณทราบข้อมูลเพิ่มเติมเกี่ยวกับ API มีดังนี้
[[["เข้าใจง่าย","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"]],["อัปเดตล่าสุด 2025-03-06 UTC"],[[["The Google Tag Manager API grants authorized users access to Google Tag Manager configuration data, allowing management of accounts, containers, workspaces, tags, triggers, and other related entities."],["Before using the API, developers need to register their application, authorize the user, and understand the workflow as detailed in the Developer's Guide."],["Google Tag Manager resources are organized hierarchically, with accounts containing containers, containers containing workspaces, and workspaces containing various elements like tags, triggers, and variables."],["The API utilizes a quota system to ensure equitable resource distribution and protect the system from overload, with specific limits outlined in the Limits and Quotas guide."],["Further information and guidance on working with the API can be found in the Developer's Guide and the Tag Manager API Reference."]]],["The Google Tag Manager API allows authorized users to manage configuration data. Key actions include managing accounts, containers, destinations, workspaces, tags, triggers, folders, variables, versions, and user permissions. Users can modify variables, built-in variables, triggers, folders, and tags within workspaces. The API's resources are organized hierarchically, enabling the creation, preview, and publishing of versions, as well as the management of user permissions at the account level. Quotas are used to protect system resources.\n"]]