AdRequest.Builder

public class AdRequest.Builder 
extends AbstractAdRequestBuilder 

Builds an AdRequest .

Summary

Public constructors

Builder ()

Constructs a Builder .

Public methods

AdRequest
build ()

Constructs an AdRequest with the specified attributes.

AdRequest.Builder
self ()

Returns the self instance of a specified subtype.

Inherited methods

From com.google.android.gms.ads.AbstractAdRequestBuilder
T
@ CanIgnoreReturnValue
addCustomEventExtrasBundle (
Class < CustomEvent > adapterClass,
Bundle  customEventExtras
)

This method is deprecated.

Use addNetworkExtrasBundle instead.

T

Adds a custom targeting parameter.

T

Adds a custom targeting parameter with multiple values.

T

Adds a keyword for targeting purposes.

T

Adds extra parameters to pass to a specific ad network adapter.

T

Sets an ad string that represents an ad response.

T

Sets the content URL for a web site whose content matches the app's primary content.

T
@ CanIgnoreReturnValue
setHttpTimeoutMillis (int httpTimeoutMillis)

Sets a custom timeout for HTTPS calls made by the Google Mobile Ads SDK during an ad request.

T
@ CanIgnoreReturnValue
setNeighboringContentUrls ( List < String > neighboringContentUrls)

Sets URLs representing web content near an ad.

T
@ CanIgnoreReturnValue
setPlacementId (long placementId)

Sets a default placement ID for the loaded ad.

T

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

Public constructors

Builder

public  Builder 
()

Constructs a Builder .

Public methods

build

public  AdRequest 
 build 
()

Constructs an AdRequest with the specified attributes.

self

public  AdRequest.Builder 
 self 
()

Returns the self instance of a specified subtype.

Create a Mobile Website
View Site in Mobile | Classic
Share by: