Untuk mendiskusikan dan memberikan masukan tentang produk kami, bergabunglah ke channel Discord AdMob resmi di server Komunitas Iklan dan Pengukuran Google.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Mediasi AdMob adalah fitur yang memungkinkan Anda menayangkan iklan ke aplikasi dari beberapa sumber, termasuk Jaringan AdMob dan sumber iklan pihak ketiga, di satu tempat. Mediasi AdMob membantu memaksimalkan rasio pengisian dan meningkatkan monetisasi dengan mengirimkan permintaan iklan ke beberapa jaringan untuk memastikan Anda menemukan jaringan terbaik yang tersedia untuk menayangkan iklan.
Studi kasus.
Prasyarat
Sebelum dapat mengintegrasikan mediasi untuk format iklan, Anda harus mengintegrasikan
format iklan tersebut ke dalam aplikasi:
Untuk bidding:
Plugin Google Mobile Ads Unity 4.2.0
atau yang lebih tinggi.
Menginisialisasi Google Mobile Ads SDK
Panduan memulai cepat ini menunjukkan cara menginisialisasi Google Mobile Ads SDK.
Selama panggilan inisialisasi tersebut, adaptor mediasi juga diinisialisasi. Penting untuk menunggu inisialisasi selesai sebelum
Anda memuat iklan untuk memverifikasi partisipasi penuh dari setiap jaringan iklan pada
permintaan iklan pertama.
Contoh kode berikut menunjukkan cara memeriksa status inisialisasi setiap adaptor sebelum membuat permintaan iklan.
MobileAds.Initialize((InitializationStatusinitializationStatus)=>
{Dictionary<string,AdapterStatus>map=initializationStatus.getAdapterStatusMap();foreach(KeyValuePair<string,AdapterStatus>keyValuePairinmap){stringclassName=keyValuePair.Key;AdapterStatusstatus=keyValuePair.Value;switch(status.InitializationState){caseAdapterState.NotReady:// The adapter initialization did not complete.Debug.Log($"Adapter: {className} is not ready.");break;caseAdapterState.Ready:// The adapter was successfully initialized.Debug.Log($"Adapter: {className} is initialized.");break;}}});
Pastikan untuk menonaktifkan refresh di semua UI sumber iklan pihak ketiga untuk unit iklan banner yang digunakan dalam Mediasi AdMob. Hal ini mencegah refresh ganda karena
AdMob juga memicu refresh berdasarkan kecepatan refresh
unit iklan banner Anda.
Menggunakan iklan native dengan Mediasi AdMob
Berikut adalah beberapa praktik terbaik yang perlu dipertimbangkan saat menerapkan iklan native
di Mediasi AdMob.
Kebijakan presentasi iklan native
Setiap jaringan iklan memiliki kebijakannya sendiri. Saat menggunakan mediasi, penting untuk
mengingat bahwa aplikasi Anda tetap harus mematuhi kebijakan jaringan
termediasi yang menyediakan iklan.
Hukum privasi negara bagian Amerika Serikat dan GDPR
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-06 UTC."],[[["\u003cp\u003eAdMob Mediation maximizes your ad revenue by pulling ads from multiple sources, including AdMob and third-party networks, to find the best-paying ad.\u003c/p\u003e\n"],["\u003cp\u003eBefore integrating mediation, ensure you have the necessary account permissions and have integrated the desired ad format (banner, interstitial, native, rewarded, or rewarded interstitial) into your app.\u003c/p\u003e\n"],["\u003cp\u003eInitialize the Mobile Ads SDK to enable mediation adapters, and wait for initialization to complete before loading ads for optimal performance.\u003c/p\u003e\n"],["\u003cp\u003eFor banner ads, disable refresh in third-party ad source UIs to avoid double refreshing, and be aware of native ad presentation policies and privacy regulations (US state privacy laws and GDPR) when using mediation.\u003c/p\u003e\n"]]],["AdMob Mediation serves ads from multiple sources, maximizing fill rates and monetization. Before implementing, verify account permissions and integrate the desired ad formats (banner, interstitial, native, rewarded). Initialize the Mobile Ads SDK, ensuring all ad network adapters are ready before loading ads. Disable refresh in third-party UIs for banner ads to prevent double refreshing. Adhere to each network's native ad presentation policies and configure US state privacy laws and GDPR settings in AdMob Privacy & messaging.\n"],null,["AdMob Mediation is a feature lets you serve ads to your apps from\nmultiple sources, including the AdMob Network and third-party ad sources, in\none place. AdMob Mediation helps maximize your fill rate and increase your\nmonetization by sending ad requests to multiple networks to verify you find the\nbest available network to serve ads.\n[Case study](//admob.google.com/home/resources/cookapps-grows-ad-revenue-86-times-with-admob-rewarded-ads-and-mediation/).\n\n\nPrerequisites **Important:** Verify that you have the necessary account permissions to complete the mediation configuration. These permissions include access to inventory management, app access, and privacy and messaging features. See [Manage user access to your\n| account](//support.google.com/admob/answer/2784628) for details.\n\nBefore you can integrate mediation for an ad format, you need to integrate that\nad format into your app:\n\n- [Banner Ads](/admob/unity/banner)\n- [Interstitial Ads](/admob/unity/interstitial)\n- [Native Ads](/admob/unity/native)\n- [Rewarded Ads](/admob/unity/rewarded)\n- [Rewarded Interstitial\n Ads](/admob/unity/rewarded-interstitial)\n\nNew to mediation? Read\n\n[Overview of AdMob Mediation](//support.google.com/admob/answer/3063564).\n\nFor bidding:\n\nGoogle Mobile Ads Unity plugin 4.2.0\nor higher.\n\nInitialize Google Mobile Ads SDK\n\nThe quick start guide shows you how to [initialize the Google Mobile Ads SDK](/admob/unity/quick-start#initialize_the_mobile_ads_sdk).\nDuring that initialization call, mediation adapters also\nget initialized. It is important to wait for initialization to complete before\nyou load ads in order to verify full participation from every ad network on the\nfirst ad request.\n| **Important:** Bidding adapters require you to explicitly initialize Google Mobile Ads SDK.\n\nThe following sample code shows how you can check each adapter's initialization\nstatus prior to making an ad request. \n\n MobileAds.Initialize((InitializationStatus initializationStatus) =\u003e\n {\n Dictionary\u003cstring, AdapterStatus\u003e map = initializationStatus.getAdapterStatusMap();\n foreach (KeyValuePair\u003cstring, AdapterStatus\u003e keyValuePair in map)\n {\n string className = keyValuePair.Key;\n AdapterStatus status = keyValuePair.Value;\n switch (status.InitializationState)\n {\n case AdapterState.NotReady:\n // The adapter initialization did not complete.\n Debug.Log($\"Adapter: {className} is not ready.\");\n break;\n case AdapterState.Ready:\n // The adapter was successfully initialized.\n Debug.Log($\"Adapter: {className} is initialized.\");\n break;\n }\n }\n }); \n https://github.com/googleads/googleads-mobile-unity/blob/9544f919c5c8067939fa38d7fb45d698a7408dc1/samples/HelloWorld/Assets/Snippets/MediationSnippets.cs#L13-L32\n\n\u003cbr /\u003e\n\nUse banner ads with AdMob Mediation\n\nMake sure to disable refresh in all third-party ad source UIs for banner ad\nunits used in AdMob Mediation. This prevents a double refresh since\nAdMob also triggers a refresh based on your banner ad unit's\nrefresh rate.\n\nUse native ads with AdMob Mediation\n\nThe following are some best practices to consider when implementing native ads\nin AdMob Mediation.\n\nNative ad presentation policy\n: Each ad network has its own policies. When using mediation, it's important to\n remember that your app still needs to abide by the policies of the mediated\n network that provided the ad.\n\nUS states privacy laws and GDPR\n\nIf you need to comply with the [U.S. states privacy\nlaws](//support.google.com/admob/answer/9561022) or [General Data Protection\nRegulation (GDPR)](//support.google.com/admob/answer/7666366), follow the\nsteps in [US state regulations\nsettings](//support.google.com/admob/answer/10860309) or [GDPR\nsettings](//support.google.com/admob/answer/10113004#adding_ad_partners_to_published_gdpr_messages) to add your\nmediation partners in AdMob Privacy \\& messaging's\nUS states or GDPR ad partners list. Failure to do so can lead to partners\nfailing to serve ads on your app.\n\nLearn more about enabling [restricted data processing\n(RDP)](/admob/unity/privacy/us-states) and obtaining GDPR consent with the\n[Google User Messaging Platform (UMP) SDK](/admob/unity/privacy)."]]