Inherits from NSObject
Declared in ADVSInstreamAdLoader.h

Overview

ADVSInstreamAdLoader is for loading instream type advertisements. if you want to do so,

2 ways to be prepared by our sdk to load advertisements.

1) full control by sdk 1. instantiate this class. 2. call - bindToTableView 3. call - loadAd or loadAd:adCount:positions 4. call when your tableview is reloaded - reloadData

2) some control by sdk 1. instantiate this class. 2. call - loadAdWithReturn:adCount:positions 3. call when an advertisement is displayed - measureImp 4. call when an advertisement is clicked - sendClickEvent

That’s it!

Properties

delegate

This delegate tells loading instream advertisement results.

@property (nonatomic, weak) id<ADVSInstreamAdLoaderDelegate> delegate

Discussion

This delegate tells loading instream advertisement results.

Declared In

ADVSInstreamAdLoader.h

Instance Methods

bindToTableView:adSpotId:

binds this loader to your table view.

- (void)bindToTableView:(UITableView *)tableView adSpotId:(NSString *)adSpotId

Parameters

tableView

tableView to be binded by this loader

adSpotId

adSpotId to be registered in advance

Discussion

binds this loader to your table view.

Declared In

ADVSInstreamAdLoader.h

loadAd

starts loading advertisements for inserting cells to binded tableview and then reload your tableview Use it if you want to use parameters registered at the management webpage in advance.

- (void)loadAd

Discussion

starts loading advertisements for inserting cells to binded tableview and then reload your tableview Use it if you want to use parameters registered at the management webpage in advance.

Declared In

ADVSInstreamAdLoader.h

loadAd:positions:

starts loading advertisements for inserting limited cells to binded tableview and then reload your tableview, if you want to do so.

- (void)loadAd:(NSUInteger)adCount positions:(NSArray *)positions

Parameters

adCount

advertisement cell count to be put in tableView. If 0 is given, registered is selected.

positions

each advertisement cell are put at the position in tableView. If nil is given, registered is selected.

Discussion

starts loading advertisements for inserting limited cells to binded tableview and then reload your tableview, if you want to do so.

Declared In

ADVSInstreamAdLoader.h

loadAdWithReturn:adCount:positions:

starts loading advertisements for receiving advertisement informations, if you want to do so.

- (void)loadAdWithReturn:(NSString *)adSpotId adCount:(NSUInteger)adCount positions:(NSArray *)positions

Parameters

adSpotId

adSpotId to be registered in advance

adCount

advertisement information count to be received in the callback. If 0 is given, registered is selected.

positions

each position to be added into ADVSInstreamInfoModel in order to control ad position. If nil is given, registered is selected.

ex. [self.instreamAdLoader loadAdWithReturn:6 adCount:5 positions:@[@3,@6,@9,@12,@15]];

Discussion

starts loading advertisements for receiving advertisement informations, if you want to do so.

Declared In

ADVSInstreamAdLoader.h

measureImp:

send an impression record to log advertising performance.

- (void)measureImp:(id<ADVSInstreamInfoProtocol>)instreamInfoProtocol

Parameters

instreamInfoModel

advertisement information model to be received in loadAd:adCount:positions

Discussion

send an impression record to log advertising performance.

Declared In

ADVSInstreamAdLoader.h

reloadData

reload data in your binded tableview. if you used bindToTableView:adSpotId:, invoke this method instead of [your_table_view reloadData].

- (void)reloadData

Discussion

reload data in your binded tableview. if you used bindToTableView:adSpotId:, invoke this method instead of [your_table_view reloadData].

loadAd and loadAd:adCount:positions methods invoke this method internally, so you don’t have to invoke this method explicitly in normal use case.

Declared In

ADVSInstreamAdLoader.h

sendClickEvent:

send an click record to log advertising performance.

- (void)sendClickEvent:(id<ADVSInstreamInfoProtocol>)instreamInfoProtocol

Parameters

instreamInfoModel

advertisement information model to be received in loadAd:adCount:positions

Discussion

send an click record to log advertising performance.

Declared In

ADVSInstreamAdLoader.h

setAdSpotId:

sets an adSpotId. if you change an adSpotId dynamically, you can use it.

- (void)setAdSpotId:(NSString *)adSpotId

Parameters

adSpotId

adSpotId to be registered in advance

Discussion

sets an adSpotId. if you change an adSpotId dynamically, you can use it.

Declared In

ADVSInstreamAdLoader.h