From 04b103157f2a490b3d0aae03bae5ce90527bba9b Mon Sep 17 00:00:00 2001 From: Google Publisher Tag Bot Date: Tue, 31 Mar 2026 13:13:36 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74801=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 | 4 ++-- types/google-publisher-tag/index.d.ts | 17 ++++++++++------- types/google-publisher-tag/package.json | 2 +- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/types/google-publisher-tag/google-publisher-tag-tests.ts b/types/google-publisher-tag/google-publisher-tag-tests.ts index daab32d7c6febd..0a01cb84e907f1 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.20260309 -// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/b016c4944f367bc81fd32a072d0648154987849d +// Tests for Google Publisher Tag 1.20260330 +// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/9d3feab6f1efe54ba0195337deb1ec9e3557a5ca // Test for googletag.cmd function test_googletag_cmd() { diff --git a/types/google-publisher-tag/index.d.ts b/types/google-publisher-tag/index.d.ts index f65fde45470b27..535a689452c728 100644 --- a/types/google-publisher-tag/index.d.ts +++ b/types/google-publisher-tag/index.d.ts @@ -280,7 +280,8 @@ declare namespace googletag { function setConfig(config: config.PageSettingsConfig): void; /** - * Gets general configuration options for the page set by {@link setConfig}. + * Gets a frozen copy of the general configuration options for the page set by + * {@link setConfig}. * * Not all `setConfig()` properties are supported by this method. Supported * properties are: @@ -296,11 +297,11 @@ declare namespace googletag { * const config = googletag.getConfig(['adsenseAttributes', 'disableInitialLoad']); * * @param keys The keys of the configuration options to get. - * @return The configuration options for the slot. + * @return A frozen copy of the configuration options for the page. */ function getConfig( keys: string | string[], - ): Pick; + ): Readonly>; /** * The command array accepts a sequence of functions and invokes them in @@ -1685,11 +1686,13 @@ declare namespace googletag { * Sets general configuration options for this slot. * * @param slotConfig The configuration object. + * @return The slot object on which the method was called. */ - setConfig(slotConfig: config.SlotSettingsConfig): void; + setConfig(slotConfig: config.SlotSettingsConfig): Slot; /** - * Gets general configuration options for the slot set by {@link setConfig}. + * Gets a frozen copy of the general configuration options for the slot set by + * {@link setConfig}. * * Not all `setConfig()` properties are supported by this method. Supported * properties are: @@ -1707,11 +1710,11 @@ declare namespace googletag { * const config = slot.getConfig(['adsenseAttributes', 'categoryExclusion']); * * @param keys The keys of the configuration options to get. - * @return The configuration options for the slot. + * @return A frozen copy of the configuration options for the slot. */ getConfig( keys: string | string[], - ): Pick; + ): Readonly>; } /** Array of two numbers representing [width, height]. */ diff --git a/types/google-publisher-tag/package.json b/types/google-publisher-tag/package.json index 2cbb64710f155d..a6205dfc27342f 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.20260309.9999", + "version": "1.20260330.9999", "nonNpm": "conflict", "nonNpmDescription": "Google Publisher Tag", "projects": [