From a63175d1f388b28394bd6dcd4e1696ba0568628e Mon Sep 17 00:00:00 2001 From: Google Publisher Tag Bot Date: Thu, 16 Jul 2026 13:28:48 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75263=20Sync=20lat?= =?UTF-8?q?est=20changes=20to=20@types/google-publisher-tag=20by=20@google?= =?UTF-8?q?-publisher-tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: jimper --- .../google-publisher-tag-tests.ts | 21 +++++- types/google-publisher-tag/index.d.ts | 67 +++++++++++++++++++ types/google-publisher-tag/package.json | 2 +- 3 files changed, 87 insertions(+), 3 deletions(-) diff --git a/types/google-publisher-tag/google-publisher-tag-tests.ts b/types/google-publisher-tag/google-publisher-tag-tests.ts index 76b2ac809f1863..b0e076de42f977 100644 --- a/types/google-publisher-tag/google-publisher-tag-tests.ts +++ b/types/google-publisher-tag/google-publisher-tag-tests.ts @@ -1,5 +1,5 @@ -// Tests for Google Publisher Tag 1.20260525 -// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/3a5fc88b30b26709f89e5dc6f8f1bb725322c2b6 +// Tests for Google Publisher Tag 1.20260713 +// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/4f163e00c83c227874a3515107e556362618c4c5 // Test for googletag.cmd function test_googletag_cmd() { @@ -972,6 +972,23 @@ function test_googletag_config_pageSettingsConfig_autoRefresh() { googletag.setConfig({ autoRefresh: null }); } +// Test for googletag.config.PageSettingsConfig.continueButton +function test_googletag_config_pageSettingsConfig_continueButton() { + // Configure continue button settings. + googletag.setConfig({ + continueButton: { + font: "Arial", + fontColor: "white", + backgroundColor: "blue", + targetId: "target-div-id", + freqCapIntervalMinutes: 20, + }, + }); + + // Clear continue button settings. + googletag.setConfig({ continueButton: null }); +} + // Test for googletag.config.PrivacyTreatmentsConfig.treatments function test_googletag_config_privacyTreatmentsConfig_treatments() { // Disable personalization across the entire page. diff --git a/types/google-publisher-tag/index.d.ts b/types/google-publisher-tag/index.d.ts index d1a07c84c58dd0..7857ba0e083d02 100644 --- a/types/google-publisher-tag/index.d.ts +++ b/types/google-publisher-tag/index.d.ts @@ -2038,6 +2038,44 @@ declare namespace googletag { heavyAds?: boolean; } + /** + * Settings to configure the continue button behavior. + * + * @see {@link googletag.config.PageSettingsConfig.continueButton | PageSettingsConfig.continueButton} + */ + interface ContinueButtonConfig { + /** + * The font family of the button text. + * + * Example: `'Arial'` + */ + font?: string | null; + + /** + * The text color of the button. + * + * Example: `'white'`, `'#B73B87'` + */ + fontColor?: string | null; + + /** + * The background color of the button. + * + * Example: `'blue'`, `'#94B1FF'` + */ + backgroundColor?: string | null; + + /** + * The ID of the HTML element on which to render/trigger the continue button. + */ + targetId?: string | null; + + /** + * The frequency capping interval in minutes. + */ + freqCapIntervalMinutes?: number | null; + } + /** * Settings to control the use of lazy loading in GPT. * @@ -2465,6 +2503,34 @@ declare namespace googletag { * googletag.setConfig({autoRefresh: null}); */ autoRefresh?: AutoRefreshConfig | null; + + /** + * Settings to configure the continue button behavior for content pause ads. + * + * These settings allow customizing the appearance and behavior of the exit and + * continue reading interactions associated with content pause formats. + * + * Any continue button settings which are not specified when calling + * `setConfig()` will use a default value set by Google. + * + * To disable or clear all continue button settings, pass `null`. + * + * @example + * // Configure continue button settings. + * googletag.setConfig({ + * continueButton: { + * font: 'Arial', + * fontColor: 'white', + * backgroundColor: 'blue', + * targetId: 'target-div-id', + * freqCapIntervalMinutes: 20 + * } + * }); + * + * // Clear continue button settings. + * googletag.setConfig({continueButton: null}); + */ + continueButton?: ContinueButtonConfig | null; } /** @@ -2927,6 +2993,7 @@ declare namespace googletag { | "navBar" | "inactivity" | "endOfArticle" + | "continueReading" | /** @deprecated */ "backward"; /** diff --git a/types/google-publisher-tag/package.json b/types/google-publisher-tag/package.json index 144417954b8a35..82f7f91204bca3 100644 --- a/types/google-publisher-tag/package.json +++ b/types/google-publisher-tag/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/google-publisher-tag", - "version": "1.20260525.9999", + "version": "1.20260713.9999", "nonNpm": "conflict", "nonNpmDescription": "Google Publisher Tag", "projects": [