BlazeGAMDelegate (Deprecated)
This type is deprecated. Use BlazeGAMCustomNativeAdsDelegate instead.
BlazeGAMDelegate lets your app handle custom native ad events from BlazeGAM, and optionally return targeting properties.
Override handlers for logging, UI updates, or analytics.
onGAMAdError
public typealias OnGAMAdErrorHandler = (_ error: Error) -> Void
public var onGAMAdError: OnGAMAdErrorHandler?Called when an ad operation fails.
Parameters:
- error: The error that occurred.
onGAMAdEvent
public typealias OnGAMAdEventHandler = ((eventType: BlazeGoogleCustomNativeAdsHandlerEventType, adData: BlazeCustomAdData)) -> Void
public var onGAMAdEvent: OnGAMAdEventHandler?Called when an ad-related event occurs.
Parameters:
- eventType: Event type from BlazeGoogleCustomNativeAdsHandlerEventType.
- adData: Ad data for the event. See BlazeCustomAdData.
customGAMTargetingProperties
public typealias CustomGAMTargetingPropertiesHandler = () -> [String : String]
public var customGAMTargetingProperties: CustomGAMTargetingPropertiesHandler?Called before an ad request. Return custom targeting properties to attach to the request.
Updated about 2 months ago
Did this page help you?
