OOVASTVMAPAdSpot.h
1 #import "OOVASTAdSpot.h"
2 #import "OOVASTOffset.h"
3 
9 
10 @property (readonly, nonatomic) OOVASTOffset *timeOffset;
11 @property (readonly, nonatomic) NSString *breakType;
12 @property (readonly, nonatomic) NSString *breakId;
13 @property (readonly, nonatomic) NSString *adSourceId;
14 @property (readonly, nonatomic) BOOL allowMultipleAds;
15 @property (readonly, nonatomic) BOOL followRedirects;
16 
17 - (instancetype)initWithOffset:(OOVASTOffset *)timeOffset
18  duration:(NSInteger)duration
19  repeatAfter:(Float64)repeatAfter
20  breakType:(NSString *)breakType
21  breakId:(NSString *)breakId
22  sourceId:(NSString *)sourceId
23  allowMultipleAds:(BOOL)allowMultipleAds
24  followRedirects:(BOOL)followRedirects
25  element:(OOTBXMLElement *)element;
26 
27 - (instancetype)initWithOffset:(OOVASTOffset *)timeOffset
28  duration:(NSInteger)duration
29  repeatAfter:(Float64)repeatAfter
30  breakType:(NSString *)breakType
31  breakId:(NSString *)breakId
32  sourceId:(NSString *)sourceId
33  allowMultipleAds:(BOOL)allowMultipleAds
34  followRedirects:(BOOL)followRedirects
35  vastUrl:(NSURL *)vastUrl;
36 
40 - (BOOL)isRepeatable;
41 
45 - (void)markAsPlayed;
46 
50 - (void)markAsUnplayed;
51 
52 @end
void markAsPlayed()
mark the ad spot as played
BOOL isRepeatable()
return true if VMAP ad is repeatable, otherwise not
Represents all VAST information from a root VAST XML file.
Definition: OOVASTAdSpot.h:8
Definition: OOTBXML.h:54
NSString * breakType
Definition: OOVASTVMAPAdSpot.h:11
NSString * breakId
Definition: OOVASTVMAPAdSpot.h:12
BOOL allowMultipleAds
Definition: OOVASTVMAPAdSpot.h:14
Defines an offset for when ad-related events should happen around VAST ads.
Definition: OOVASTOffset.h:13
Defines all information around an Ad Spot as it was defined in a VMAP XML.
Definition: OOVASTVMAPAdSpot.h:8
NSString * adSourceId
Definition: OOVASTVMAPAdSpot.h:13
BOOL followRedirects
Definition: OOVASTVMAPAdSpot.h:15
void markAsUnplayed()
mark the ad spot as unplayed
OOVASTOffset * timeOffset
Definition: OOVASTVMAPAdSpot.h:10