Like
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
and packages in Bit or NPM to the example. any of the 1 million componentstoggle 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
Name | Type | Default 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 |