使ってみる
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ネイティブ広告は、プラットフォームに備わっている UI コンポーネントを通じてユーザーに表示される広告アセットです。コーディングの観点では、ネイティブ広告を読み込むときに広告のアセットを含む NativeAd
オブジェクトをアプリで受け取り、Google Mobile Ads SDK ではなくアプリがそのアセットの表示を行うことになります。
この広告フォーマットは、広告のデザインをより細かく制御したい場合に適しています。これらの機能が不要な場合は、他の広告フォーマットをご使用ください。
Flutter アプリでネイティブ広告を表示するには、次の 2 つの方法があります。
- ネイティブ テンプレート: Dart API でスタイル設定された定義済みのネイティブ テンプレート。
- プラットフォームの設定: Android と iOS のレイアウト ツールを使用して定義された、プラットフォーム固有のカスタムなレイアウト。
ネイティブ テンプレート
テンプレートのサイズには、小と中の 2 種類があります。各テンプレートには UI のスタイル設定オプションが用意されていますが、プラットフォームの設定の実装のように細かくカスタマイズすることはできません。
小 |
 Android
|
 iOS
|
中 |
 Android
|
 iOS
|
Dart でのネイティブ テンプレートの実装の詳細については、ネイティブ テンプレートをご覧ください。
プラットフォームの設定は、Android と iOS の両方のプラットフォームで広告のデザインをきめ細かく制御する必要がある場合に適していますが、両方のプラットフォーム向けにコードを記述する必要があります。
プラットフォーム固有の設定手順については、プラットフォームの設定をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-09-02 UTC。
[null,null,["最終更新日 2025-09-02 UTC。"],[[["\u003cp\u003eNative ads give you control over the ad's look and feel by providing ad assets that your app displays using its own UI components.\u003c/p\u003e\n"],["\u003cp\u003eYou can implement native ads using pre-defined templates with styling options or with platform-specific custom layouts for maximum control.\u003c/p\u003e\n"],["\u003cp\u003eNative templates offer small and medium size options with some styling flexibility while platform setup requires Android and iOS code for full customization.\u003c/p\u003e\n"]]],[],null,["Select platform: [Android](/ad-manager/mobile-ads-sdk/android/native \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/native \"View this page for the iOS platform docs.\") [Flutter](/ad-manager/mobile-ads-sdk/flutter/native \"View this page for the Flutter platform docs.\") [Unity](/ad-manager/mobile-ads-sdk/unity/native-overlay \"View this page for the Unity platform docs.\")\n\n\u003cbr /\u003e\n\nNative ads are ad assets presented to users with UI components native to the\nplatform. In coding terms, this means that when a native ad loads, your app\nreceives a `NativeAd` object that contains its assets, and your app---rather\nthan Google Mobile Ads SDK---is then responsible for displaying them.\n\nThis ad format is for when you want more control to style the look of your ads.\nIf you don't need these features, use one of our other ad formats.\n\nThere are two ways to display native ads in your Flutter app:\n\n- **Native templates:** Pre-defined native templates styled with a Dart API.\n- **Platform setup:** Custom platform-specific layouts defined using Android and iOS layout tools.\n\nNative templates\n\nThere are two template types to choose from: small or medium. Each template\ncomes with UI styling options; however, they offer less customization than\nthe platform setup implementation.\n\n| Small |\n|-------------|---------|\n| **Android** | **iOS** |\n| **Android** | **iOS** |\n\nFor native templates implementation details in Dart, see [Native\ntemplates](/ad-manager/mobile-ads-sdk/flutter/native/templates).\n\nPlatform setup\n\nPlatform setup is better when you need complete control of the look and feel for\nyour ads on both Android and iOS platforms, but you'll need to write code for\nboth.\n\nFor platform-specific setup instructions, see [Platform\nsetup](/ad-manager/mobile-ads-sdk/flutter/native/platforms)."]]