googleads/google-publisher-tag-samples

Google Publisher Tag (GPT) code samples.

54
/ 100
Established

This collection provides ready-to-use code examples for publishers who want to integrate Google Publisher Tags (GPT) into their websites. It gives you practical JavaScript or TypeScript snippets that show how to display ads using Google Ad Manager. The primary user is a web developer or ad operations specialist responsible for implementing ads on a website.

Use this if you need concrete examples and working code to implement or troubleshoot Google Publisher Tags for ad serving on your website.

Not ideal if you are looking for a conceptual overview of Google Publisher Tags or a tool for managing ad campaigns rather than implementing the code.

ad-serving web-publishing ad-implementation digital-advertising website-monetization
No Package No Dependents
Maintenance 10 / 25
Adoption 8 / 25
Maturity 16 / 25
Community 20 / 25

How are scores calculated?

Stars

51

Forks

31

Language

TypeScript

License

Apache-2.0

Last pushed

Mar 10, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/googleads/google-publisher-tag-samples"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.