An open API service indexing awesome lists of open source software.

https://github.com/bustle/gam

Typescript library for interfacing with Google Ad Manager
https://github.com/bustle/gam

Last synced: about 1 year ago
JSON representation

Typescript library for interfacing with Google Ad Manager

Awesome Lists containing this project

README

          

# gam
Typescript library for interfacing with Google Ad Manager

## Usage
Find full parameter documentation at https://support.google.com/admanager/answer/2623168
```typescript
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 })
```