PWAdsVideoBaseDelegate Protocol Reference

Conforms to NSObject
Declared in PWAdsVideoBase.h

Overview

A PWAdsVideoBaseDelegate is needed to receive callbacks about video ad status.

– videoBaseDidLoadAd:withAdExtensionData:

Called when the adsLoader receives a video ad and is ready to play.

- (void)videoBaseDidLoadAd:(PWAdsVideoBase *)videoBase withAdExtensionData:(NSDictionary *)adExtensionData

Parameters

videoBase

The video ad that was loaded.

adExtensionData

Ad Extension Data contains information about the rewarded video. i.e. remaining views count for the current user.

Discussion

Called when the adsLoader receives a video ad and is ready to play.

Declared In

PWAdsVideoBase.h

– videoBaseDidFinishedPreCaching:withAdExtensionData:

Called when the adsLoader finishes pre-caching the video ad.

- (void)videoBaseDidFinishedPreCaching:(PWAdsVideoBase *)videoBase withAdExtensionData:(NSDictionary *)adExtensionData

Parameters

videoBase

The video ad that was loaded.

adExtensionData

Ad Extension Data contains information about the rewarded video. i.e. remaining views count for the current user.

Discussion

Called when the adsLoader finishes pre-caching the video ad.

Declared In

PWAdsVideoBase.h

– videoBase:didFailError:withAdExtensionData:

Called when a video base fails to load ad.

- (void)videoBase:(PWAdsVideoBase *)videoBase didFailError:(NSError *)error withAdExtensionData:(NSDictionary *)adExtensionData

Parameters

videoBase

The video base that failed to load ad.

error

The error string detailing why the video ad failed to play.

adExtensionData

Ad Extension Data contains information about the rewarded video. i.e. remaining views count for the current user.

Discussion

Called when a video base fails to load ad.

Declared In

PWAdsVideoBase.h

– videoBaseDidPresentModal:withAdExtensionData:

Called after video base is presented.

- (void)videoBaseDidPresentModal:(PWAdsVideoBase *)videoBase withAdExtensionData:(NSDictionary *)adExtensionData

Parameters

videoBase

The full-screen video ad that is presented.

adExtensionData

Ad Extension Data contains information about the rewarded video. i.e. remaining views count for the current user.

Discussion

Called after video base is presented.

Declared In

PWAdsVideoBase.h

– videoBaseWillDismissModal:withAdExtensionData:

Called before video base dismisses video modal.

- (void)videoBaseWillDismissModal:(PWAdsVideoBase *)videoBase withAdExtensionData:(NSDictionary *)adExtensionData

Parameters

videoBase

The video ad that finished playing.

adExtensionData

Ad Extension Data contains information about the rewarded video. i.e. remaining views count for the current user.

Discussion

Called before video base dismisses video modal.

Declared In

PWAdsVideoBase.h

– videoBaseDidDismissModal:withAdExtensionData:

Called after video base dismisses video modal.

- (void)videoBaseDidDismissModal:(PWAdsVideoBase *)videoBase withAdExtensionData:(NSDictionary *)adExtensionData

Parameters

videoBase

The video ad that finished playing.

adExtensionData

Ad Extension Data contains information about the rewarded video. i.e. remaining views count for the current user.

Discussion

Called after video base dismisses video modal.

Declared In

PWAdsVideoBase.h

– videoBaseDidEndPlaybackSuccessfully:withRVResponseObject:andAdExtensionData:

Called after video base dismisses video modal.

- (void)videoBaseDidEndPlaybackSuccessfully:(PWAdsVideoBase *)videoBase withRVResponseObject:(NSDictionary *)customData andAdExtensionData:(NSDictionary *)adExtensionData

Parameters

videoBase

The video ad that finished playing.

customData

NSDictionary contaning relevant RVSuccess data from tracking event response. ie. amount of energy rewarded to the user.

adExtensionData

Ad Extension Data contains information about the rewarded video. i.e. remaining views count for the current user.

Discussion

Called after video base dismisses video modal.

Declared In

PWAdsVideoBase.h