ad

v1.0.5arrow_drop_down
v1.0.5
v1.0.4
v1.0.0
v0.0.1
STATUS
Passing
DOWNLOADS
345
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
12 KB
Ad component based on the React GPT component.
2 contributors
Install ad as a package?
Copied
npm i @bit/dennisdigital.components.atoms.ad
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right
Ad ()

Ad component based on the React GPT component. If you pass sizeMapping props instead of slotSize, React GPT listens for the viewport width change and refreshes an ad when the break point is hit.

Properties
NameTypeDefault value
adUnitPath
string'/359/di_testing_sites'
slotSize
array | string[300, 250]
sizeMapping
{"viewport":"array","slot":"array"}[][]
targeting
{}{}
extraClassNames
{}{}
context
{}{}
Test Summary

Ad with no props

Pass

check adUnitPath props type

Pass

check extraClassNames props

Pass
Help and resources