POBImpression Class Reference

Inherits from NSObject
Declared in POBImpression.h

Overview

Holds the general information about an ad impression. Use this class setters to pass impression level information in bid request.

Instance Methods

– initWithImpressionId:adUnitId:

Initializes POBImpression object with given impression details

- (instancetype)initWithImpressionId:(NSString *)impId adUnitId:(NSString *)adUnitId

Parameters

impId

Unique identifier of the impression

adUnitId

The unique identifier which represents an ad placement on the app screen. This is the one you defined while creating profile mappings on the OpenWrap dashboard.

Return Value

Instance of POBImpression

Discussion

Warning: This class serves as base for other concrete impression classes, do not directly create an instance of this class

Declared In

POBImpression.h

– isValid

Checks if the impression is valid

- (BOOL)isValid

Return Value

YES/NO value

Declared In

POBImpression.h

Properties

  impressionId

This parameter is used to hold impression identifier

@property (nonatomic, readonly) NSString *impressionId

Declared In

POBImpression.h

  adUnitId

The unique identifier which represents an ad placement on the app screen. This is the one you defined while creating profile mappings on the OpenWrap dashboard.

@property (nonatomic, readonly) NSString *adUnitId

Declared In

POBImpression.h

  pmZoneId

This parameter is used to pass a zone ID for reporting.

@property (nonatomic, strong) NSString *pmZoneId

Declared In

POBImpression.h

  testCreativeId

This parameter is used to request a test creative.

@property (nonatomic, strong) NSString *testCreativeId

Declared In

POBImpression.h

  adPosition

Fold placement of the ad to be served. Note: If you are unable to determine it, you can set the default value as Unknown in this parameter.

@property (nonatomic, assign) POBAdPosition adPosition

See Also

Declared In

POBImpression.h

  customParams

Sets custom parameters in the form of a dictionary, to set multiple values against same key, use array.

@property (nonatomic, strong) NSDictionary *customParams

Discussion

Warning: Only use string or array of string as values

Exmaple :

customParams = @{@“hobbies”:@[@“sports”,@“reading”],@“age”:@“22”};

Declared In

POBImpression.h

  rewardedAd

Decides whether the ad is rewarded or not. Depending on the value of this parameter, impt.ext.reward param will be send in bid request with the value as 1.

@property (nonatomic, assign, getter=isRewardedAd) BOOL rewardedAd

Declared In

POBImpression.h