Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
В таблице ниже перечислены атрибуты, которые можно задать с помощью методов googletag.PubAdsService.set(key, value) или googletag.Slot.set(key, value) . Эти атрибуты AdSense обычно задаются при создании или редактировании рекламных мест в Google Ad Manager. Эти методы позволяют издателю переопределять эти настройки на стороне сервера для каждого запроса.
Новый атрибут
Устаревший атрибут
Пример
Допустимые значения
adsense_channel_ids
google_ad_channel
271828183+314159265
Действительные идентификаторы каналов AdSense, разделенные знаком "+".
on , чтобы указать, что тег используется для тестирования и не должен включаться в подсчет или выставление счетов. Опустите этот параметр для производственного, нетестового трафика.
adsense_text_color
google_color_text
#000000
Шестнадцатеричные цвета
adsense_url_color
google_color_url
#000000
Шестнадцатеричные цвета
adsense_ui_features
google_ui_features
rc:10
rc:10 для очень закругленных углов, rc:6 для слегка закругленных углов, rc:0 для квадратных углов (по умолчанию)
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2024-10-26 UTC."],[[["The table outlines AdSense attributes that can be modified using `googletag.PubAdsService.set` or `googletag.Slot.set` methods, enabling publishers to override server-side settings."],["These attributes, typically managed in Google Ad Manager, include options for specifying ad channels, types, formats, colors, and test mode."],["Publishers can customize the appearance of ads with attributes controlling background, border, link, text, and URL colors, along with UI features like rounded corners."],["Additional attributes allow setting the document language and page URL for more context and control."],["The table provides examples of allowed values and links to relevant documentation for each attribute."]]],["Publishers can use `googletag.PubAdsService.set` or `googletag.Slot.set` to override server-side AdSense settings. Attributes include `adsense_channel_ids` (valid channel IDs), `adsense_ad_types` (text, image, text_image), and `adsense_ad_format` (various sizes). Color customization is possible via `adsense_background_color`, `adsense_border_color`, `adsense_link_color`, `adsense_text_color`, and `adsense_url_color` (hexadecimal). `adsense_test_mode` enables testing, and `document_language` sets language, `page_url` sets the page url.\n"]]