🚀 DAY 4 OF LAUNCH WEEK:Introducing Socket Scanning for OpenVSX Extensions.Learn more
Socket
Book a DemoInstallSign in
Socket

@maxim_mazurok/gapi.client.adexchangebuyer2-v2beta1

Package Overview
Dependencies
Maintainers
1
Versions
560
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maxim_mazurok/gapi.client.adexchangebuyer2-v2beta1

TypeScript typings for Ad Exchange Buyer API II v2beta1

latest
Source
npmnpm
Version
0.1.20251119
Version published
Maintainers
1
Created
Source

TypeScript typings for Ad Exchange Buyer API II v2beta1

Accesses the latest features for managing Authorized Buyers accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals. For detailed description please check documentation.

Installing

Install typings for Ad Exchange Buyer API II:

npm install @types/gapi.client.adexchangebuyer2-v2beta1 --save-dev

Usage

You need to initialize Google API client in your code:

gapi.load('client', () => {
  // now we can use gapi.client
  // ...
});

Then load api client wrapper:

gapi.client.load(
  'https://adexchangebuyer.googleapis.com/$discovery/rest?version=v2beta1',
  () => {
    // now we can use:
    // gapi.client.adexchangebuyer2
  },
);
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
gapi.client.load('adexchangebuyer2', 'v2beta1', () => {
  // now we can use:
  // gapi.client.adexchangebuyer2
});

Don't forget to authenticate your client before sending any request to resources:

// declare client_id registered in Google Developers Console
var client_id = '',
  scope = [
    // Manage your Ad Exchange buyer account configuration
    'https://www.googleapis.com/auth/adexchange.buyer',
  ],
  immediate = true;
// ...

gapi.auth.authorize(
  {client_id: client_id, scope: scope, immediate: immediate},
  authResult => {
    if (authResult && !authResult.error) {
      /* handle successful authorization */
    } else {
      /* handle authorization error */
    }
  },
);

After that you can use Ad Exchange Buyer API II resources:

For provenance information see Provenance section on NPM

FAQs

Package last updated on 19 Nov 2025

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