SliderAd

@objc(YMASliderAd)
public protocol SliderAd

Undocumented

  • An object implementing the SliderAdDelegate protocol that receives events triggered by the user’s interaction with the ad.

    Declaration

    Swift

    var delegate: SliderAdDelegate? { get set }
  • Any string in the ad (set in the Partner interface).

    Warning

    This property is only used for working with ADFOX.

    Declaration

    Swift

    var info: String? { get }
  • Information about additional ad attributes

    Declaration

    Swift

    var adAttributes: AdAttributes? { get }
  • ads

    An array with nested ads.

    Declaration

    Swift

    var ads: [NativeAd] { get }
  • Creative ID from the ad response.

    Declaration

    Swift

    var creativeID: String? { get }
  • Campaign ID from the ad response.

    Declaration

    Swift

    var campaignID: String? { get }
  • Loads images if manual loading is selected.

    Warning

    All images are cached, but they can be deleted at any time, so you need to call this method before every ad impression.

    Declaration

    Swift

    func loadImages()
  • Sets values of all ad assets to native ad view, installs impression and click handlers.

    Declaration

    Swift

    @objc(bindWithAdView:error:)
    func bind(with adView: YMANativeAdView) throws

    Parameters

    adView

    NativeAdView with views for ad assets.

    error

    Binding error. - seealso:  NativeAdErrorCode for error codes.

    Return Value

    true if binding succeeded, otherwise false.