Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/KijijiCA/react-advertising
A JavaScript library for display ads in React applications.
https://github.com/KijijiCA/react-advertising
adops ads advertising dfp doubleclick doubleclick-for-publishers google-ad-manager gpt javascript-library library mit-license prebid prebid-library prebidjs react
Last synced: 3 months ago
JSON representation
A JavaScript library for display ads in React applications.
- Host: GitHub
- URL: https://github.com/KijijiCA/react-advertising
- Owner: KijijiCA
- License: mit
- Created: 2018-04-19T10:29:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-11T12:47:12.000Z (4 months ago)
- Last Synced: 2024-07-23T15:29:54.714Z (4 months ago)
- Topics: adops, ads, advertising, dfp, doubleclick, doubleclick-for-publishers, google-ad-manager, gpt, javascript-library, library, mit-license, prebid, prebid-library, prebidjs, react
- Language: JavaScript
- Homepage: https://kijijica.github.io/react-advertising/
- Size: 2.24 MB
- Stars: 68
- Watchers: 16
- Forks: 24
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-ads - GitHub - ebay-de/react-prebid/wiki) - React library to implement Google Ad Manager on your website. (Prebid Libraries / Tools)
README
# react-advertising
[![Test](https://github.com/eBayClassifiedsGroup/react-advertising/actions/workflows/ci.yml/badge.svg)](https://github.com/eBayClassifiedsGroup/react-advertising/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/eBayClassifiedsGroup/react-advertising/badge.svg?branch=master)](https://coveralls.io/github/eBayClassifiedsGroup/react-advertising?branch=master)
[![npm version](https://badge.fury.io/js/react-advertising.svg)](https://badge.fury.io/js/react-advertising)A JavaScript library for display ads in [React](https://reactjs.org)
applications.**Integrate ads in your app the “React way”: by adding ad components to your JSX
layout!**- One central configuration file for all your Google Publisher Tags and Prebid
placements (Prebid is optional)
- One provider component that handles all the “plumbing” with _googletag_ and
_pbjs_, nicely hidden away
- Ad slot components that get filled with creatives from the ad server when they
mount to the DOM
- Works well in single page applications with multiple routes
- Suitable for server-side-rendering
- Supports lazy loading, even for Prebid ads, individually configurable per ad
slot## Prerequisites
To use it, you need to have a [Google Ad Manager](https://admanager.google.com/)
account set up to deliver display ads through
[Google Publisher Tags](https://developers.google.com/publisher-tag/guides/get-started)
(GPT).Optionally, _react-advertising_ supports use of real-time header bidding with
[Prebid](http://prebid.org/overview/intro.html).## Demo
You can view a demo of this library online on _CodeSandbox_:
- [https://codesandbox.io/s/gptprebid-npmes6-k5czp](https://codesandbox.io/s/gptprebid-npmes6-k5czp)
The demo uses the same test Prebid configuration as the
[code examples from the official documentation](http://prebid.org/dev-docs/examples/basic-example.html).## Documentation
You can find documentation on how to use this library in the project's wiki:
- [Usage](https://github.com/eBayClassifiedsGroup/react-advertising/wiki/Usage)
- [Usage with Prebid](https://github.com/eBayClassifiedsGroup/react-advertising/wiki/Usage-with-Prebid)
- [Internet Explorer 11 Compatibility](https://github.com/eBayClassifiedsGroup/react-advertising/wiki/Internet-Explorer-11-Compatibility)
- [Advanced Usage](https://github.com/eBayClassifiedsGroup/react-advertising/wiki/Advanced-Usage)
- [API](https://github.com/eBayClassifiedsGroup/react-advertising/wiki/API)
- [Configuration](https://github.com/eBayClassifiedsGroup/react-advertising/wiki/Configuration)
- [Custom Events](https://github.com/eBayClassifiedsGroup/react-advertising/wiki/Custom-Events)
- [Plugins](https://github.com/eBayClassifiedsGroup/react-advertising/wiki/Plugins)## License
[MIT licensed](LICENSE)