Skip to content

Commit 0374b10

Browse files
🤖 Merge PR DefinitelyTyped#74662 Sync latest changes to @types/google-publisher-tag by @google-publisher-tag
Co-authored-by: jimper <jimper@users.noreply.github.com>
1 parent 6786ff0 commit 0374b10

File tree

3 files changed

+3
-124
lines changed

3 files changed

+3
-124
lines changed

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

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Tests for Google Publisher Tag 1.20260216
2-
// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/782098b359480f3e61d7be7ec5e922406e9775a3
1+
// Tests for Google Publisher Tag 1.20260309
2+
// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/27374b01c38e0f8a66fe8181574edee6d5570200
33

44
// Test for googletag.cmd
55
function test_googletag_cmd() {
@@ -953,46 +953,6 @@ function test_googletag_config_slotSettingsConfig_adsenseAttributes() {
953953
slot.setConfig({ adsenseAttributes: null });
954954
}
955955

956-
// Test for googletag.config.ComponentAuctionConfig.auctionConfig
957-
function test_googletag_config_componentAuctionConfig_auctionConfig() {
958-
const componentAuctionConfig = {
959-
// Seller URL should be https and the same as decisionLogicURL's origin
960-
seller: "https://testSeller.com",
961-
decisionLogicURL: "https://testSeller.com/ssp/decision-logic.js",
962-
interestGroupBuyers: ["https://example-buyer.com"],
963-
auctionSignals: { auction_signals: "auction_signals" },
964-
sellerSignals: { seller_signals: "seller_signals" },
965-
perBuyerSignals: {
966-
// listed on interestGroupBuyers
967-
"https://example-buyer.com": {
968-
per_buyer_signals: "per_buyer_signals",
969-
},
970-
},
971-
};
972-
973-
const auctionSlot = googletag.defineSlot("/1234567/example", [160, 600])!;
974-
975-
// To add configKey to the component auction:
976-
auctionSlot.setConfig({
977-
componentAuction: [
978-
{
979-
configKey: "https://testSeller.com",
980-
auctionConfig: componentAuctionConfig,
981-
},
982-
],
983-
});
984-
985-
// To remove configKey from the component auction:
986-
auctionSlot.setConfig({
987-
componentAuction: [
988-
{
989-
configKey: "https://testSeller.com",
990-
auctionConfig: null,
991-
},
992-
],
993-
});
994-
}
995-
996956
// Test for googletag.config.InterstitialConfig.triggers
997957
function test_googletag_config_interstitialConfig_triggers() {
998958
// Define a GPT managed web interstitial ad slot.

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

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -2468,11 +2468,6 @@ declare namespace googletag {
24682468
* ```
24692469
*/
24702470
interface SlotSettingsConfig {
2471-
/**
2472-
* An array of component auctions to be included in an on-device ad auction.
2473-
*/
2474-
componentAuction?: ComponentAuctionConfig[] | null;
2475-
24762471
/**
24772472
* Settings that configure interstitial ad slot behavior.
24782473
*
@@ -2670,82 +2665,6 @@ declare namespace googletag {
26702665
adsenseAttributes?: AdSenseAttributesConfig | null;
26712666
}
26722667

2673-
/**
2674-
* An object representing a single component auction in a on-device ad auction.
2675-
*
2676-
* @see [Protected Audience API Seller guide: run ad auctions](https://developer.chrome.com/docs/privacy-sandbox/fledge-api/ad-auction/)
2677-
*/
2678-
interface ComponentAuctionConfig {
2679-
/**
2680-
* The configuration key associated with this component auction.
2681-
*
2682-
* This value must be non-empty and should be unique. If two
2683-
* `ComponentAuctionConfig` objects share the same configKey value,
2684-
* the last to be set will overwrite prior configurations.
2685-
*/
2686-
configKey: string;
2687-
2688-
/**
2689-
* An auction configuration object for this component auction.
2690-
*
2691-
* If this value is set to `null`, any existing configuration for
2692-
* the specified `configKey` will be deleted.
2693-
*
2694-
* @example
2695-
*
2696-
* const componentAuctionConfig = {
2697-
* // Seller URL should be https and the same as decisionLogicURL's origin
2698-
* seller: 'https://testSeller.com',
2699-
* decisionLogicURL: 'https://testSeller.com/ssp/decision-logic.js',
2700-
* interestGroupBuyers: [
2701-
* 'https://example-buyer.com',
2702-
* ],
2703-
* auctionSignals: {auction_signals: 'auction_signals'},
2704-
* sellerSignals: {seller_signals: 'seller_signals'},
2705-
* perBuyerSignals: {
2706-
* // listed on interestGroupBuyers
2707-
* 'https://example-buyer.com': {
2708-
* per_buyer_signals: 'per_buyer_signals',
2709-
* },
2710-
* },
2711-
* };
2712-
*
2713-
* const auctionSlot = googletag.defineSlot('/1234567/example', [160, 600])!;
2714-
*
2715-
* // To add configKey to the component auction:
2716-
* auctionSlot.setConfig({
2717-
* componentAuction: [{
2718-
* configKey: 'https://testSeller.com',
2719-
* auctionConfig: componentAuctionConfig
2720-
* }]
2721-
* });
2722-
*
2723-
* // To remove configKey from the component auction:
2724-
* auctionSlot.setConfig({
2725-
* componentAuction: [{
2726-
* configKey: 'https://testSeller.com',
2727-
* auctionConfig: null
2728-
* }]
2729-
* });
2730-
*
2731-
* @see [Protected Audience API: Initiating an On-Device Auction](https://github.com/WICG/turtledove/blob/main/FLEDGE.md#21-initiating-an-on-device-auction)
2732-
*/
2733-
auctionConfig: {
2734-
seller: string;
2735-
decisionLogicURL: string;
2736-
trustedScoringSignalsURL?: string;
2737-
interestGroupBuyers?: string[];
2738-
auctionSignals?: unknown;
2739-
sellerSignals?: unknown;
2740-
sellerTimeout?: number;
2741-
sellerExperimentGroupId?: number;
2742-
perBuyerSignals?: { [buyer: string]: unknown };
2743-
perBuyerTimeouts?: { [buyer: string]: number };
2744-
perBuyerGroupLimits?: { [buyer: string]: number };
2745-
perBuyerExperimentGroupIds?: { [buyer: string]: number };
2746-
} | null;
2747-
}
2748-
27492668
/**
27502669
* An object which defines the behavior of a single interstitial ad slot.
27512670
*/

‎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.20260216.9999",
4+
"version": "1.20260309.9999",
55
"nonNpm": "conflict",
66
"nonNpmDescription": "Google Publisher Tag",
77
"projects": [

0 commit comments

Comments
 (0)