BnbAds Dev Docs
As a developer you can use our npm package to display ad on your website and generate revenue.
Installation
BnbAds Provider Setup
Wrap AdProvider around your application.
Props:
`region`: the region prop is not yet useful but will be implemented in the next iteration
`dev_wallet_address`: This address claims all the ad clicks under the respective provider
Display the Ad in your component
Now all. you need to do is use <DisplayAd /> in your component wherever you'd like to display the ad. Thats it! You just monetized your website
Claim the revenue generated 🥳
Visit https://bnb-ads.vercel.app/dashboard, log in using the address you provided in the prop of AdProvider.
Here you can view your claimable balance, click on claim now
Generate a zk-proof that you are indeed owed the amount displayed.
The sponsored transaction is sent to the chain along with proof, once it's verified you'll get your revenue straight in your wallet.
Last updated