Classes
The following classes are available globally.
-
Represents the ad’s properties, as it has been programmed in the Smart Manage interface.
See moreDeclaration
Objective-C
@interface SASAd : NSObject <NSCopying, NSCoding>
Swift
class SASAd : NSObject, NSCopying, NSCoding
-
Provides an Ad Choices button.
The Ad Choices button allows you to indicate easily that the content of the cell is a native ad and can redirect the user on a web page explaining how its data are used. It will automatically displays the standard Ad Choices icon.
Note
Displaying this Ad Choices button can be required when using some third party mediation SDK, check the documentation of each mediation SDK for more informations.Declaration
Objective-C
@interface SASAdChoicesView : UIButton
Swift
class SASAdChoicesView : UIButton
-
Represents an ad placement.
An ad placement aggregates several information like the site id, page id and format id that will be used when loading an ad.
You can use some optional parameters to forward a keyword targeting string or to create exclusion using the master flag.
See moreDeclaration
Objective-C
@interface SASAdPlacement : NSObject <NSCoding, NSCopying>
Swift
class SASAdPlacement : NSObject, NSCoding, NSCopying
-
The SASAdView class provides a view that automatically loads and displays a creative.
Warning
This class should never be instantiated and used directly, use the SASBannerView class instead.
Note
Starting to SDK 7.0.0, there isn’t any public SASInterstitialView anymore. Use a SASInterstitialManager or a SASRewardedVideoManager to load and display an interstitial ad and the underlying interstitial view will be instantiated and handled for you automatically.
Declaration
Objective-C
@interface SASAdView : UIView
Swift
class SASAdView : UIView
-
A SASAdViewContainerCell is a dedicated UITableViewCell which facilitates the integration of a SASBannerView inside a table view.
See moreDeclaration
Objective-C
@interface SASAdViewContainerCell : UITableViewCell
Swift
class SASAdViewContainerCell : UITableViewCell
-
Informations needed to configure the parallax effect manually.
See moreDeclaration
Objective-C
@interface SASParallaxInfos : NSObject
Swift
class SASParallaxInfos : NSObject
-
The SASBannerView class provides a view that automatically loads and displays a banner creative.
The SASBAnnerView class inherits from SASAdView, which contains its most useful methods like loadWithPlacement:. We recommend you to check the SASAdView API documentation as well.
You can listen for view or ad related events by implementing the SASBannerViewDelegate protocol. Implementing this delegate can be particulary useful to hide the banner if the ad loading fails, or in the contrary, to show the banner view instance only when an ad as been successfully loaded.
See more -
Base interstitial manager class.
This class provides methods used by manager classes handling interstitials.
Note
You should never instantiate this class yourself: use the subclass suitable for your use case instead.Declaration
Objective-C
@interface SASBaseInterstitialManager : NSObject
Swift
class SASBaseInterstitialManager : NSObject
-
This class implements the SASBidderAdapterProtocol.
You can use it as the base class to create your own in-app bidding adapter. Make sure your own class implements the SASBidderAdapterProtocol fully.
See moreDeclaration
Objective-C
@interface SASBidderAdapter : NSObject <SASBidderAdapterProtocol>
Swift
class SASBidderAdapter : NSObject, SASBidderAdapterProtocol
-
Class representing the price of a bidding ad response.
See moreDeclaration
Objective-C
@interface SASBiddingAdPrice : NSObject <NSCopying, NSCoding>
Swift
class SASBiddingAdPrice : NSObject, NSCopying, NSCoding
-
Class representing the response of a bidding call.
See moreDeclaration
Objective-C
@interface SASBiddingAdResponse : NSObject <NSCopying, NSCoding>
Swift
class SASBiddingAdResponse : NSObject, NSCopying, NSCoding
-
Class used to load an ad bidding response.
An ad bidding response contains a price that you can compare with other ad networks responses. You can render the ad corresponding to a bidding response using a SASInterstitialManager, a SASRewardedVideoManager or a SASBannerView.
See moreDeclaration
Objective-C
@interface SASBiddingManager : NSObject
Swift
class SASBiddingManager : NSObject
-
Hold the configuration of the Smart Display SDK.
Note
This singleton class is used for the initial SDK configuration. This configuration is MANDATORY and should be done before performing any ad call. Check the complete documentation for more information.Declaration
Objective-C
@interface SASConfiguration : NSObject
Swift
class SASConfiguration : NSObject
-
Retrieve some informations about the SASDisplayKit framework.
See moreDeclaration
Objective-C
@interface SASFrameworkInfo : NSObject
Swift
class SASFrameworkInfo : NSObject
-
Class used to load and display interstitial ads.
See moreDeclaration
Objective-C
@interface SASInterstitialManager : SASBaseInterstitialManager
Swift
class SASInterstitialManager : SASBaseInterstitialManager
-
Represents a native ad that has been retrieved from a third party mediation SDK.
Use this class to forward information from a mediation SDK to the Smart Display SDK so it can use it in its mediation waterfall.
See moreDeclaration
Objective-C
@interface SASMediationNativeAdInfo : NSObject
Swift
class SASMediationNativeAdInfo : NSObject
-
A SASNativeAd represents an ad that will be displayed by the native code of the application.
Note
Contrary to the SASAd object, the SASNativeAd only contains information that needs to be displayed but does not create any view for the actual display: your application is reponsible of the ad rendering.Declaration
Objective-C
@interface SASNativeAd : NSObject <NSCopying, NSCoding>
Swift
class SASNativeAd : NSObject, NSCopying, NSCoding
-
A SASNativeAdImage represents an image that will be displayed in a native ad.
See moreDeclaration
Objective-C
@interface SASNativeAdImage : NSObject <NSCopying, NSCoding>
Swift
class SASNativeAdImage : NSObject, NSCopying, NSCoding
-
A SASNativeAdManager instance can be used to request a native ad object from Smart delivery.
Each SASNativeAdManager instance corresponds to a placement, represented by a configuration.
Warning
When a native ad is retrieved through a manager, this native ad must be used then discarded before releasing the manager or loading a new ad. Failing to do so can lead to several issues, like the ad becoming non clickable.Declaration
Objective-C
@interface SASNativeAdManager : NSObject
Swift
class SASNativeAdManager : NSObject
-
Provides a standard view used to play SASNativeAd media.
Some SASNativeAd comes with a media (most of the time a video) that needs to be played. You can use the method [SASNativeAd hasMedia] to know if your SASNativeAd needs a SASNativeAdMediaView to be displayed properly. (See Native Ads documentation for more information).
Note
Native ad media cannot be played outside of a SASNativeAdMediaView.Declaration
Objective-C
@interface SASNativeAdMediaView : UIView
Swift
class SASNativeAdMediaView : UIView
-
Class that represents a reward object collected after an ad event.
See moreDeclaration
Objective-C
@interface SASReward : NSObject
Swift
class SASReward : NSObject
-
Class used to load and display rewarded interstitial ads.
See moreDeclaration
Objective-C
@interface SASRewardedVideoManager : SASBaseInterstitialManager
Swift
class SASRewardedVideoManager : SASBaseInterstitialManager
-
Additional implementation information that can be provided to the SDK when integrated as secondary SDK.
See moreDeclaration
Objective-C
@interface SASSecondaryImplementationInfo : NSObject
Swift
class SASSecondaryImplementationInfo : NSObject
-
Object representing a Seller Defined Audience. More info here: http://documentation.smartadserver.com/displaySDK/sellerdefinedaudience.html
See moreDeclaration
Objective-C
@interface SASSellerDefinedAudience : NSObject <NSCoding, NSCopying>
Swift
class SASSellerDefinedAudience : NSObject, NSCoding, NSCopying
-
Object representing a Seller Defined Content. More info here: http://documentation.smartadserver.com/displaySDK/sellerdefinedaudience.html
See moreDeclaration
Objective-C
@interface SASSellerDefinedContent : NSObject <NSCoding, NSCopying>
Swift
class SASSellerDefinedContent : NSObject, NSCoding, NSCopying
-
Object representing a Segment of both Seller Defined Audience and Seller Defined Content.
See moreDeclaration
Objective-C
@interface SASSellerDefinedSegment : NSObject <NSCoding, NSCopying>
Swift
class SASSellerDefinedSegment : NSObject, NSCoding, NSCopying