Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trafficgate Bid Adapter: move to OpenRTB Converter #10007

Merged
merged 4 commits into from
Jun 28, 2023

Conversation

vlaktion
Copy link
Contributor

@vlaktion vlaktion commented May 29, 2023

prebid/prebid.github.io#4606

Type of change

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

Description of change

Rewrite adapter on OpenRTB Converter for receiving an OpenRTB request on the server and response with BidResponse OpenRTB

  • test parameters for validating bids:
    Banner 300x250px
{
  bidder: 'trafficgate',
  params: {
    placementId: '16',
    host: 'bidscube',
    test: 1
  }
}

Video 640x480px

{
   bidder: 'trafficgate',
    params: {
      placementId: '10',
      host: 'bidscube',
      test: 1
    }
}

Be sure to test the integration with your adserver using the Hello World sample page. -->
var adUnits = [{
code: 'div-gpt-ad-1460505748561-0',
sizes: [[300, 250]], // a display size
mediaTypes: {
banner: {
sizes: [[300, 250]],
}
},
bids: [{
bidder: 'trafficgate',
params: {
placementId: '16',
host: 'bidscube',
test: 1
}
}]
}];

@vlaktion
Copy link
Contributor Author

Hello. When this PR will be merged and released?

@robertrmartinez
Copy link
Collaborator

@vlaktion

Hi I will review this soon! Sorry for the delay.

@vlaktion
Copy link
Contributor Author

Hello. When this PR will be merged and released?

Copy link
Collaborator

@robertrmartinez robertrmartinez left a comment

Choose a reason for hiding this comment

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

sorry took so long, looks fine just a couple questions

at: 1,
})
const bid = context.bidRequests[0];
if (bid.params.coppa) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe this should be taken from config.getConfig('coppa') as priority, which I believe the ortbconverter may already grab it.

So this might need to be changed to a conditional only set if req.regs.coppa not already set

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okey. I removed it.

if (bid.params.coppa) {
deepSetValue(req, 'regs.coppa', 1);
}
if (bid.params.doNotTrack) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

also this is something prebid willl set based on several checks here:
https://github.com/prebid/Prebid.js/blob/master/src/fpd/enrichment.js#L99
https://github.com/prebid/Prebid.js/blob/master/src/utils.js#L938

So I think not overwriting is the right thing to do here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed this too.

@vlaktion
Copy link
Contributor Author

Done!

@robertrmartinez robertrmartinez self-requested a review June 28, 2023 18:20
@robertrmartinez robertrmartinez merged commit b5a8d52 into prebid:master Jun 28, 2023
2 checks passed
github-ishara-chan-tung pushed a commit to ebuzzing/Prebid.js that referenced this pull request Jul 12, 2023
* Trafficgate Bid Adapter: move to OpenRTB Converter

* Trafficgate Bid Adapter: move to OpenRTB Converter

* Trafficgate Bid Adapter: move to OpenRTB Converter

---------

Co-authored-by: vlad <[email protected]>
musikele pushed a commit to rubicon-project/Prebid.js that referenced this pull request Aug 28, 2023
* Trafficgate Bid Adapter: move to OpenRTB Converter

* Trafficgate Bid Adapter: move to OpenRTB Converter

* Trafficgate Bid Adapter: move to OpenRTB Converter

---------

Co-authored-by: vlad <[email protected]>
santii7395 pushed a commit to themaven-net/Prebid.js that referenced this pull request Aug 28, 2023
* Trafficgate Bid Adapter: move to OpenRTB Converter

* Trafficgate Bid Adapter: move to OpenRTB Converter

* Trafficgate Bid Adapter: move to OpenRTB Converter

---------

Co-authored-by: vlad <[email protected]>
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.

None yet

3 participants