java.lang.Object | |
↳ | com.google.android.gms.ads.AdListener |
A listener for receiving notifications during the lifecycle of an ad.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when a click is recorded for an ad.
| |||||||||||
Called when the user is about to return to the application after clicking on an ad.
| |||||||||||
Called when an ad request failed.
| |||||||||||
Called when an impression is recorded for an ad.
| |||||||||||
Called when an ad leaves the application (e.g., to go to the browser).
| |||||||||||
Called when an ad is received.
| |||||||||||
Called when an ad opens an overlay that covers the screen.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Called when a click is recorded for an ad. At the current time, this method is only used with native ads originating from Google in one of the system-defined formats (App Install or Content).
Called when the user is about to return to the application after clicking on an ad.
Called when an ad request failed. The error code is usually ERROR_CODE_INTERNAL_ERROR
, ERROR_CODE_INVALID_REQUEST
, ERROR_CODE_NETWORK_ERROR
, or ERROR_CODE_NO_FILL
.
Parameters | |
---|---|
errorCode |
int
|
Called when an impression is recorded for an ad. At the current time, this method is only used with native ads originating from Google in one of the system-defined formats (App Install or Content).
Called when an ad leaves the application (e.g., to go to the browser).
Called when an ad is received.
Called when an ad opens an overlay that covers the screen.