Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Information on NADView

fan-mi-baba edited this page Jun 27, 2023 · 7 revisions

Method

- (instancetype)init;
Generate NADView. You cannot auto scale the size of NADView.

- (instancetype)initWithIsAdjustAdSize:(BOOL)isAdjust;
Generate NADView.
If you set YES to Parameter (BOOL)isAdjust, the size of NADView will be auto scaled based on the width of the screen.

- (instancetype)initWithFrame:(CGRect)frame;
Generate NADView and assign the frame.
You cannot auto scale the size of NADView.

-(instancetype)initWithFrame:(CGRect)frame isAdjustAdSize:(BOOL)isAdjust
Generate NADView and assign the frame.
If you set YES to Parameter (BOOL)isAdjust, the size of NADView will be auto scaled based on the width of the screen.

- (void)setNendID:(NSInteger)spotID spotID:(NSString *)apiKey;
Set the adspace’s spotID and apiKey.

- (void)load;
Load will begin.

- (void)load:(NSDictionary *)parameter;
Load will begin.
The interval for retrying after a connection or signal error can be selected in NSDictionary.
However, please assign “retry” as the key and anywhere between 30-3600 for the value. If the value is outside of this, it will be set to the standard as 60 seconds. If the standard value is okay, then use load; for the parameter.

- (void) pause;
The ad will require to stop loading regularly

- (void) resume;
The ad will request to restart loading regularly

Property

@property (nonatomic, weak) id <NADViewDelegate> delegate;
Assign delegate object (optional)

@property (nonatomic) NSError error;
If referred, you can know the content of the signal error dynamically.

@property (nonatomic, copy) NSString *nendApiKey;
The ad space’s apiKey

@property (nonatomic) NSNumber *nendSpotID;
@property (nonatomic) NSInteger nendSpotId;
The ad space’s spotID

Delegate

- (void) nadViewDidFinishLoad:(NADView *)adView;
You will be notified if the ad is loaded successfully for the first time (optional).

- (void) nadViewDidReceiveAd:(NADView *)adView;
You will be notified if the ad is received successfully (optional).

- (void) nadViewDidFailToReceiveAd:(NADView *)adView;
You will be notified if the ad fails to receive (optional).

- (void) nadViewDidClickAd:(NADView *)adView;
You will be notified when the ad is clicked (optional).

- (void) nadViewDidClickInformation:(NADView *)adView;
You will be notified when the information button is clicked (optional).

日本語

nendSDK iOS について

SDKの組み込み

広告の表示

全般設定

導入サポート


English

About nendSDK iOS

SDK Implementation

Display Ads

Global Settings

Supports

Clone this wiki locally