این بخش شامل مجموعهای از مثالها و منابع مرتبط برای کتابخانه برچسب ناشر Google (GPT) است.
بسیاری از محتوای این بخش را میتوان در مخزن GitHub ما نیز یافت. کد نمونه و مستندات مرتبط به عنوان منبع باز تحت مجوز آپاچی 2.0 منتشر شده است.
سعی کنید نمونه سفارشی خود را با سازنده نمونه GPT (بتا) بسازید!
Collapse empty ad slots
Automatically show/hide ad slots when certain criteria are met.
- TypeScript
- جاوا اسکریپت
Control SRA batching
Precisely control which ad slots are requested when in Single Request Architecture (SRA) mode.
- جاوا اسکریپت
- TypeScript
Display ads in the shadow DOM
Use GPT to request and render ads in the shadow DOM.
- جاوا اسکریپت
- TypeScript
Tag pages with infinite content
Use GPT to dynamically generate new ad content.
- جاوا اسکریپت
- TypeScript
Key-value targeting
Use key-value targeting to control the ads eligible to serve to specific ad slots.
- جاوا اسکریپت
- TypeScript