Rewarded
Prerequisites
Always test with test ads
63a573b533f6fImplementation
Load an ad
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
loadRewardAd()
// Do any additional setup after loading the view.
}
func loadRewardAd() {
Adx3RewardAd.sharedManager().load(withPlacementID: "Your Placement ID", userId: "", delegate: self)
}
}#import "Adx3Framework/Adx3Ad.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self loadRewardAd];
}
- (void)loadRewardAd {
[[Adx3RewardAd sharedManager] loadAdWithPlacementID:@"Your Placement ID" userId:@"" delegate:self];
}
@endRegister for callbacks
Display the ad
Last updated