You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-tads-widget

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tads-widget

A React component for displaying ads using tAds

0.0.3
npmnpm
Version published
Weekly downloads
517
204.12%
Maintainers
0
Weekly downloads
 
Created
Source

React tAds Widget

A React component for displaying ads using tAds.

1. Installation

npm install react-tads-widget

2. Add widget in your react component

import { TadsWidget } from 'react-tads-widget';

<TadsWidget id="unique-widget-id" debug={false} onShowReward={rewardUserByShow} onClickReward={rewardUserByClick} />

3. Config your widget

ParamTypeDefaultDescription
idrequiredstringYour widget id, which you get from manager of tAds
debugoptionalbooleanfalseflag which you can use for development mode (it doesn't collect data in your ads account and doesn't requests real ads)
onShowRewardoptionalfunctionnullcallback which will be called after user watches ad
onClickRewardoptionalfunctionnullcallback which will be called after user clicks ad
onAdsNotFoundoptionalfunctionnullcallback which will be called if we don't find ads for user

FAQs

Package last updated on 22 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts