GAMNativeEventHandler Class Reference

Inherits from NSObject
Conforms to POBNativeAdEvent
Declared in GAMNativeEventHandler.h

– initWithAdUnitId:adTypes:options:owFormatId:

Initializes and returns a event handler with the specified GAM ad unit

- (instancetype)initWithAdUnitId:(NSString *)adUnitId adTypes:(nonnull NSArray<GADAdLoaderAdType> *)adTypes options:(nullable NSArray<GADAdLoaderOptions*> *)options owFormatId:(NSString *)owFormatId

Parameters

adUnitId

GAM ad unit id

adTypes

An array of GADAdLoaderAdType

options

An array of GADAdLoaderOptions objects to configure how ads are loaded, or nil to use default options

owFormatId

Native format Id for OpenWrap’s custom native ad format

Return Value

Instance of GAMNativeEventHandler

Declared In

GAMNativeEventHandler.h

  configBlock

A configBlock that is called before event handler makes ad request call to GAM SDK. It passes GAMRequest which will be used to make ad request.

@property (nonatomic, copy) GAMNativeAdConfigBlock configBlock

Declared In

GAMNativeEventHandler.h

  nativeRenderingBlock

A config block to get the GAM’s native ad view rendered by publisher.

@property (nonatomic, copy) GAMNativeAdRenderingBlock nativeRenderingBlock

Declared In

GAMNativeEventHandler.h

  customNativeRenderingBlock

A config block to get the GAM’s custom native ad view rendered by publisher.

@property (nonatomic, copy) GAMCustomNativeAdRenderingBlock customNativeRenderingBlock

Declared In

GAMNativeEventHandler.h

  formatIds

Format Ids required for rendering GAM’s custom native format.

@property (nonatomic, strong) NSArray<NSString*> *formatIds

Declared In

GAMNativeEventHandler.h