Giter Club home page Giter Club logo

react-advertising's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.