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

add support for latLong in rubicon adapter #2508

Merged
merged 1 commit into from
May 11, 2018

Conversation

snapwich
Copy link
Collaborator

@snapwich snapwich commented May 8, 2018

Type of change

  • Feature

Description of change

Add the ability to pass latitude and longitude to rubicon adapter as new bidder param.

{
  bidder: 'rubicon',
  params: {
    latLong: [40.7608, 111.8910]
  }
}

Other information

Corresponding documentation added here: prebid/prebid.github.io#749

Copy link
Collaborator

@harpere harpere left a comment

Choose a reason for hiding this comment

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

one question

@@ -472,4 +475,9 @@ export function resetUserSync() {
hasSynced = false;
}

function isNaN(value) {
// eslint-disable-next-line no-self-compare
return value !== value;
Copy link
Collaborator

Choose a reason for hiding this comment

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

how does this work?

Copy link
Collaborator Author

@snapwich snapwich May 8, 2018

Choose a reason for hiding this comment

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

I got it from here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN#Polyfill

It's a polyfill for Number.isNaN(); I didn't want to use window.isNaN() because it's buggy and Number.isNaN() isn't supported in Internet Explorer.

Copy link
Collaborator

@harpere harpere left a comment

Choose a reason for hiding this comment

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

should we add latLong to the .md file?

@snapwich
Copy link
Collaborator Author

snapwich commented May 8, 2018

@harpere probably not. It looks like the .md file currently only has the required parameters and the optional params are left to the documentation, which I updated in a separate pull-request.

@harpere harpere added LGTM and removed needs review labels May 11, 2018
@harpere harpere merged commit 877a58c into prebid:master May 11, 2018
ArmandChoy pushed a commit to RockYou-Ads/Prebid.js that referenced this pull request May 15, 2018
* PreBid.js/master: (79 commits)
  increment prebid version
  Prebid 1.11.0 release
  replace find reference with imported version (prebid#2542)
  GDPR - add consent information to PBS cookie_sync request (prebid#2530)
  add support for safeframe workflow and new utils method to read adunit sizes (prebid#2523)
  Smart: GDPR support (prebid#2528)
  fix getPreparedBidForAuction to look for renderer on correct bid (prebid#2505)
  PubMatic Adapter: Bug fix to read all bids from seatBid array (prebid#2520)
  Create GXOne Bid Adapter and tests for it (prebid#2540)
  Lifestreet: gdpr and consent string parameters (prebid#2537)
  -GDPR support added in media net bidder (prebid#2538)
  change AppNexus endpoint to use ORTB (prebid#2532)
  fixed bug when latitute/longitue are not provided (prebid#2533)
  added gdpr support to userSync in rubicon adapter (prebid#2531)
  Show only summary and errors (prebid#2514)
  Aardvark v1.0 (prebid#2507)
  Add 1024x768 (size_id = 53) in sizeMap (prebid#2527)
  Add new Adapter brainyBidAdapter (prebid#2458)
  OpenX Adapter: GDPR Support (prebid#2504)
  add support for latLong in rubicon adapter (prebid#2508)
  ...
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
@robertrmartinez robertrmartinez deleted the rubicon-latLong branch July 5, 2023 19:46
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.

3 participants