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
- Host: GitHub
- URL: https://github.com/bustle/gam
- Owner: bustle
- Created: 2021-06-03T23:05:29.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-20T13:43:43.000Z (about 4 years ago)
- Last Synced: 2025-02-24T14:24:02.755Z (over 1 year ago)
- Language: TypeScript
- Size: 419 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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 })
```