Skip to content

Commit

Permalink
Add keywords to Magnite Bidder (#1698)
Browse files Browse the repository at this point in the history
* Add keywords to Magnite Bidder

* Changeset
  • Loading branch information
emma-imber authored Dec 10, 2024
1 parent 5a6366b commit 95468e7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-ants-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@guardian/commercial': patch
---

Add keywords to Magnite
1 change: 1 addition & 0 deletions src/lib/header-bidding/prebid-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export type PrebidMagniteParams = {
accountId: number;
siteId: number;
zoneId: number;
keywords: string[];
};

export type BidderCode =
Expand Down
3 changes: 3 additions & 0 deletions src/lib/header-bidding/prebid/bid-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,9 @@ const magniteBidder: PrebidBidder = {
accountId: 26644,
siteId: getMagniteSiteId(),
zoneId: getMagniteZoneId(slotId, sizes),
keywords: window.guardian.config.page.keywords
? window.guardian.config.page.keywords.split(',')
: [],
}),
};

Expand Down

0 comments on commit 95468e7

Please sign in to comment.