From 2bfa802153bd1a9586c7d7d34f30b3f60f1b2845 Mon Sep 17 00:00:00 2001 From: Google Publisher Tag Bot Date: Thu, 23 Jul 2026 19:48:12 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75302=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 | 39 ++++++------ types/google-publisher-tag/index.d.ts | 60 ++++++++++--------- types/google-publisher-tag/package.json | 2 +- 3 files changed, 52 insertions(+), 49 deletions(-) diff --git a/types/google-publisher-tag/google-publisher-tag-tests.ts b/types/google-publisher-tag/google-publisher-tag-tests.ts index b0e076de42f977..549823919ce694 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.20260713 -// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/4f163e00c83c227874a3515107e556362618c4c5 +// Tests for Google Publisher Tag 1.20260720 +// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/5e924db820c7183dac8a546278ff53b91ddeb147 // Test for googletag.cmd function test_googletag_cmd() { @@ -972,23 +972,6 @@ 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. @@ -1126,6 +1109,24 @@ function test_googletag_config_slotSettingsConfig_adsenseAttributes() { slot.setConfig({ adsenseAttributes: null }); } +// Test for googletag.config.SlotSettingsConfig.continueButton +function test_googletag_config_slotSettingsConfig_continueButton() { + const slot = googletag.defineSlot("/1234567/sports", [160, 600], "div")!.addService(googletag.pubads()); + // Configure continue button settings. + slot.setConfig({ + continueButton: { + font: "Arial", + fontColor: "white", + backgroundColor: "blue", + targetId: "target-div-id", + freqCapIntervalMinutes: 20, + }, + }); + + // Clear continue button settings. + slot.setConfig({ continueButton: null }); +} + // Test for googletag.config.InterstitialConfig.triggers function test_googletag_config_interstitialConfig_triggers() { // Define a GPT managed web interstitial ad slot. diff --git a/types/google-publisher-tag/index.d.ts b/types/google-publisher-tag/index.d.ts index 7857ba0e083d02..ce4a642ec30ecb 100644 --- a/types/google-publisher-tag/index.d.ts +++ b/types/google-publisher-tag/index.d.ts @@ -2041,7 +2041,7 @@ declare namespace googletag { /** * Settings to configure the continue button behavior. * - * @see {@link googletag.config.PageSettingsConfig.continueButton | PageSettingsConfig.continueButton} + * @see {@link googletag.config.SlotSettingsConfig.continueButton | SlotSettingsConfig.continueButton} */ interface ContinueButtonConfig { /** @@ -2503,34 +2503,6 @@ 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; } /** @@ -2915,6 +2887,36 @@ declare namespace googletag { * slot.setConfig({adsenseAttributes: null}); */ adsenseAttributes?: AdSenseAttributesConfig | 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 + * const slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div')! + * .addService(googletag.pubads()); + * // Configure continue button settings. + * slot.setConfig({ + * continueButton: { + * font: 'Arial', + * fontColor: 'white', + * backgroundColor: 'blue', + * targetId: 'target-div-id', + * freqCapIntervalMinutes: 20 + * } + * }); + * + * // Clear continue button settings. + * slot.setConfig({continueButton: null}); + */ + continueButton?: ContinueButtonConfig | null; } /** diff --git a/types/google-publisher-tag/package.json b/types/google-publisher-tag/package.json index 82f7f91204bca3..5386cab7542fcd 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.20260713.9999", + "version": "1.20260720.9999", "nonNpm": "conflict", "nonNpmDescription": "Google Publisher Tag", "projects": [