googleads / google-publisher-tag-samples

Google Publisher Tag (GPT) code samples.
https://developers.google.com/publisher-tag/samples
Apache License 2.0
38 stars 22 forks source link
admanager google googleads gpt samples

Google Publisher Tag Samples

Samples for the Google Publisher Tag (GPT) library.

You can try these samples on our developer site.

Project structure

dist/ contains complete GPT samples, built from the templates in samples/. Each directory represents a single GPT sample, and each sample has multiple output formats:

samples/ contains templates used to generate complete GPT samples. Each template is stored in its own directory and consists of:

src/ contains the code necessary to transform templates into complete samples.

test/ contains tests for src/.

Development

Build

  1. npm i - Install dependencies.
  2. npm run build - Build all targets and update dist/ folder.

Test

  1. npm run test - Run all tests.

Contributing

Pull requests are welcome! Please sign this Google Code contributor agreement before submitting.