AdResult
A wrapper class that represents either a success or a failure.
All public SDK methods that can result in an error use this class to represent the result of the work. You can use it to easily work with and process the results of the SDK.
val result = AdService.makeAdvertisement(adRequest, adEventListener = adEventListener)
result.get(
onSuccess = {
// Do smth with the Advertisement
},
onError = {
// Do smth with the AdError
}
)
Content copied to clipboard
Inheritors
Types
Properties
Functions
Link copied to clipboard
A method to get the AdError if the operation is completed with an error, or null if the operation is completed successfully.