{% include "/admob/android/reference/_dackka-meta-tags.html" %}

LoadAdError

{% setvar page_path %}com/google/android/gms/ads/LoadAdError.html{% endsetvar %} {% setvar doc_root_path %}/admob/android/reference{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "android/_java_switcher2.md" %}

public final class LoadAdError extends AdError

java.lang.Object
   ↳ com.google.android.gms.ads.AdError
     ↳ com.google.android.gms.ads.LoadAdError

Error information about why an ad load operation failed.

Summary

Public fields

final @Nullable ResponseInfo

Public constructors

LoadAdError(
    int code,
    @NonNull String message,
    @NonNull String domain,
    @Nullable AdError cause,
    @Nullable ResponseInfo responseInfo
)

Creates a LoadAdError.

Public methods

@Nullable ResponseInfo

Gets the ResponseInfo of the error.

String

Returns a log friendly string version of this object.

Inherited Constants

From com.google.android.gms.ads.AdError
static final String
UNDEFINED_DOMAIN = "undefined"

The undefined error domain.

Inherited fields

From com.google.android.gms.ads.AdError
final @Nullable AdError
final int
final @NonNull String
final @NonNull String

Inherited methods

From com.google.android.gms.ads.AdError
@Nullable AdError

Gets the cause of this error or null if the cause is nonexistent or unknown.

int

Gets the error's code.

@NonNull String

Gets the domain of the error.

@NonNull String

Gets the message describing the error.

Public fields

responseInfo

public final @Nullable ResponseInfo responseInfo

Public constructors

LoadAdError

public LoadAdError(
    int code,
    @NonNull String message,
    @NonNull String domain,
    @Nullable AdError cause,
    @Nullable ResponseInfo responseInfo
)

Creates a LoadAdError.

Parameters
int code

the error code.

@NonNull String message

a message detailing the error.

@NonNull String domain

the error domain.

@Nullable AdError cause

the cause of this error or null if the cause is nonexistent or unknown.

@Nullable ResponseInfo responseInfo

ad response information.

Public methods

getResponseInfo

public @Nullable ResponseInfo getResponseInfo()

Gets the ResponseInfo of the error.

toString

public String toString()

Returns a log friendly string version of this object.