Để thảo luận và đưa ra ý kiến phản hồi về các sản phẩm của chúng tôi, hãy tham gia kênh Discord chính thức của Ad Manager trong máy chủ Cộng đồng quảng cáo và đo lường của Google.
SDK Quảng cáo của Google trên thiết bị di động cung cấp một API cho phép bạn chỉ định loại mẫu quảng cáo cho các truy vấn thử nghiệm. Khi thông số này được đặt, chỉ những mẫu quảng cáo thuộc loại được chỉ định mới được truy xuất và hiển thị.
Cách sử dụng
Để chỉ định một loại mẫu quảng cáo, hãy thêm tham số ft_ctype vào một đối tượng bổ sung rồi truyền đối tượng đó vào yêu cầu quảng cáo. Điều này có thể hạn chế những quảng cáo có sẵn và dẫn đến việc không có quảng cáo nào được hiển thị.
Tính năng này chỉ ảnh hưởng đến quảng cáo trên Google. Nếu đơn vị quảng cáo của bạn bật tính năng dàn xếp, thì quảng cáo được trả về từ các nguồn quảng cáo của bên thứ ba sẽ không tuân theo tham số ft_ctype. Bạn nên thử nghiệm với một đơn vị quảng cáo chưa bật tính năng dàn xếp.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003eGoogle Mobile Ads SDK allows you to specify a desired creative type for test queries using the \u003ccode\u003eft_ctype\u003c/code\u003e request parameter.\u003c/p\u003e\n"],["\u003cp\u003eThis parameter restricts the ads returned to the specified creative type for easier testing in test mode, affecting only Google ads.\u003c/p\u003e\n"],["\u003cp\u003eUsing this feature might increase the chances of no fills as it limits the available ads.\u003c/p\u003e\n"],["\u003cp\u003eMediation is not supported with this feature, so test with an ad unit without mediation enabled.\u003c/p\u003e\n"],["\u003cp\u003eReservation inventory and backfill-only ad units may need additional configuration to ensure accurate testing with \u003ccode\u003eft_ctype\u003c/code\u003e.\u003c/p\u003e\n"]]],["The Google Mobile Ads SDK allows specifying a creative type for test queries using the `ft_ctype` parameter. This parameter, added to an extras object in the ad request, restricts served ads to the specified type (e.g., `video_app_install`). Valid `ft_ctype` values include `html5`, `image_app_install`, `text_display`, etc. This only functions in Test Mode and doesn't affect reservation inventory or third-party mediation ads. Testing is recommended with a backfill-only ad unit without mediation enabled.\n"],null,["Select platform: [Android](/ad-manager/mobile-ads-sdk/android/test-creative-types \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/test-creative-types \"View this page for the iOS platform docs.\")\n\n\u003cbr /\u003e\n\nGoogle Mobile Ads SDK provides an API that lets you specify a creative type\nfor test queries. When the parameter is set, only creatives of the specified\ntype are retrieved and rendered.\n| **Important:** This feature doesn't apply to reservation inventory, which may still serve if not explicitly disabled for the specified slot. We recommend that you test with a backfill-only ad unit.\n\nUsage\n\nTo specify a creative type, include the `ft_ctype` parameter in an extras object\nand pass it to the ad request. This may restrict which ads are available and\nresult in no fill.\n**Note:** The `ft_ctype` parameter only works in [Test Mode](/ad-manager/mobile-ads-sdk/android/test-ads#enable_test_devices). \n\nKotlin \n\n val extras = Bundle()\n extras.putString(\"ft_ctype\", \"video_app_install\")\n\n val request = AdManagerAdRequest\n .Builder()\n .addNetworkExtrasBundle(AdMobAdapter::class.java, extras)\n .build()\n\nJava \n\n Bundle extras = new Bundle();\n extras.putString(\"ft_ctype\", \"video_app_install\");\n\n AdManagerAdRequest request = new AdManagerAdRequest\n .Builder()\n .addNetworkExtrasBundle(AdMobAdapter.class, extras)\n .build();\n\nThe following table lists the valid values for `ft_ctype`:\n\n| Creative Type | ft_ctype | Format |\n|----------------------|-------------------|----------------------------------------|\n| HTML5 | html5 | Banner, Interstitial, Rewarded |\n| App install image | image_app_install | Banner, Native, Interstitial, Rewarded |\n| Display image | image_display | Banner, Interstitial |\n| Display partial slot | partial_slot | Banner, Native, Interstitial |\n| App install text | text_app_install | Banner, Native, Interstitial |\n| Display text | text_display | Banner, Native, Interstitial |\n| Trueview | trueview | Interstitial, Rewarded |\n| App install video | video_app_install | Banner, Native, Interstitial, Rewarded |\n\nThis feature impacts Google ads only. If your ad unit enables\n[mediation](/ad-manager/mobile-ads-sdk/android/mediation), ads returned from third-party ad sources don't\nrespect the `ft_ctype` parameter. We recommend testing with an ad unit that\ndoesn't have mediation enabled."]]