SCAdInfo
@interface SCAdInfo : NSObject
This class holds the advertisement information
-
id of the ad
Declaration
Objective-C
@property (nonatomic, copy) NSString *adId;
-
title of the ad
Declaration
Objective-C
@property (nonatomic, copy) NSString *title;
-
variant string
Declaration
Objective-C
@property (nonatomic, copy) NSString *variant;
-
The default value for this property is false. When the ad reaches a point where it can be skipped, the ad unit updates this property to true and sends the ON_AD_SKIPPABLE_STATE_CHANGE event. The video player can check this property at any time, but should always check it when the ON_AD_SKIPPABLE_STATE_CHANGE event is received.
Declaration
Objective-C
@property (nonatomic) BOOL skippable;
-
duration of the current commercial
Declaration
Objective-C
@property (nonatomic) NSInteger duration;
-
current time regarding the the current commercials duration
Declaration
Objective-C
@property (nonatomic) NSInteger currentTime;
-
an array of wrapper tags
Declaration
Objective-C
@property (nonatomic, strong) NSArray *wrapperTags;
-
if an error occurs, the error code, describing the error type
Declaration
Objective-C
@property (nonatomic) NSInteger errorCode;
-
universal ad id
Declaration
Objective-C
@property (nonatomic, strong) SCUniversalAdId *universalAdId;
-
Initalizer, takes a JSON formatted description string
Declaration
Objective-C
- (id)initWithDescription:(NSString *)description;
-
Get the original JSON formatted description as NSDictionary
Declaration
Objective-C
- (NSDictionary *)adInfoDescription;