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

AdButler Bid Adapter: Add ability to include extra query params #5543

Merged
merged 1 commit into from
Aug 3, 2020

Conversation

dharton
Copy link
Contributor

@dharton dharton commented Jul 27, 2020

Type of change

  • Feature

Description of change

This change will allow users of the AdButler Bid Adapter to pass other potentially necessary parameters in their ad requests.

@aleksatr
Copy link
Contributor

hey @dharton , I don't see that you attached the PR for https://github.com/prebid/prebid.github.io/, where you would describe this additional parameter. Also, can you include it in the example in this repo: adbutlerBidAdapter.md?

@dharton dharton force-pushed the adbutler-extra-params branch from 4240baa to 84142f6 Compare July 30, 2020 21:46
@dharton
Copy link
Contributor Author

dharton commented Jul 30, 2020

Hi @aleksatr

Thank you for your feedback! I've updated the .md file in this repo and please see the link below for the corresponding documentation pull request.

prebid/prebid.github.io#2172

Please let me know if there's anything else you see!

@@ -25,13 +25,15 @@ export const spec = {
let requestURI;
let serverRequests = [];
let zoneCounters = {};
let extraParams = {};

for (i = 0; i < validBidRequests.length; i++) {
bidRequest = validBidRequests[i];
zoneID = utils.getBidIdParameter('zoneID', bidRequest.params);
accountID = utils.getBidIdParameter('accountID', bidRequest.params);
keyword = utils.getBidIdParameter('keyword', bidRequest.params);
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should be reading kw from fpd.context when available.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @patmmccann

Thanks for the advice, that seems really handy!

Perhaps that should be a separate commit & pull request since it's unrelated to this change? I'd be dropping that in as a replacement to the 'keyword' bid param on line 34 there.

Copy link
Collaborator

Choose a reason for hiding this comment

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

makes sense ty! I brought it up bc kw was an example of your extra param.

@aleksatr aleksatr added LGTM and removed needs review labels Aug 3, 2020
@aleksatr
Copy link
Contributor

aleksatr commented Aug 3, 2020

LGTM

@aleksatr aleksatr merged commit 5ab0f2d into prebid:master Aug 3, 2020
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.

4 participants