Google is committed to advancing racial equity for Black communities. See how.

InstreamAd.InstreamAdLoadCallback

public static abstract class InstreamAd.InstreamAdLoadCallback extends Object

An object for receiving event notifications of loading an instream ad.

Public Constructor Summary

Public Method Summary

void
onInstreamAdFailedToLoad(int errorCode)
This method is deprecated. Use onInstreamAdFailedToLoad(LoadAdError) instead.
void
onInstreamAdFailedToLoad(LoadAdError adError)
Called when an instream ad request failed.
void
onInstreamAdLoaded(InstreamAd ad)
Called when an instream ad successfully loads.

Inherited Method Summary

Public Constructors

public InstreamAd.InstreamAdLoadCallback ()

Public Methods

public void onInstreamAdFailedToLoad (int errorCode)

This method is deprecated.
Use onInstreamAdFailedToLoad(LoadAdError) instead.

Called when an instream ad request failed. The error code is one of the error code constants defined in AdRequest.

public void onInstreamAdFailedToLoad (LoadAdError adError)

Called when an instream ad request failed.

Parameters
adError LoadAdError detailing the cause of the failure. getCode() is one of the error code constants defined in AdRequest.

public void onInstreamAdLoaded (InstreamAd ad)

Called when an instream ad successfully loads.

Parameters
ad the loaded instream ad.