Rewarded Ads
Importing the SDK
#import <IASDKCore/IASDKCore.h>Adding Properties
@property (nonatomic, strong) IAAdSpot *adSpot;
@property (nonatomic, strong) IAFullscreenUnitController *unitController;
@property (nonatomic, strong) IAVideoContentController *videoContentController;
@property (nonatomic, strong) IAMRAIDContentController *mraidContentController;IAUserData *userData = [IAUserData build:^(id _Nonnull builder)
{
builder.age = 34;
builder.gender = IAUserGenderTypeMale;
builder.zipCode = @"90210";
}];
IASDKCore.sharedInstance.userData = userData;Example:
Creating the Ad Request Object
Initializing the Video Content Controller
Declaring Your View Controller
Initializing the MRAID Content Controller
Initializing the Full-Screen Unit Controller
Declaring Your View Controller
Initializing the Placement
Fetching the Ad
Fetching the Ad for Waterfall
Fetching the Ad for SDK Bidding
Generating the Token
Loading the Ad
Implementing Mandatory Protocols
Last updated
