يحتوي هذا القسم على مجموعة من الأمثلة والموارد ذات الصلة بمكتبة علامة "ناشر Google" (GPT).
يمكن أيضًا العثور على قدر كبير من المحتوى الوارد في هذا القسم في مستودع GitHub. تم إصدار نموذج التعليمات البرمجية والمستندات المرتبطة به كبرنامج مفتوح المصدر بموجب ترخيص Apache 2.0.
حاول إنشاء نموذج مخصص خاص بك باستخدام أداة إنشاء نماذج GPT (إصدار تجريبي)!
عرض إعلان بيني على الويب
عرض إعلان بيني على الويب مُدار بواسطة علامة "ناشر Google".
- TypeScript
- JavaScript
عرض إعلان محدود
عرض إعلان في حال عدم الموافقة على استخدام ملفات تعريف الارتباط أو غيرها من المعرّفات المحلية
- JavaScript
- TypeScript
Collapse empty ad slots
Automatically show/hide ad slots when certain criteria are met.
- TypeScript
- JavaScript
Display ads in the shadow DOM
Use GPT to request and render ads in the shadow DOM.
- TypeScript
- JavaScript
Control SRA batching
Precisely control which ad slots are requested when in Single Request Architecture (SRA) mode.
- JavaScript
- TypeScript
Key-value targeting
Use key-value targeting to control the ads eligible to serve to specific ad slots.
- JavaScript
- TypeScript