React
1. Insert widget code in the app
Install the react-tads-widget package and initialize the widget using the following code example for the selected format:
2. Add your widget ID
Replace YOUR_WIDGET_ID with the corresponding widget ID you received from your personal account.
3. Set a reward (if needed)
If you want to incentivize users to view or click on the ads, add code to the onShowRewardCallback
and onClickRewardCallback
and onAdsNotFound
functions to reward the user for viewing and/or clicking, respectively.
You can see all configuration parameters in our npm-package
Last updated