Skip to content

Comments

PubxaiAnalyticsAdapter : Fix log collection logic#27

Open
Hrishi-Pubx wants to merge 3 commits intomasterfrom
bugfix/PUB-3471
Open

PubxaiAnalyticsAdapter : Fix log collection logic#27
Hrishi-Pubx wants to merge 3 commits intomasterfrom
bugfix/PUB-3471

Conversation

@Hrishi-Pubx
Copy link

@Hrishi-Pubx Hrishi-Pubx commented Feb 27, 2025

Type of change

  • Bugfix

  • Feature

  • New bidder adapter

  • Updated bidder adapter

  • Code style update (formatting, local variables)

  • Refactoring (no functional changes, no api changes)

  • Build related changes

  • CI related changes

  • Does this change affect user-facing APIs or examples documented on http://prebid.org?

  • Other

Description of change

This PR fixes three critical issues in the PubxAI analytics adapter:

  1. Improved Data Collection: Removes conditional filtering that was preventing some auction data from being collected by replacing prepareSend() with a dedicated prepareAuctionSend() function.

  2. Complete Winning Bid Collection: Adds a new prepareSendWinningBids() function to properly capture all winning bids from auctions.

  3. Fixed Ad Server Targeting: Corrects the getAdServerDataForBid() function to properly extract ad unit codes and handle missing GPT slots.

The PR also includes minor code refactoring with better documentation.

Be sure to test the integration with your adserver using the Hello World sample page. -->

Other information

- Introduced `refreshRank` to track auction refresh sequence
- Improved bid and auction data preparation for sending to PubxAI
- Reset `refreshRank` to 0 when enabling analytics
- Update test cases to reflect changes in event tracking order and beacon call count
- Modify test expectations for URL paths and data sent to PubxAI
@Hrishi-Pubx Hrishi-Pubx requested review from pnhegde and tej656 April 29, 2025 12:39
@pnhegde pnhegde added the WIP label May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants