FBRewardedVideoAdDelegate

The methods declared by the FBRewardedVideoAdDelegate protocol allow the adopting delegate to respond to messages from the FBRewardedVideoAd class and thus respond to operations such as whether the ad has been loaded, the person has clicked the ad or closed video/end card.

Extends Protocol:NSObject
Declared in:FBRewardedVideoAd.h
執行個體方法
rewardedVideoAd:didFailWithError:

Sent after an FBRewardedVideoAd fails to load the ad.

參數說明
rewardedVideoAd

An FBRewardedVideoAd object sending the message.

error

An error object containing details of the error.

- (void)
rewardedVideoAd: (FBRewardedVideoAd *)rewardedVideoAd
didFailWithError: (NSError *)error;
宣告於: FBRewardedVideoAd.h
rewardedVideoAdComplete:

Sent after the FBRewardedVideoAd object has finished playing the video successfully. Reward the user on this callback.

參數說明
rewardedVideoAd

An FBRewardedVideoAd object sending the message.

- (void) rewardedVideoAdComplete:(FBRewardedVideoAd *)rewardedVideoAd;
宣告於: FBRewardedVideoAd.h
rewardedVideoAdDidClick:

Sent after an ad has been clicked by the person.

參數說明
rewardedVideoAd

An FBRewardedVideoAd object sending the message.

- (void) rewardedVideoAdDidClick:(FBRewardedVideoAd *)rewardedVideoAd;
宣告於: FBRewardedVideoAd.h
rewardedVideoAdDidClose:

Sent after an FBRewardedVideoAd object has been dismissed from the screen, returning control to your application.

參數說明
rewardedVideoAd

An FBRewardedVideoAd object sending the message.

- (void) rewardedVideoAdDidClose:(FBRewardedVideoAd *)rewardedVideoAd;
宣告於: FBRewardedVideoAd.h
rewardedVideoAdDidLoad:

Sent when an ad has been successfully loaded.

參數說明
rewardedVideoAd

An FBRewardedVideoAd object sending the message.

- (void) rewardedVideoAdDidLoad:(FBRewardedVideoAd *)rewardedVideoAd;
宣告於: FBRewardedVideoAd.h
rewardedVideoAdServerFailed:

Sent if server call to publisher's reward endpoint did not return HTTP status code 200 or if the endpoint timed out.

參數說明
rewardedVideoAd

An FBRewardedVideoAd object sending the message.

- (void) rewardedVideoAdServerFailed:(FBRewardedVideoAd *)rewardedVideoAd;
宣告於: FBRewardedVideoAd.h
rewardedVideoAdServerSuccess:

Sent if server call to publisher's reward endpoint returned HTTP status code 200.

參數說明
rewardedVideoAd

An FBRewardedVideoAd object sending the message.

- (void) rewardedVideoAdServerSuccess:(FBRewardedVideoAd *)rewardedVideoAd;
宣告於: FBRewardedVideoAd.h
rewardedVideoAdWillClose:

Sent immediately before an FBRewardedVideoAd object will be dismissed from the screen.

參數說明
rewardedVideoAd

An FBRewardedVideoAd object sending the message.

- (void) rewardedVideoAdWillClose:(FBRewardedVideoAd *)rewardedVideoAd;
宣告於: FBRewardedVideoAd.h
rewardedVideoAdWillLogImpression:

Sent immediately before the impression of an FBRewardedVideoAd object will be logged.

參數說明
rewardedVideoAd

An FBRewardedVideoAd object sending the message.

- (void) rewardedVideoAdWillLogImpression:(FBRewardedVideoAd *)rewardedVideoAd;
宣告於: FBRewardedVideoAd.h