DynamicHeightSearchAdRequest

public final class DynamicHeightSearchAdRequest extends Object

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: //developers.google.com/custom-search-ads/docs/reference

Nested Class Summary

class DynamicHeightSearchAdRequest.Builder Builds a DynamicHeightSearchAdRequest

Public Method Summary

<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.

Inherited Method Summary

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.

Send feedback about...

Need help? Visit our support page.