APSVASTAdBreakDelegate
Objective-C
@protocol APSVASTAdBreakDelegate <NSObject>
Swift
protocol APSVASTAdBreakDelegate : NSObjectProtocol
Protocol definition for APSVASTAdBreakDelegate
-
Asks the delegate for the advertising identifier for this adbreak.
Declaration
Objective-C
- (NSString *_Nullable)advertisingIdentifierForAdBreak: (APSVASTAdBreak *_Nonnull)adBreak;
Swift
optional func advertisingIdentifier(for adBreak: APSVASTAdBreak) -> String?
Parameters
adBreak
The AdBreak object which asks for this information
-
Asks the delegate for the type of the advertising identifier for this adbreak. See https://iabtechlab.com/wp-content/uploads/2018/12/OTT-IFA-guidelines.final_Dec2018.pdf for available types
Declaration
Objective-C
- (NSString *_Nullable)advertisingIdentifierTypeForAdBreak: (APSVASTAdBreak *_Nonnull)adBreak;
Swift
optional func advertisingIdentifierType(for adBreak: APSVASTAdBreak) -> String?
Parameters
adBreak
The AdBreak object which asks for this information
-
Asks the delegate if Limit Ad Tracking is enabled for this adbreak.
Declaration
Objective-C
- (BOOL)limitAdTrackingStatusForAdBreak:(APSVASTAdBreak *_Nonnull)adBreak;
Swift
optional func limitAdTrackingStatus(for adBreak: APSVASTAdBreak) -> Bool
Parameters
adBreak
The AdBreak object which asks for this information
-
Asks the delegate for the current coordinates Return the coordinates in format
lat,lon
Declaration
Objective-C
- (NSString *_Nullable)locationCoordinatesForAdBreak: (APSVASTAdBreak *_Nonnull)adBreak;
Swift
optional func locationCoordinates(for adBreak: APSVASTAdBreak) -> String?
Parameters
adBreak
The AdBreak object which asks for this information
-
Asks the delegate if a conditional ad should be played or not
Declaration
Objective-C
- (BOOL)shouldPlayConditionalAdForAdBreak:(APSVASTAdBreak *_Nonnull)adBreak;
Swift
optional func shouldPlayConditionalAd(for adBreak: APSVASTAdBreak) -> Bool
Parameters
adBreak
The AdBreak object which wants to play a conditional ad