Rozpocznij
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Wybierz platformę:
Android
iOS
Flutter
Unity
Reklamy natywne to komponenty reklamowe wyświetlane użytkownikom za pomocą komponentów interfejsu platformy. W terminologii programistycznej oznacza to, że gdy wczytuje się reklama natywna, aplikacja otrzymuje obiekt NativeAd
zawierający jej komponenty, a następnie to aplikacja, a nie pakiet SDK do reklam mobilnych Google, odpowiada za ich wyświetlanie.
Ten format reklamy jest przeznaczony dla reklamodawców, którzy chcą mieć większą kontrolę nad wyglądem swoich reklam.
Jeśli nie potrzebujesz tych funkcji, użyj jednego z naszych innych formatów reklam.
Reklamy natywne w aplikacji Flutter możesz wyświetlać na 2 sposoby:
- Szablony natywne: wstępnie zdefiniowane szablony natywne stylizowane za pomocą interfejsu Dart API.
- Konfiguracja platformy: niestandardowe układy zdefiniowane za pomocą narzędzi do tworzenia układów na Androida i iOS.
Szablony natywne
Możesz wybrać 2 typy szablonów: mały lub średni. Każdy szablon ma opcje stylizacji interfejsu, ale oferuje mniejsze możliwości dostosowania niż implementacja konfiguracji platformy.
Mały |
 Android
|
 iOS
|
Średni |
 Android
|
 iOS
|
Szczegółowe informacje o wdrażaniu szablonów natywnych w Dart znajdziesz w artykule Szablony natywne.
Konfiguracja platformy jest lepsza, gdy potrzebujesz pełnej kontroli nad wyglądem i działaniem reklam na platformach Android i iOS, ale w obu przypadkach musisz napisać kod.
Instrukcje konfiguracji na poszczególnych platformach znajdziesz w sekcji Konfiguracja na platformie.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-09-06 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-09-06 UTC."],[[["\u003cp\u003eNative ads give you control over the ad's look and feel by providing ad assets that your app displays using native UI components.\u003c/p\u003e\n"],["\u003cp\u003eChoose between Native Templates for pre-defined layouts with styling options or Platform Setup for complete customization using Android/iOS tools.\u003c/p\u003e\n"],["\u003cp\u003eNative Templates offer small and medium sizes with some UI customization, while Platform Setup provides full control but requires platform-specific code.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the provided links for detailed implementation instructions on both Native Templates and Platform Setup for Flutter.\u003c/p\u003e\n"]]],["Native ads allow apps to display ad assets using native UI components. Apps receive a `NativeAd` object and handle asset display. There are two implementation methods: native templates and platform setup. Native templates offer pre-defined small or medium designs with some styling options. Platform setup provides full control over ad appearance on Android and iOS but requires platform-specific code. Native templates are detailed in the linked section and so are the platform specific set up.\n"],null,["Select platform: [Android](/admob/android/native \"View this page for the Android platform docs.\") [iOS](/admob/ios/native \"View this page for the iOS platform docs.\") [Flutter](/admob/flutter/native \"View this page for the Flutter platform docs.\") [Unity](/admob/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](/admob/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](/admob/flutter/native/platforms)."]]