Menguji jenis materi iklan
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Pilih platform:
Android
iOS
Google Mobile Ads SDK menyediakan API yang memungkinkan Anda menentukan jenis materi iklan untuk kueri pengujian. Saat parameter ditetapkan, hanya materi iklan dari jenis yang ditentukan yang diambil dan dirender.
Penggunaan
Untuk menentukan jenis materi iklan, sertakan parameter ft_ctype
dalam objek tambahan
dan teruskan ke permintaan iklan. Hal ini dapat membatasi iklan yang tersedia dan mengakibatkan tidak ada pengisian.
Kotlin
val extras = Bundle()
extras.putString("ft_ctype", "video_app_install")
val request = AdRequest
.Builder()
.addNetworkExtrasBundle(AdMobAdapter::class.java, extras)
.build()
Java
Bundle extras = new Bundle();
extras.putString("ft_ctype", "video_app_install");
AdRequest request = new AdRequest
.Builder()
.addNetworkExtrasBundle(AdMobAdapter.class, extras)
.build();
Tabel berikut mencantumkan nilai yang valid untuk ft_ctype
:
Jenis Materi Iklan |
ft_ctype |
Format |
HTML5 |
html5 |
Banner, Interstisial, Reward |
Gambar penginstalan aplikasi |
image_app_install |
Banner, Native, Interstisial, Reward |
Gambar tampilan |
image_display |
Banner, Interstisial |
Menampilkan slot parsial |
partial_slot |
Banner, Native, Interstisial |
Teks penginstalan aplikasi |
text_app_install |
Banner, Native, Interstisial |
Teks tampilan |
text_display |
Banner, Native, Interstisial |
TrueView |
trueview |
Interstisial, Reward |
Video penginstalan aplikasi |
video_app_install |
Banner, Native, Interstisial, Reward |
Fitur ini hanya memengaruhi iklan Google. Jika unit iklan Anda mengaktifkan
mediasi, iklan yang ditampilkan dari sumber iklan pihak ketiga tidak
mematuhi parameter ft_ctype
. Sebaiknya uji dengan unit iklan yang tidak mengaktifkan mediasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-24 UTC.
[[["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-07-24 UTC."],[[["The Google Mobile Ads SDK allows you to specify a desired creative type for test queries, ensuring only creatives of that type are retrieved and rendered."],["To use this feature, set the `ft_ctype` request parameter within a bundle of extras in test mode, specifying the desired creative type like \"video_app_install\" or \"html5\"."],["This feature works with various creative types, formats, and ad units, as detailed in the provided table mapping creative types to their corresponding `ft_ctype` values."],["While useful for testing, using `ft_ctype` may increase the chance of no fills and only affects Google ads, not those from third-party ad networks through mediation."]]],["The Google Mobile Ads SDK allows specifying a creative type for test ad queries using the `ft_ctype` parameter within an extras object, passed to the ad request. This restricts ads to the defined type, potentially resulting in no fill. Valid `ft_ctype` values include `html5`, `image_app_install`, `video_app_install`, and others, each with supported formats (e.g., Banner, Interstitial). This parameter only works in test mode and impacts only Google ads, not third-party ads from mediated sources.\n"]]