เริ่มใช้งาน
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
โฆษณาเนทีฟคือชิ้นงานโฆษณาที่แสดงต่อผู้ใช้พร้อมคอมโพเนนต์ UI ที่เป็นของแพลตฟอร์ม
ในแง่ของการเขียนโค้ด หมายความว่าเมื่อโฆษณาเนทีฟโหลด แอปจะได้รับออบเจ็กต์ NativeAd
ที่มีชิ้นงานของโฆษณา และแอป (ไม่ใช่ SDK โฆษณาในอุปกรณ์เคลื่อนที่ของ Google) จะมีหน้าที่แสดงโฆษณา
รูปแบบโฆษณานี้เหมาะสำหรับกรณีที่คุณต้องการควบคุมการจัดรูปแบบรูปลักษณ์ของโฆษณามากขึ้น
หากไม่ต้องการใช้ฟีเจอร์เหล่านี้ ให้ใช้โฆษณารูปแบบอื่น
คุณแสดงโฆษณาเนทีฟในแอป Flutter ได้ 2 วิธี ดังนี้
- เทมเพลตเนทีฟ: เทมเพลตเนทีฟที่กำหนดไว้ล่วงหน้าซึ่งจัดรูปแบบด้วย Dart API
- การตั้งค่าแพลตฟอร์ม: เลย์เอาต์เฉพาะแพลตฟอร์มที่กำหนดเองซึ่งกำหนดโดยใช้เครื่องมือเลย์เอาต์ของ Android และ iOS
เทมเพลตโฆษณาเนทีฟ
คุณเลือกเทมเพลตได้ 2 ประเภท ได้แก่ ขนาดเล็กหรือขนาดกลาง แต่ละเทมเพลต
มาพร้อมตัวเลือกการจัดรูปแบบ UI แต่มีการปรับแต่งน้อยกว่า
การติดตั้งใช้งานการตั้งค่าแพลตฟอร์ม
เล็ก |
 Android
|
 iOS
|
ปานกลาง |
 Android
|
 iOS
|
ดูรายละเอียดการติดตั้งใช้งานเทมเพลตเนทีฟใน Dart ได้ที่เทมเพลตเนทีฟ
การตั้งค่าแพลตฟอร์มจะดีกว่าเมื่อคุณต้องการควบคุมรูปลักษณ์ของโฆษณาอย่างเต็มที่
ทั้งในแพลตฟอร์ม Android และ iOS แต่คุณจะต้องเขียนโค้ดสำหรับ
ทั้ง 2 แพลตฟอร์ม
ดูวิธีการตั้งค่าเฉพาะแพลตฟอร์มได้ที่การตั้งค่า
แพลตฟอร์ม
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 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,["# Get started\n\nSelect 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 the 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----------------\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--------------\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)."]]