API Reference

SpotAdsProvider

Prop

Type

Description

apiKey

string

Your API key for Spot Ads (required)

useSpotAd

A custom React hook that provides methods to control ads.

showAd()

Displays a rewarded ad to the user.

Parameter

Type

Description

onSuccess

function

Callback when the ad is successfully viewed

onError

function

Callback for handling ad display errors

Last updated