The AMP One Tap component is deprecated. This means that new web apps shouldn't use this component, and developers of the existing apps should follow the
migration guide to make any necessary changes to avoid negative impacts for user sign-in to their websites.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
フィードバックを送信
AMP コンポーネント 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」のみです。
data-src
この属性は、ワンタップ ミドルウェア iframe の URI です。詳細については、次の表をご覧ください。
タイプ
必須
例
文字列
はい
data-src="https://example.com/onetap_iframe.html"
レイアウト
この属性は AMP コンポーネントのレイアウトです。これは AMP コンポーネントの必須属性です。<amp-onetap-google> コンポーネントでは、「nodisplay」のみが許可されます。詳しくは、以下の表をご覧ください。
タイプ
必須
例
文字列
はい
layout="nondisplay"
フィードバックを送信
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンス により使用許諾されます。コードサンプルは Apache 2.0 ライセンス により使用許諾されます。詳しくは、Google Developers サイトのポリシー をご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-08 UTC。
ご意見をお聞かせください
[[["わかりやすい","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"]],["最終更新日 2024-11-08 UTC。"],[],[]]