Class AdSource

com.yandex.mobile.ads.video.models.vmap

java.lang.Object ⇽ AdSource

public class AdSource

This class contains information about the source of an ad.

Constructors

AdSource(@NonNull final Parcel in)

Methods

int describeContents()
String getId()

Returns the ID of the ad source.

Boolean isAllowMultipleAds()

Returns a value that indicates whether the player should use VAST or other formats in the response.

Boolean isFollowRedirects()

Returns a value that indicates whether the player should redirect the user during an ad.

void writeToParcel(@NonNull final Parcel dest, final int flags)

Fields

final Parcelable.Creator< AdSource > CREATOR

Constructor Detail

AdSource

protected AdSource (@NonNull final Parcel in)

Method Detail

describeContents

public int describeContents ()

getId

public String getId ()

Returns the ID of the ad source.

Returns:

Ad source ID.

isAllowMultipleAds

public Boolean isAllowMultipleAds ()

Returns a value that indicates whether the player should use VAST or other formats in the response.

Returns:

A value that indicates whether the player should use VAST or other formats in the response.

isFollowRedirects

public Boolean isFollowRedirects ()

Returns a value that indicates whether the player should redirect the user during an ad.

Returns:

A value that indicates whether the player should redirect the user during an ad.

writeToParcel

public void writeToParcel (@NonNull final Parcel dest, final int flags)

Field Detail

CREATOR

public static CREATOR = new Parcelable.Creator<AdSource>() { @Override public AdSource createFromParcel(@NonNull final Parcel source) { return new AdSource(source); } @Override public AdSource[] newArray(final int size) { return new AdSource[size]; } }