Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
es/
node_modules/
# lib/
lib/
dist/
coverage/
npm-debug.log
Expand Down
1 change: 1 addition & 0 deletions docs/api/ReactGPT.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ A React component which renders [GPT](https://support.google.com/dfp_sb/answer/1
- `onSlotOnload`(optional) - An optional event handler function for `googletag.events.SlotOnloadEvent`.
- `renderWhenViewable`(optional) - An optional flag to indicate whether an ad should only render when it's fully in the viewport area.
- `viewableThreshold`(optional) - An optional number to indicate how much percentage of an ad area needs to be in a viewable area before rendering. Acceptable range is between `0` and `1`.
- `viewableTriggerTop`(optional) - An optional percentage figure to trigger render when the ad is x% below the fold.
- `onScriptLoaded`(optional) - An optional call back function to notify when the script is loaded.
- `onMediaQueryChange`(optional) - An optional call back function to notify when the media queries change on the break point specified in the `sizeMapping`.
- `style`(optional) - An optional object to be applied as `style` props to the container div. **This prop is only applied once in initial render.** If you want to apply style to the ad and change it frequently, apply style to the container.
Expand Down
Loading