AMP 원탭 구성요소는 지원 중단되었습니다. 즉, 새로운 웹 앱에서는 이 구성요소를 사용해서는 안 되며 기존 앱의 개발자는
이전 가이드에 따라 사용자가 웹사이트에 로그인할 때 부정적인 영향을 주지 않도록 필요한 변경사항을 적용해야 합니다.
AMP Component API 참조
이 참조 페이지에서는 <amp-onetap-google>
AMP 구성요소의 API를 설명합니다.
중간 iframe을 사용하는 방법은 Iframe을 사용하여 원탭 통합 가이드를 참고하세요.
<amp-onetap-google>
AMP 구성요소 로드
<amp-onetap-google>
AMP 구성요소를 사용하려는 AMP 페이지에 다음 코드 스니펫을 배치합니다.
<script custom-element="amp-onetap-google" src="https://cdn.ampproject.org/v0/amp-onetap-google-0.1.js" async></script>
<amp-onetap-google>
AMP 구성요소
다음 표에는 데이터 속성과 설명이 나와 있습니다.
속성 |
data-src |
원탭 중간 iframe의 URI |
layout |
AMP 구성요소의 레이아웃 'nodisplay'만 허용됩니다. |
데이터 소스
이 속성이 원탭 중간 iframe의 URI입니다. 자세한 내용은 다음 표를 참고하세요.
유형 |
필수 |
예 |
문자열 |
예 |
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 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-08(UTC)
[null,null,["최종 업데이트: 2024-11-08(UTC)"],[[["This reference page describes the API of the `\u003camp-onetap-google\u003e` AMP component, which enables One Tap sign-up/sign-in on AMP pages."],["To use this component, you need to place a specific script tag into your AMP pages and configure the component with `data-src` and `layout` attributes."],["The `data-src` attribute specifies the URI of your One Tap intermediate iframe, while the `layout` attribute must be set to \"nodisplay\"."],["Refer to the \"Integrate One Tap using an Iframe\" guide to learn how to use intermediate iframes for this implementation."]]],[]]