You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***Bid ID** is unique across ad units and bidders.
323
324
***auctionId** (see [note](#tid-warning)) is unique per call to `requestBids()`, but is the same across ad units and bidders.
324
325
***Transaction ID** (see [note](#tid-warning)) is unique for each ad unit within a call to `requestBids()`, but same across bidders. This is the ID that enables DSPs to recognize the same impression coming in from different supply sources.
326
+
***Page view ID** is unique for a page view (one load of Prebid); can also be refreshed programmatically. Shared across all requests and responses within the page view, for the same bidder. Different bidders see a different page view ID.
325
327
***Bid Request Count** is the number of times `requestBids()` has been called for this ad unit.
326
328
***Bidder Request Count** is the number of times `requestBids()` has been called for this ad unit and bidder.
327
329
***Auctions Count** is the number of times `requestBids()` has been called for this ad unit excluding the duplicates generated by twin adUnits.
@@ -340,6 +342,7 @@ Here is a sample bidderRequest object:
Refreshes the previously generated page view ID. Can be used to instruct bidders that use page view ID to consider future auctions as part of a new page load.
9
+
10
+
```javascript
11
+
// Function to call when the URL changes
12
+
functiononUrlChange() {
13
+
pbjs.refreshPageViewId();
14
+
}
15
+
16
+
// Function to initialize the URL change listener
17
+
functioninitUrlChangeListener() {
18
+
// Listen for changes to the history state
19
+
window.addEventListener('popstate', onUrlChange);
20
+
21
+
// Optionally, you might want to handle the initial load as well
Copy file name to clipboardExpand all lines: prebid-server/developers/add-new-bidder-go.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -778,6 +778,7 @@ The second argument, `requestInfo`, is for extra information and helper methods
778
778
-`requestInfo.PbsEntryPoint` to access the entry point of the bid request, commonly used to determine if the request is for AMP or for a [Long Form Video Ad Pod](/dev-docs/modules/adpod.html).
779
779
-`requestInfo.GlobalPrivacyControlHeader` to read the value of the `Sec-GPC` Global Privacy Control (GPC) header of the bid request.
780
780
-`requestInfo.ConvertCurrency` a method to perform currency conversions.
781
+
-`requestInfo.PageViewId` is the unique identifier for the page view (one load of Prebid.js); can also be refreshed programmatically. Shared across all requests and responses within the page view, for the same bidder. Different bidders see a different page view ID.
781
782
782
783
The `MakeRequests` method is expected to return a slice (similar to a C# `List` or a Java `ArrayList`) of `adapters.RequestData` objects representing the HTTP calls to be sent to your bidding server and a slice of type `error` for any issues encountered creating them. If there are no HTTP calls or if there are no errors, please return `nil` for both return values. Please do not add `nil` items in the slices.
0 commit comments