JWAdRules

@interface JWAdRules : NSObject

JWAdRules playback rules for the scheduled ads.

  • The first playlist item that will allow ad playback, index starting at 1.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) NSUInteger startOn;
  • Play ads only on every X playlist item. i.e. frequency 3 means only play on ads on every third playlist item.

    Note

    Use 0 to only play ads on the first playlist item.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) NSUInteger frequency;
  • Allows publishers to configure a minimum amount of time (in seconds) that needs to pass before the viewer is served another ad.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        NSUInteger timeBetweenAds;
  • Indicates which ad (if any) should play if playback starts by seeking.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        JWAdShown startOnSeek;