BlazeGAMCustomNativeAdsDelegate - Android GAM
BlazeGAMCustomNativeAdsDelegate lets your app handle custom native ad events from BlazeGAM, and optionally return targeting and request extras.
For Experiences SDK 1.20 or later, use the GAM Next-Gen module equivalent: BlazeGAMCustomNativeAdsDelegate.
Override methods for logging, UI updates, or analytics.
onGAMCustomNativeAdError
fun onGAMCustomNativeAdError(errMsg: String) {}Called when an ad operation fails.
Parameters:
- errMsg: The error that occurred.
onGAMCustomNativeAdEvent
fun onGAMCustomNativeAdEvent(eventType: BlazeGoogleCustomNativeAdsHandler.EventType, adData: BlazeCustomNativeAdData) {}Called when an ad-related event occurs.
Parameters:
- eventType: Event type from BlazeGoogleCustomNativeAdsHandler.EventType.
- adData: Ad data for the event. See BlazeCustomNativeAdData.
customGAMTargetingProperties
suspend fun customGAMTargetingProperties(requestData: BlazeGamCustomNativeAdRequestInformation): Map<String, String> {
return emptyMap()
}Called before an ad request. Return custom targeting properties to attach to the request. See BlazeGamCustomNativeAdRequestInformation.
publisherProvidedId
suspend fun publisherProvidedId(requestData: BlazeGamCustomNativeAdRequestInformation): String? {
return null
}Publisher-provided ID for ad requests.
networkExtras
suspend fun networkExtras(requestData: BlazeGamCustomNativeAdRequestInformation): Bundle? {
return null
}Optional network-specific parameters for ad requests.
Updated 11 days ago
Did this page help you?
