googleads/google-publisher-tag-samples
Google Publisher Tag (GPT) code samples.
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.
Stars
51
Forks
31
Language
TypeScript
License
Apache-2.0
Category
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.
Related tools
jaanauati/react-dfp
A React implementation of the Google DFP/GPT api. https://react-dfp.surge.sh
KijijiCA/react-advertising
A JavaScript library for display ads in React applications.
ichiroc/chatgpt2scratch
ChatGPT for Scratch
googleads/google-publisher-tag-playground
An interactive code playground for Google Publisher Tag (GPT) samples.
logankilpatrick/ChatGPT-Simple
Build a simple locally hosted version of ChatGPT in less than 100 lines of code