Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-advertising

Package Overview
Dependencies
Maintainers
0
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-advertising

Library for display ads in React applications

  • 4.2.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

react-advertising

Test Coverage Status npm version

A JavaScript library for display ads in React 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 account set up to deliver display ads through Google Publisher Tags (GPT).

Optionally, react-advertising supports use of real-time header bidding with Prebid.

Demo

You can view a demo of this library online on CodeSandbox:

The demo uses the same test Prebid configuration as the code examples from the official documentation.

Documentation

You can find documentation on how to use this library in the project's wiki:

License

MIT licensed

FAQs

Package last updated on 28 Aug 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc