@zeus-platform/load

0.1.9-alpha.3 • Public • Published

@zeus-platform/load

The purpose of the ZeusLoader component is to create and initialize the Zeus manager. This component interfaces with the hosted Zeus libraries to control bidding, key-value-pair management, as well as the delivery and display of creatives.

This component should be used in conjunction with the ZeusAd component, which will embed the advertisement element in to a given React application.

Usage

In simple cases, this module can be used only with a simple url prop.

import { ZeusLoader } from "@zeus-platform/load";

const PageTemplate = (props) => (
  <Page {...props}>
    <ZeusLoader url="https://test.zeustechnology.com" />
  </Page>
)

If you have a simple case, but wish to provide a list of key-value pairs, simply provide them using the keyValuePairs prop.

import { ZeusLoader } from "@zeus-platform/load";

const PageTemplate = (props) => (
 <Page {...props}>
   <ZeusLoader keyValuePairs={[{key:"value}]} url="https://test.zeustechnology.com" />
 </Page>
)

Dependencies (2)

Dev Dependencies (2)

Package Sidebar

Install

npm i @zeus-platform/load

Weekly Downloads

1

Version

0.1.9-alpha.3

License

Apache-2.0

Unpacked Size

18.3 kB

Total Files

5

Last publish

Collaborators

  • leojiwashpost
  • stemlem