CISAdAnalyticsProtocol
Objective-C
@protocol CISAdAnalyticsProtocol <CISStreamAnalyticsProtocol>
/**
* Sets ad info.
* @param adInfo ad related info.
*/
- (void) setAdInfo:(NSDictionary*)adInfo;
/**
* Sets Ad PlayerInfo.
* @param adPlayerInfo ad player info.
*/
- (void) setAdPlayerInfo:(NSDictionary*)adPlayerInfo;
/**
* Reports ad failure.
* @param errorMessage error message.
* @param adInfo ad related info.
*/
- (void) reportAdFailed:(NSString*)errorMessage adInfo:(nullable NSDictionary*)adInfo;
/**
* Reports ad load event.
* @param adInfo ad related info.
*/
- (void) reportAdLoaded:(nullable NSDictionary*)adInfo;
/**
* Reports ad start event.
* @param adInfo ad related info.
*/
- (void) reportAdStarted:(nullable NSDictionary*)adInfo;
/**
* Reports ad end event.
*/
- (void) reportAdEnded;
/**
* Reports ad error event.
* @param errorMessage Error message.
* @param severity Severity of the error.
*/
- (void) reportAdError:(NSString*)errorMessage severity:(ErrorSeverity)severity;
/**
* Reports ad skip event.
*/
- (void) reportAdSkipped;
/**
* Reports ad player event.
* @param eventType Event type.
* @param details Event details.
*/
- (void) reportAdPlayerEvent:(NSString*)eventType details:(nullable NSDictionary*)details;
/**
* Reports ad metirc.
* @param key Metric key.
* @param value Metric value.
*/
- (void) reportAdMetric:(NSString*)key value:(id)value;
/**
* Used to set content session id.If already customer integrated EI using legacy api and wanted to integrate AI or other products using this sdk shall use this.
* @param sessionID Video playback session id.
*/
- (void) setContentSessionID:(int)sessionID;
/**
* This is used set the Ad framework object using which conviva can auto collect the data
* For Ex: AdsLoader for Google IMA/DAI SDK.
* @param adProxy object using which we can register for ad related events.
* @param info Any miscellaneous data that can be shared. Ex: application tell us if pre-loading is enabled.
*/
- (void) setAdListener:(nullable id)adProxy andInfo:(NSDictionary*)info;
@end
Swift
protocol CISAdAnalyticsProtocol : CISStreamAnalyticsProtocol
Undocumented
-
Sets ad info.
Declaration
Objective-C
- (void)setAdInfo:(nonnull NSDictionary *)adInfo;Swift
func setAdInfo(_ adInfo: [AnyHashable : Any])Parameters
adInfoad related info.
-
Sets Ad PlayerInfo.
Declaration
Objective-C
- (void)setAdPlayerInfo:(nonnull NSDictionary *)adPlayerInfo;Swift
func setAdPlayerInfo(_ adPlayerInfo: [AnyHashable : Any])Parameters
adPlayerInfoad player info.
-
Reports ad failure.
Declaration
Objective-C
- (void)reportAdFailed:(nonnull NSString *)errorMessage adInfo:(nullable NSDictionary *)adInfo;Swift
func reportAdFailed(_ errorMessage: String, adInfo: [AnyHashable : Any]?)Parameters
errorMessageerror message.
adInfoad related info.
-
Reports ad load event.
Declaration
Objective-C
- (void)reportAdLoaded:(nullable NSDictionary *)adInfo;Swift
func reportAdLoaded(_ adInfo: [AnyHashable : Any]?)Parameters
adInfoad related info.
-
Reports ad start event.
Declaration
Objective-C
- (void)reportAdStarted:(nullable NSDictionary *)adInfo;Swift
func reportAdStarted(_ adInfo: [AnyHashable : Any]?)Parameters
adInfoad related info.
-
Reports ad end event.
Declaration
Objective-C
- (void)reportAdEnded;Swift
func reportAdEnded() -
Reports ad error event.
Declaration
Objective-C
- (void)reportAdError:(nonnull NSString *)errorMessage severity:(ErrorSeverity)severity;Swift
func reportAdError(_ errorMessage: String, severity: ErrorSeverity)Parameters
errorMessageError message.
severitySeverity of the error.
-
Reports ad skip event.
Declaration
Objective-C
- (void)reportAdSkipped;Swift
func reportAdSkipped() -
Reports ad player event.
Declaration
Objective-C
- (void)reportAdPlayerEvent:(nonnull NSString *)eventType details:(nullable NSDictionary *)details;Swift
func reportAdPlayerEvent(_ eventType: String, details: [AnyHashable : Any]?)Parameters
eventTypeEvent type.
detailsEvent details.
-
Reports ad metirc.
Declaration
Objective-C
- (void)reportAdMetric:(nonnull NSString *)key value:(nonnull id)value;Swift
func reportAdMetric(_ key: String, value: Any)Parameters
keyMetric key.
valueMetric value.
-
Used to set content session id.If already customer integrated EI using legacy api and wanted to integrate AI or other products using this sdk shall use this.
Declaration
Objective-C
- (void)setContentSessionID:(int)sessionID;Swift
func setContentSessionID(_ sessionID: Int32)Parameters
sessionIDVideo playback session id.
-
This is used set the Ad framework object using which conviva can auto collect the data For Ex: AdsLoader for Google IMA/DAI SDK.
Declaration
Objective-C
- (void)setAdListener:(nullable id)adProxy andInfo:(nonnull NSDictionary *)info;Swift
func setAdListener(_ adProxy: Any?, andInfo info: [AnyHashable : Any])Parameters
adProxyobject using which we can register for ad related events.
infoAny miscellaneous data that can be shared. Ex: application tell us if pre-loading is enabled.