# IconAdRequest


```
public final class IconAdRequest extends AdRequest
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [com.google.android.libraries.ads.mobile.sdk.common.AdRequest](https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AdRequest) ||
|   | ↳ | [com.google.android.libraries.ads.mobile.sdk.iconad.IconAdRequest](https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest) |

*** ** * ** ***

An `AdRequest` for `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAd`s. See `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest.Builder` for how to construct an `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest`.

## Summary

| ### Nested types |
|---|
| `public final class https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest.Builder` A builder for an icon ad request. |

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AdChoicesPlacement` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getAdChoicesPlacement()()` The `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AdChoicesPlacement` for the ad choices view. |
| `final boolean` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getAdPersistenceEnabled()()` Determines whether ad persistence is enabled for this request. |
| `final https://developer.android.com/reference/android/os/Bundle.html` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getAdSourceExtrasBundle(java.lang.Class)( @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/Class.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/admob/android/next-gen/reference/com/google/android/gms/ads/mediation/MediationExtrasReceiver> adapterClass )` Gets the extras bundle associated with an ad source's adapter, if present. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html>` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getCategoryExclusions()()` The slot-level ad category exclusion labels. |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getContentUrl()()` The content URL targeting information. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getCorrelator()()` Identifier used to group ad requests together. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html>` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getCustomTargeting()()` The custom targeting parameters. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html>` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getExcludedAppIds()()` The set of app IDs to exclude from the icon ad response. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/os/Bundle.html` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getGoogleExtrasBundle()()` The extra parameters to pass to Google ad network |
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdPlacement` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getIconAdPlacement()()` The `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdPlacement` for the request. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html>` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getKeywords()()` The targeting information keywords. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html>` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getNeighboringContentUrls()()` The list of neighboring content URLs or an empty `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html` if no URLs were set. |
| `final long` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getPlacementId()()` An identifier for a placement in reporting. |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getPublisherProvidedId()()` A publisher-provided identifier used for frequency capping, audience segmentation and targeting, sequential ad rotation, and other audience-based ad delivery controls across devices. |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getRequestAgent()()` The request agent string to identify the ad request's origin. |
| `boolean` | `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdRequest#getIsImageLoadingDisabled()()` Whether the SDK returns urls for image assets instead of downloading them. |

### Inherited methods

From [com.google.android.libraries.ads.mobile.sdk.common.AdRequest](https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AdRequest) `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AdRequest#getAdUnitId()()`

The ad unit ID.

## Public methods

### getAdChoicesPlacement

```
public @NonNull AdChoicesPlacement getAdChoicesPlacement()
```

The `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/common/AdChoicesPlacement` for the ad choices view.

### getAdPersistenceEnabled

```
public final boolean getAdPersistenceEnabled()
```

Determines whether ad persistence is enabled for this request.

### getAdSourceExtrasBundle

```
public final Bundle getAdSourceExtrasBundle(
    @NonNull Class<@NonNull MediationExtrasReceiver> adapterClass
)
```

Gets the extras bundle associated with an ad source's adapter, if present.

### getCategoryExclusions

```
public final @NonNull Set<@NonNull String> getCategoryExclusions()
```

The slot-level ad category exclusion labels. Default to an empty `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html` if not set.

### getContentUrl

```
public final String getContentUrl()
```

The content URL targeting information. Default to `null` if not set.

### getCorrelator

```
public @NonNull String getCorrelator()
```

Identifier used to group ad requests together.

### getCustomTargeting

```
public final @NonNull Map<@NonNull String, @NonNull String> getCustomTargeting()
```

The custom targeting parameters. Default to an empty `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html` if not set.

### getExcludedAppIds

```
public final @NonNull Set<@NonNull String> getExcludedAppIds()
```

The set of app IDs to exclude from the icon ad response.

### getGoogleExtrasBundle

```
public final @NonNull Bundle getGoogleExtrasBundle()
```

The extra parameters to pass to Google ad network

### getIconAdPlacement

```
public @NonNull IconAdPlacement getIconAdPlacement()
```

The `https://developers.google.com/admob/android/next-gen/reference/com/google/android/libraries/ads/mobile/sdk/iconad/IconAdPlacement` for the request.

### getKeywords

```
public final @NonNull Set<@NonNull String> getKeywords()
```

The targeting information keywords.

### getNeighboringContentUrls

```
public final @NonNull Set<@NonNull String> getNeighboringContentUrls()
```

The list of neighboring content URLs or an empty `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html` if no URLs were set.

### getPlacementId

```
public final long getPlacementId()
```

An identifier for a placement in reporting. A value set here will be set onto any ad returned by this request.

### getPublisherProvidedId

```
public final String getPublisherProvidedId()
```

A publisher-provided identifier used for frequency capping, audience segmentation and targeting, sequential ad rotation, and other audience-based ad delivery controls across devices.

### getRequestAgent

```
public final String getRequestAgent()
```

The request agent string to identify the ad request's origin.

### isImageLoadingDisabled

```
public boolean isImageLoadingDisabled()
```

Whether the SDK returns urls for image assets instead of downloading them.