Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions types/google-publisher-tag/google-publisher-tag-tests.ts
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down Expand Up @@ -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.
Expand Down
67 changes: 67 additions & 0 deletions types/google-publisher-tag/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -2927,6 +2993,7 @@ declare namespace googletag {
| "navBar"
| "inactivity"
| "endOfArticle"
| "continueReading"
| /** @deprecated */ "backward";

/**
Expand Down
2 changes: 1 addition & 1 deletion types/google-publisher-tag/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down