JSPM

@rough/rx-google-ad-manager-api

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q29559F
  • License MIT

A rough implementation of rxified Google Ad Manager API client

Package Exports

  • @rough/rx-google-ad-manager-api

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rough/rx-google-ad-manager-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Rx Google Ad Manager API

Build Status npm version

A rough implementation of rxified Google Ad Manager API client

Getting started

Installation

$ npm i @rough/rx-google-ad-manager-api

Create a test network

const AdManager = require('@rough/rx-google-ad-manager-api');

const adManager = new AdManager({
  apiVersion: 'v201808',
  applicationName: 'my-app',
  jwtAuth: {
    client_email: 'me@example.com',
    private_key: '-----BEGIN PRIVATE KEY-----...',
    private_key_id: '...',
    project_id: 'my-project'
  }
});

adManager.api.NetworkService.makeTestNetwork().subscribe(
  result => console.log(result),
  err => console.log('ERROR' + err)
);

Get current user within a network

const AdManager = require('@rough/rx-google-ad-manager-api');

const adManager = new AdManager({
  apiVersion: 'v201808',
  applicationName: 'my-app',
  networkCode: '01234567890',
  jwtAuth: {
    client_email: 'me@example.com',
    private_key: '-----BEGIN PRIVATE KEY-----...',
    private_key_id: '...',
    project_id: 'my-project'
  }
});

adManager.api.UserService.getCurrentUser().subscribe(
  result => console.log(result),
  err => console.log('ERROR' + err)
);