LogoLogo
Become a partnerSell a traffic
  • Introduction
    • Spot - Ads for mini-apps
    • How does Spot work?
    • Payments
      • How to make a deposit?
      • How to withdraw my earnings?
    • Advertisers - Campaigns
      • How to launch a campaign?
      • Moderation and rules
      • Post-campaign analysis
    • Publishers - Platforms
      • How to add a platform?
  • Code integration
    • Getting started
    • How to get an API key?
    • Code examples
  • Reference
    • API Reference
  • Other
    • Troubleshooting
    • Glossary
Powered by GitBook
LogoLogo

@ Spot Ads 2024

On this page
  1. Reference

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

PreviousCode examplesNextTroubleshooting

Last updated 6 months ago