SVSContentData

Objective-C

@interface SVSContentData : NSObject <NSCopying, NSCoding>

Swift

class SVSContentData : NSObject, NSCopying, NSCoding

Represents the details of the content video. Passed to the AdServer for targeting. This object should be passed to your instance of SVSAdManager during initialization.

Content data initialization

  • Initialize a SVSContentData instance. This class forwards information about the video content to the AdServer.

    Declaration

    Objective-C

    - (nonnull instancetype)
                  initWithContentID:(nullable NSString *)contentID
                       contentTitle:(nullable NSString *)contentTitle
                   videoContentType:(nullable NSString *)videoContentType
               videoContentCategory:(nullable NSString *)videoContentCategory
               videoContentDuration:(nullable NSNumber *)videoContentDuration
                  videoSeasonNumber:(nullable NSNumber *)videoSeasonNumber
                 videoEpisodeNumber:(nullable NSNumber *)videoEpisodeNumber
                 videoContentRating:(nullable NSString *)videoContentRating
                  contentProviderID:(nullable NSString *)contentProviderID
                contentProviderName:(nullable NSString *)contentProviderName
          videoContentDistributorID:(nullable NSString *)videoContentDistributorID
        videoContentDistributorName:(nullable NSString *)videoContentDistributorName
                   videoContentTags:(nullable NSArray<NSString *> *)videoContentTags
                  externalContentID:(nullable NSString *)externalContentID
                         videoCMSID:(nullable NSString *)videoCMSID;

    Swift

    init(contentID: String?, contentTitle: String?, videoContentType: String?, videoContentCategory: String?, videoContentDuration: NSNumber?, videoSeasonNumber: NSNumber?, videoEpisodeNumber: NSNumber?, videoContentRating: String?, contentProviderID: String?, contentProviderName: String?, videoContentDistributorID: String?, videoContentDistributorName: String?, videoContentTags: [String]?, externalContentID: String?, videoCMSID: String?)

    Parameters

    contentID

    Identifier of the video content.

    contentTitle

    Name of the video content.

    videoContentType

    Type of the video content.

    videoContentCategory

    Category of the video content.

    videoContentDuration

    Duration of the video content (in seconds, as NSNumber).

    videoSeasonNumber

    Season number of the video content (as NSNumber).

    videoEpisodeNumber

    Episode number of the video content (as NSNumber).

    videoContentRating

    Permissible audiance for this video content.

    contentProviderID

    Provider identifier of the video content.

    contentProviderName

    Provider name of the video content.

    videoContentDistributorID

    Distributor identifier of the video content.

    videoContentDistributorName

    Distributor name of the video content.

    videoContentTags

    An array of keywords (as NSString) qualifying the video content.

    externalContentID

    Identifier of the video content for third party system.

    videoCMSID

    Identifier of management system in charge of the content.

    Return Value

    An initialized instance of SVSContentData.

Read only properties

  • Identifier of the content video.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *contentID;

    Swift

    var contentID: String? { get }
  • Name of the content video.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *contentTitle;

    Swift

    var contentTitle: String? { get }
  • Type of the content video.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *videoContentType;

    Swift

    var videoContentType: String? { get }
  • Category of the content video.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *videoContentCategory;

    Swift

    var videoContentCategory: String? { get }
  • Duration of the content video (in seconds).

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *videoContentDuration;

    Swift

    var videoContentDuration: NSNumber? { get }
  • Season number of the content video.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *videoSeasonNumber;

    Swift

    var videoSeasonNumber: NSNumber? { get }
  • Episode number of the content video.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *videoEpisodeNumber;

    Swift

    var videoEpisodeNumber: NSNumber? { get }
  • Permissible audiance of the content video (general audiences, parental guidance, adult, etc…).

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *videoContentRating;

    Swift

    var videoContentRating: String? { get }
  • Identifier of the content provider.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *contentProviderID;

    Swift

    var contentProviderID: String? { get }
  • Name of the content provider.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *contentProviderName;

    Swift

    var contentProviderName: String? { get }
  • Identifier of the content distributor.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *videoContentDistributorID;

    Swift

    var videoContentDistributorID: String? { get }
  • Name of the content distributor.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *videoContentDistributorName;

    Swift

    var videoContentDistributorName: String? { get }
  • Array of keywords describing the content video.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<NSString *> *videoContentTags;

    Swift

    var videoContentTags: [String]? { get }
  • Identifier of the content in a third party system.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *externalContentID;

    Swift

    var externalContentID: String? { get }
  • Identifier of the video content management system in charge of the content.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *videoCMSID;

    Swift

    var videoCMSID: String? { get }