Summary: Nested Classes | Methods | Inherited Methods | [Expand All]
public final class

# DynamicHeightSearchAdRequest

extends Object

java.lang.Object
↳ | com.google.android.gms.ads.search.DynamicHeightSearchAdRequest

## Class Overview

Use to configure Custom Search Ad (CSA) ad requests. A dynamic height search banner can contain multiple ads and the height is set dynamically based on the ad contents. Please cross-reference the property sections and properties with the official reference document: https://developers.google.com/custom-search-ads/docs/reference

## Summary

Nested Classes
class | DynamicHeightSearchAdRequest.Builder | Builds a `DynamicHeightSearchAdRequest`.

Public Methods
<T extends CustomEvent> Bundle | getCustomEventExtrasBundle(Class<T> adapterClass) Returns extra parameters to pass to a specific custom event adapter.
<T extends NetworkExtras> T | getNetworkExtras(Class<T> networkExtrasClass) Returns extra parameters to pass to a specific ad network adapter.
<T extends MediationAdapter> Bundle | getNetworkExtrasBundle(Class<T> adapterClass) Returns extra parameters to pass to a specific ad network adapter.
String | getQuery() Returns the query of the search ad request.
boolean | isTestDevice(Context context) Returns `true` if this device will receive test ads.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Methods

#### public Bundle getCustomEventExtrasBundle (Class<T> adapterClass)

Returns extra parameters to pass to a specific custom event adapter. Returns `null` if no custom event extras of the provided type were set.

#### public T getNetworkExtras (Class<T> networkExtrasClass)

Returns extra parameters to pass to a specific ad network adapter. Ad network adapters provide a `NetworkExtras` class. Returns `null` if no network extras of the provided type were set.

#### public Bundle getNetworkExtrasBundle (Class<T> adapterClass)

Returns extra parameters to pass to a specific ad network adapter. Returns `null` if no network extras of the provided type were set.

#### public String getQuery ()

Returns the query of the search ad request.

#### public boolean isTestDevice (Context context)

Returns `true` if this device will receive test ads.