GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

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:

customGAMTargetingProperties

public typealias CustomGAMTargetingPropertiesHandler = () -> [String : String]

public var customGAMTargetingProperties: CustomGAMTargetingPropertiesHandler?

Called before an ad request. Return custom targeting properties to attach to the request.


Did this page help you?