רוצה להתחיל בעבודה כבר עכשיו? קוראים את המדריך למפתחים. כל אפליקציה שמשתמשת ב-API צריכה לעבור כמה שלבים כדי לרשום את המשתמש, לתת לו הרשאה ולעבוד עם ה-API. המדריך למפתחים ידריך אתכם בכל שלב בתהליך, ובסופו תהיה לכם אפליקציה פעילה שתוכלו להתאים אישית.
סקירה כללית של קונספט
ה-API חושף כמה ישויות בהגדרה של Google Tag Manager, שמאורגנות בהיררכיה. לכל חשבון של משתמש יכולה להיות קונטיינר אחד או יותר, ולכל אחד מהם יכולה להיות סביבת עבודה אחת או יותר. ב-Workspace אפשר לבצע כמה שינויים בו-זמנית במשתנים, במשתנים מובנים, ב-Triggers, בתיקיות ובתגים של הקונטיינר. אחרי שתבצעו את השינויים הרצויים בסביבת העבודה, תוכלו ליצור גרסה, להציג אותה בתצוגה מקדימה ולפרסם אותה. משאב של הרשאות מאפשר לנהל את הרשאות המשתמשים ברמת החשבונות. התרשים הבא מייצג את הקשרים של הורה-צאצא בין הישויות:
איור 1: קשרי ההורה-צאצא של המשאבים של Google Tag Manager.
ה-Google Tag Manager API חושף כל אחת מהישויות כמשאב. אוסף מורכב מרשימה של משאבים מסוג מסוים. ה-API חושף כל אוסף ב-URI שניתן לשלוח אליו שאילתה כדי להציג את רשימת הישויות שבו.
ממשק ה-API של מנהל התגים של Google מטפל במיליוני פעולות. כדי להגן על המערכת מפני קבלת פעולות רבות יותר ממה שהיא יכולה לטפל בה, וכדי להבטיח חלוקה הוגנת של משאבי המערכת, חשוב להשתמש במערכת מכסות. תוכלו לקרוא על מגבלות ספציפיות במדריך Limits and Quotas.
השלבים הבאים
מקורות מידע שיעזרו לכם לקבל מידע נוסף על ה-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"]]