הרכיב AMP One Tap הוצא משימוש. המשמעות היא שאפליקציות אינטרנט חדשות לא אמורות להשתמש ברכיב הזה, ומפתחים של האפליקציות הקיימות צריכים לפעול בהתאם ל
מדריך להעברת נתונים כדי לבצע את השינויים הנדרשים כדי למנוע השפעות שליליות על כניסה של משתמשים לאתרים שלהם.
הפניית AMP Component API
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בדף העזרה הזה מתוארים ממשקי ה-API של רכיב ה-AMP <amp-onetap-google>
.
עיינו במדריך שילוב הקשה אחת באמצעות Iframe כדי ללמוד איך להשתמש במסגרות iframe ביניים.
טעינת רכיב ה-AMP <amp-onetap-google>
מוסיפים את קטע הקוד הבא לכל דפי ה-AMP שבהם רוצים להשתמש ברכיב ה-AMP <amp-onetap-google>
:
<script custom-element="amp-onetap-google" src="https://cdn.ampproject.org/v0/amp-onetap-google-0.1.js" async></script>
רכיב ה-AMP <amp-onetap-google>
בטבלה הבאה מפורטים מאפייני הנתונים עם התיאורים שלהם:
מאפיין |
data-src |
ה-URI של מסגרת ה-iframe המקשרת של One Tap |
layout |
הפריסה של רכיב ה-AMP. אפשר להשתמש רק בערך 'nodisplay'. |
data-src
המאפיין הזה הוא ה-URI של ה-iframe הביניים של One Tap. מידע נוסף זמין בטבלה הבאה:
סוג |
חובה |
דוגמה |
מחרוזת |
כן |
data-src="https://example.com/onetap_iframe.html" |
פריסה
המאפיין הזה הוא הפריסה של רכיב ה-AMP, והוא מאפיין חובה של רכיבי AMP. ברכיב <amp-onetap-google>
, אפשר להשתמש רק ב-"nodisplay". מידע נוסף זמין בטבלה הבאה:
סוג |
חובה |
דוגמה |
מחרוזת |
כן |
layout="nondisplay" |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-08 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-08 (שעון UTC)."],[[["\u003cp\u003eThis reference page describes the API of the \u003ccode\u003e<amp-onetap-google>\u003c/code\u003e AMP component, which enables One Tap sign-up/sign-in on AMP pages.\u003c/p\u003e\n"],["\u003cp\u003eTo use this component, you need to place a specific script tag into your AMP pages and configure the component with \u003ccode\u003edata-src\u003c/code\u003e and \u003ccode\u003elayout\u003c/code\u003e attributes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edata-src\u003c/code\u003e attribute specifies the URI of your One Tap intermediate iframe, while the \u003ccode\u003elayout\u003c/code\u003e attribute must be set to "nodisplay".\u003c/p\u003e\n"],["\u003cp\u003eRefer to the "Integrate One Tap using an Iframe" guide to learn how to use intermediate iframes for this implementation.\u003c/p\u003e\n"]]],[],null,["# AMP Component API reference\n\nThis reference page describes the API of the `\u003camp-onetap-google\u003e` AMP\ncomponent.\n\nSee the [Integrate One Tap using an Iframe](/identity/gsi/web/amp/intermediate-iframe) guide to learn how to use\nintermediate iframes.\n\nLoad the `\u003camp-onetap-google\u003e` AMP Component\n--------------------------------------------\n\nPlace the following code snippet into any AMP pages where you want to use the\n`\u003camp-onetap-google\u003e` AMP Component: \n\n \u003cscript custom-element=\"amp-onetap-google\" src=\"https://cdn.ampproject.org/v0/amp-onetap-google-0.1.js\" async\u003e\u003c/script\u003e\n\nThe `\u003camp-onetap-google\u003e` AMP Component\n---------------------------------------\n\nThe following table lists the data attributes with their descriptions:\n\n| Attribute ||\n|----------------------------------------------------------|---------------------------------------------------------------|\n| [data-src](/identity/gsi/web/amp/amp-reference#data-src) | The URI of your One Tap intermediate iframe |\n| [layout](/identity/gsi/web/amp/amp-reference#layout) | The layout of the AMP component. Only \"nodisplay\" is allowed. |\n\n### data-src\n\nThis attribute is the URI of your One Tap intermediate iframe. See the following\ntable for further information:\n\n| Type | Required | Example |\n|--------|----------|-----------------------------------------------------|\n| string | Yes | `data-src=\"https://example.com/onetap_iframe.html\"` |\n\n### layout\n\nThis attribute is the layout of the AMP component, which is a required attribute\nof AMP components. For the `\u003camp-onetap-google\u003e` component, only\n\"nodisplay\" is allowed. See the following table for further information:\n\n| Type | Required | Example |\n|--------|----------|-----------------------|\n| string | Yes | `layout=\"nondisplay\"` |"]]