You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@bustle/gam

Package Overview
Dependencies
Maintainers
22
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bustle/gam

Typescript library for interfacing with Google Ad Manager

0.0.3
npmnpm
Version published
Maintainers
22
Created
Source

gam

Typescript library for interfacing with Google Ad Manager

Usage

Find full parameter documentation at https://support.google.com/admanager/answer/2623168

import { createTaglessRequest } from 'gam'

const response = await createTaglessRequest({
  iu: '/1234/homepage', // Google Ad Manager ad unit code, including your Google Ad Manager network code
  sz: '320x50|300x50', // Creative size. To include multiple sizes use the pipe (|) character as a separator between them.
  c: 8362527364, // Correlator (or, cache-busting) value
  tile: 1, // Position of the tag on a webpage.
})

const creative = await response.body()
console.log({ creative })

FAQs

Package last updated on 28 Sep 2021

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