Skip to content

AGT-787: partnerAuctionId to analytical module#68

Open
dmytro-po wants to merge 1 commit intorelease_0.35from
AGT-787-support-partner-auction-id-in-prebid-module
Open

AGT-787: partnerAuctionId to analytical module#68
dmytro-po wants to merge 1 commit intorelease_0.35from
AGT-787-support-partner-auction-id-in-prebid-module

Conversation

@dmytro-po
Copy link
Collaborator

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

Other information

@@ -424,6 +429,7 @@ function constructFullUrl(data) {
const reportMethod = iiqAnalyticsAnalyticsAdapter.initOptions.reportMethod;
const partnerData = window[identityGlobalName]?.partnerData;
const currentBrowserLowerCase = detectBrowser();
const partnerAuctionId = data.partnerAuctionId || 'BW';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use only data provided by partner without defaults, and send it only when we have it

@@ -451,17 +458,17 @@ function constructFullUrl(data) {
(cmpData.gdprString ? '&gdpr_consent=' + encodeURIComponent(cmpData.gdprString) + '&gdpr=1' : '&gdpr=0');
url = appendSPData(url, partnerData);
url = appendVrrefAndFui(url, iiqAnalyticsAnalyticsAdapter.initOptions.domainName);

if (reportMethod === 'POST') {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@@ -387,7 +387,12 @@ function prepareData(data, result) {
}

result.biddingPlatformId = data.biddingPlatformId || 1;
result.partnerAuctionId = 'BW';

if (isReportExternal && data && data.partnerAuctionId) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need this drilling with isReportExternal? I'm pretty sure we don't have partnerAuctionId property in bidWon event. So why do we need this complicated logic and don't just use partnerAuctionId if we have it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants