<br />

Google Mobile Ads SDK (Legacy) provides an API that lets you specify a creative type
for test queries. When the parameter is set, only creatives of the specified
type are retrieved and rendered.

> [!IMPORTANT]
> **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.

## Usage

To specify a creative type, include the `ft_ctype` parameter in an extras object
and pass it to the ad request. This may restrict which ads are available and
result in no fill.

> [!NOTE]
> **Note:** The `ft_ctype` parameter only works in [Test Mode](https://developers.google.com/ad-manager/mobile-ads-sdk/android/test-ads.md.txt#enable_test_devices).

### Kotlin

```kotlin
val extras = Bundle()
extras.putString("ft_ctype", "video_app_install")

val request = AdManagerAdRequest
  .Builder()
  .addNetworkExtrasBundle(AdMobAdapter::class.java, extras)
  .build()
```

### Java

```java
Bundle extras = new Bundle();
extras.putString("ft_ctype", "video_app_install");

AdManagerAdRequest request = new AdManagerAdRequest
  .Builder()
  .addNetworkExtrasBundle(AdMobAdapter.class, extras)
  .build();
```

The following table lists the valid values for `ft_ctype`:

| Creative Type | ft_ctype | Format |
|---|---|---|
| HTML5 | html5 | Banner, Interstitial, Rewarded |
| App install image | image_app_install | Banner, Native, Interstitial, Rewarded |
| Display image | image_display | Banner, Interstitial |
| Display partial slot | partial_slot | Banner, Native, Interstitial |
| App install text | text_app_install | Banner, Native, Interstitial |
| Display text | text_display | Banner, Native, Interstitial |
| Trueview | trueview | Interstitial, Rewarded |
| App install video | video_app_install | Banner, Native, Interstitial, Rewarded |

This feature impacts Google ads only. If your ad unit enables
[mediation](https://developers.google.com/ad-manager/mobile-ads-sdk/android/mediation.md.txt), ads returned from third-party ad sources don't
respect the `ft_ctype` parameter. We recommend testing with an ad unit that
doesn't have mediation enabled.