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 *)adUnitIdParameters
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)isValidReturn Value
YES/NO value
Declared In
POBImpression.h
Properties
impressionId
This parameter is used to hold impression identifier
@property (nonatomic, readonly) NSString *impressionIdDeclared 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 *adUnitIdDeclared In
POBImpression.h
pmZoneId
This parameter is used to pass a zone ID for reporting.
@property (nonatomic, strong) NSString *pmZoneIdDeclared In
POBImpression.h
testCreativeId
This parameter is used to request a test creative.
@property (nonatomic, strong) NSString *testCreativeIdDeclared 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 adPositionSee 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 *customParamsDiscussion
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 rewardedAdDeclared In
POBImpression.h