Skip to content

Commit a63175d

Browse files
🤖 Merge PR #75263 Sync latest changes to @types/google-publisher-tag by @google-publisher-tag
Co-authored-by: jimper <jimper@users.noreply.github.com>
1 parent 3f20b39 commit a63175d

3 files changed

Lines changed: 87 additions & 3 deletions

File tree

‎types/google-publisher-tag/google-publisher-tag-tests.ts‎

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Tests for Google Publisher Tag 1.20260525
2-
// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/3a5fc88b30b26709f89e5dc6f8f1bb725322c2b6
1+
// Tests for Google Publisher Tag 1.20260713
2+
// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/4f163e00c83c227874a3515107e556362618c4c5
33

44
// Test for googletag.cmd
55
function test_googletag_cmd() {
@@ -972,6 +972,23 @@ function test_googletag_config_pageSettingsConfig_autoRefresh() {
972972
googletag.setConfig({ autoRefresh: null });
973973
}
974974

975+
// Test for googletag.config.PageSettingsConfig.continueButton
976+
function test_googletag_config_pageSettingsConfig_continueButton() {
977+
// Configure continue button settings.
978+
googletag.setConfig({
979+
continueButton: {
980+
font: "Arial",
981+
fontColor: "white",
982+
backgroundColor: "blue",
983+
targetId: "target-div-id",
984+
freqCapIntervalMinutes: 20,
985+
},
986+
});
987+
988+
// Clear continue button settings.
989+
googletag.setConfig({ continueButton: null });
990+
}
991+
975992
// Test for googletag.config.PrivacyTreatmentsConfig.treatments
976993
function test_googletag_config_privacyTreatmentsConfig_treatments() {
977994
// Disable personalization across the entire page.

‎types/google-publisher-tag/index.d.ts‎

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2038,6 +2038,44 @@ declare namespace googletag {
20382038
heavyAds?: boolean;
20392039
}
20402040

2041+
/**
2042+
* Settings to configure the continue button behavior.
2043+
*
2044+
* @see {@link googletag.config.PageSettingsConfig.continueButton | PageSettingsConfig.continueButton}
2045+
*/
2046+
interface ContinueButtonConfig {
2047+
/**
2048+
* The font family of the button text.
2049+
*
2050+
* Example: `'Arial'`
2051+
*/
2052+
font?: string | null;
2053+
2054+
/**
2055+
* The text color of the button.
2056+
*
2057+
* Example: `'white'`, `'#B73B87'`
2058+
*/
2059+
fontColor?: string | null;
2060+
2061+
/**
2062+
* The background color of the button.
2063+
*
2064+
* Example: `'blue'`, `'#94B1FF'`
2065+
*/
2066+
backgroundColor?: string | null;
2067+
2068+
/**
2069+
* The ID of the HTML element on which to render/trigger the continue button.
2070+
*/
2071+
targetId?: string | null;
2072+
2073+
/**
2074+
* The frequency capping interval in minutes.
2075+
*/
2076+
freqCapIntervalMinutes?: number | null;
2077+
}
2078+
20412079
/**
20422080
* Settings to control the use of lazy loading in GPT.
20432081
*
@@ -2465,6 +2503,34 @@ declare namespace googletag {
24652503
* googletag.setConfig({autoRefresh: null});
24662504
*/
24672505
autoRefresh?: AutoRefreshConfig | null;
2506+
2507+
/**
2508+
* Settings to configure the continue button behavior for content pause ads.
2509+
*
2510+
* These settings allow customizing the appearance and behavior of the exit and
2511+
* continue reading interactions associated with content pause formats.
2512+
*
2513+
* Any continue button settings which are not specified when calling
2514+
* `setConfig()` will use a default value set by Google.
2515+
*
2516+
* To disable or clear all continue button settings, pass `null`.
2517+
*
2518+
* @example
2519+
* // Configure continue button settings.
2520+
* googletag.setConfig({
2521+
* continueButton: {
2522+
* font: 'Arial',
2523+
* fontColor: 'white',
2524+
* backgroundColor: 'blue',
2525+
* targetId: 'target-div-id',
2526+
* freqCapIntervalMinutes: 20
2527+
* }
2528+
* });
2529+
*
2530+
* // Clear continue button settings.
2531+
* googletag.setConfig({continueButton: null});
2532+
*/
2533+
continueButton?: ContinueButtonConfig | null;
24682534
}
24692535

24702536
/**
@@ -2927,6 +2993,7 @@ declare namespace googletag {
29272993
| "navBar"
29282994
| "inactivity"
29292995
| "endOfArticle"
2996+
| "continueReading"
29302997
| /** @deprecated */ "backward";
29312998

29322999
/**

‎types/google-publisher-tag/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/google-publisher-tag",
4-
"version": "1.20260525.9999",
4+
"version": "1.20260713.9999",
55
"nonNpm": "conflict",
66
"nonNpmDescription": "Google Publisher Tag",
77
"projects": [

0 commit comments

Comments
 (0)