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
4 changes: 2 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.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() {
Expand Down
17 changes: 10 additions & 7 deletions types/google-publisher-tag/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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<config.PageSettingsConfig, "adsenseAttributes" | "disableInitialLoad" | "targeting">;
): Readonly<Pick<config.PageSettingsConfig, "adsenseAttributes" | "disableInitialLoad" | "targeting">>;

/**
* The command array accepts a sequence of functions and invokes them in
Expand Down Expand Up @@ -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:
Expand All @@ -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<config.SlotSettingsConfig, "categoryExclusion" | "targeting" | "adsenseAttributes">;
): Readonly<Pick<config.SlotSettingsConfig, "categoryExclusion" | "targeting" | "adsenseAttributes">>;
}

/** Array of two numbers representing [width, height]. */
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.20260309.9999",
"version": "1.20260330.9999",
"nonNpm": "conflict",
"nonNpmDescription": "Google Publisher Tag",
"projects": [
Expand Down