iOS SDK Version
FBRewardedVideoAdDelegate
Objective-C
@protocolFBRewardedVideoAdDelegate<NSObject>
Swift
protocolFBRewardedVideoAdDelegate:NSObjectProtocol
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.
- Sent after an ad has been clicked by the person.
Declaration
Objective-C-(void)rewardedVideoAdDidClick:(nonnullFBRewardedVideoAd*)rewardedVideoAd;
SwiftoptionalfuncrewardedVideoAdDidClick(_rewardedVideoAd:FBRewardedVideoAd)
Parameters
- Sent when an ad has been successfully loaded.
Declaration
Objective-C-(void)rewardedVideoAdDidLoad:(nonnullFBRewardedVideoAd*)rewardedVideoAd;
SwiftoptionalfuncrewardedVideoAdDidLoad(_rewardedVideoAd:FBRewardedVideoAd)
Parameters
- Sent after an FBRewardedVideoAd object has been dismissed from the screen, returning control to your application.
Declaration
Objective-C-(void)rewardedVideoAdDidClose:(nonnullFBRewardedVideoAd*)rewardedVideoAd;
SwiftoptionalfuncrewardedVideoAdDidClose(_rewardedVideoAd:FBRewardedVideoAd)
Parameters
- Sent immediately before an FBRewardedVideoAd object will be dismissed from the screen.
Declaration
Objective-C-(void)rewardedVideoAdWillClose:(nonnullFBRewardedVideoAd*)rewardedVideoAd;
SwiftoptionalfuncrewardedVideoAdWillClose(_rewardedVideoAd:FBRewardedVideoAd)
Parameters
- Sent after an FBRewardedVideoAd fails to load the ad.
Declaration
Objective-C-(void)rewardedVideoAd:(nonnullFBRewardedVideoAd*)rewardedVideoAddidFailWithError:(nonnullNSError*)error;
SwiftoptionalfuncrewardedVideoAd(_rewardedVideoAd:FBRewardedVideoAd,didFailWithErrorerror:Error)
Parameters
- Sent after the FBRewardedVideoAd object has finished playing the video successfully. Reward the user on this callback.
Declaration
Objective-C-(void)rewardedVideoAdVideoComplete:(nonnullFBRewardedVideoAd*)rewardedVideoAd;
SwiftoptionalfuncrewardedVideoAdVideoComplete(_rewardedVideoAd:FBRewardedVideoAd)
Parameters
- Sent immediately before the impression of an FBRewardedVideoAd object will be logged.
Declaration
Objective-C-(void)rewardedVideoAdWillLogImpression:(nonnullFBRewardedVideoAd*)rewardedVideoAd;
SwiftoptionalfuncrewardedVideoAdWillLogImpression(_rewardedVideoAd:FBRewardedVideoAd)
Parameters
- Sent if server call to publisher’s reward endpoint returned HTTP status code 200.
Declaration
Objective-C-(void)rewardedVideoAdServerRewardDidSucceed:(nonnullFBRewardedVideoAd*)rewardedVideoAd;
SwiftoptionalfuncrewardedVideoAdServerRewardDidSucceed(_rewardedVideoAd:FBRewardedVideoAd)
Parameters
- Sent if server call to publisher’s reward endpoint did not return HTTP status code 200 or if the endpoint timed out.
Declaration
Objective-C-(void)rewardedVideoAdServerRewardDidFail:(nonnullFBRewardedVideoAd*)rewardedVideoAd;
SwiftoptionalfuncrewardedVideoAdServerRewardDidFail(_rewardedVideoAd:FBRewardedVideoAd)
Parameters