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;
-
a boolean value, that indicates if the ad can be skipped
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;