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

Prebid adapter for windtalker #5040

Merged
merged 7 commits into from
Apr 7, 2020
Merged

Prebid adapter for windtalker #5040

merged 7 commits into from
Apr 7, 2020

Conversation

degroat
Copy link
Contributor

@degroat degroat commented Mar 27, 2020

Type of change

  • [ X] New bidder adapter

Description of change

Prebid adapter for Windtalker.

  • test parameters for validating bids
{
  bidder: 'windtalker',
  params: {
           "pubId":"187046"
           ,"siteId":"10"
           ,"size":"300x250"
           ,"placementId":"456"
  }
}
  • contact email of the adapter’s maintainer: [email protected]
  • [X ] official adapter submission

PR Docs: prebid/prebid.github.io#1788

Copy link
Contributor

@Fawke Fawke left a comment

Choose a reason for hiding this comment

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

Hi @degroat,

Thanks for the PR! I've reviewed your submission and here are few of my observations:

  • Unit test cases missing. Please create a file, windtalkerBidAdapter_spec.js and achieve at least 80% code coverage.
  • The request sent to your endpoint for banner, native & video media types is returning HTTP status code 204. I'm not getting any response. In order to approve, we need to check and validate certain things in the response.
  • The sample video ad unit in your md file,
{
          code: 'dfp-video-div-container',
          sizes: [640, 480],
          mediaTypes: {
              video: {
                  context: "instream"
              }
          },
          bids: [{
              bidder: 'windtalker',
              params: {
                  pubId: '29521',
                  siteId: '26049',
                  size: '640X480',
                  placementId: '123',
                  video: {
                      skipppable: true,
                  }
              }
          }]
      }

, is using the property sizes, which we've removed in the Prebidv3.0.0. You have to instead use mediaTypes.video.playerSize property to declare the playerSize.

  • The same native ad unit in your md file,
{
          code: 'dfp-native-div',
          mediaType: 'native',
          mediaTypes: {
              native: {
                  title: {
                      required: true,
                      len: 75
                  },
                  image: {
                      required: true
                  },
                  body: {
                      len: 200
                  },
                  icon: {
                      required: false
                  }
              }
          },
          bids: [{
              bidder: 'windtalker',
              params: {
                  pubId: '29521',
                  siteId: '26048',
                  placementId: '123',
                  bidFloor: '0.001', // optional
                  ifa: 'XXX-XXX', // optional
                  latitude: '40.712775', // optional
                  longitude: '-74.005973', // optional
              }
          }]
      }

, is using a property mediaType which is set to native. This is not required. mediaTypes.native property itself is sufficient.

@Fawke Fawke self-requested a review April 6, 2020 05:59
Copy link
Contributor

@Fawke Fawke left a comment

Choose a reason for hiding this comment

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

Hi @degroat,

Thanks for adding those tests. I tried to send banner request to your endpoint, am still getting 204 No Content. I haven't tested with video and native yet.

Can you please confirm that your endpoint is successfully returning a bid response to all three media types, banner, video and native. We have to test the responses to all three mediaTypes. Thank you.

@degroat
Copy link
Contributor Author

degroat commented Apr 6, 2020

@Fawke Please try again. We had some geo restrictions in place that were likely causing the issue.

@Fawke
Copy link
Contributor

Fawke commented Apr 7, 2020

@degroat,

I was still unable to get bid response from India, so I told my colleague in US to test it. He got banner and video responses, but native still returned a 204.

Can you check?

@degroat
Copy link
Contributor Author

degroat commented Apr 7, 2020

@Fawke Native should be good now too.

@jsnellbaker
Copy link
Collaborator

Hi @degroat

I was helping @Fawke earlier this morning with testing the adapter. I tried the native params again, but I'm still not seeing a bid response. I have copied the reqeust payload for reference:

{"id":"1edbd0adef7518","at":2,"imp":[{"id":"2dbf47e4c6a34f","secure":0,"banner":null,"native":{"request":"{\"assets\":[{\"id\":1,\"required\":1,\"title\":{\"len\":75}},{\"id\":2,\"required\":0,\"data\":{\"type\":2,\"len\":200}},{\"id\":4,\"required\":0,\"img\":{\"type\":1,\"wmin\":50,\"hmin\":50}},{\"id\":5,\"required\":1,\"img\":{\"type\":3,\"wmin\":150,\"hmin\":150}}]}","ver":"1.1"},"video":null,"bidfloor":"0.001","tagid":"123"}],"site":{"publisher":{"id":"584971","domain":"test.localhost"},"id":"584971","ref":"http://test.localhost:9999/integrationExamples/gpt/demo_native.html?pbjs_debug=true","page":"http://test.localhost:9999/integrationExamples/gpt/demo_native.html?pbjs_debug=true"},"app":null,"device":{"dnt":0,"ua":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36","language":"en-US","w":1680,"h":1050,"geo":{"lat":"40.712775","lon":"-74.005973"},"ifa":"XXX-XXX"}}

Can you take a look?

@degroat
Copy link
Contributor Author

degroat commented Apr 7, 2020

@jsnellbaker I'm getting a bid back now. Here is my payload.

{"id":"18b51e44536611","at":2,"imp":[{"id":"2fe652226cbdd3","secure":0,"banner":null,"native":{"request":"{\"assets\":[{\"id\":1,\"required\":1,\"title\":{\"len\":100}},{\"id\":2,\"required\":0,\"data\":{\"type\":2,\"len\":200}},{\"id\":4,\"required\":0,\"img\":{\"type\":1,\"wmin\":50,\"hmin\":50}},{\"id\":5,\"required\":1,\"img\":{\"type\":3,\"wmin\":150,\"hmin\":150}}]}","ver":"1.1"},"video":null,"bidfloor":"0.000001","tagid":"456"}],"site":{"publisher":{"id":"584971","domain":"localhost"},"id":"584971","ref":"","page":"http://localhost:9999/integrationExamples/gpt/native.html?pbjs_debug=true"},"app":null,"device":{"dnt":0,"ua":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36","language":"en-US","w":1920,"h":1080,"geo":{}}}

Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

Thanks for the follow-up, I tried again and I am now getting a native bid back successfully.

LGTM

@jsnellbaker jsnellbaker merged commit 036d71d into prebid:master Apr 7, 2020
@Fawke Fawke added LGTM and removed needs update labels Apr 8, 2020
rjvelicaria pushed a commit to openx/Prebid.js that referenced this pull request Apr 9, 2020
* prebid adatper for windtalker

* file extension for imports

* fix whitespace in adapter

* removed inital value assignment per LGTM request

* Minorchange to md file for windtalker

* Updated windtalker adapter with tests

Co-authored-by: Chris DeGroat <[email protected]>
redaguermas added a commit to redaguermas/Prebid.js that referenced this pull request Apr 16, 2020
* 'master' of https://github.com/prebid/Prebid.js: (102 commits)
  Marsmedia - Add vastXml and fix id response (prebid#5067)
  PubMatic adapter to support image sync (prebid#5104)
  minor consentManagement fix (prebid#5050)
  fix circle ci failing tests (prebid#5113)
  Add Relaido Adapter (prebid#5101)
  Add new bid adapter for ConnectAd (prebid#4806)
  change payload (prebid#5105)
  Utils updates (prebid#5092)
  Read OpenRTB app objects if set in config + bug fix for when ad units are reloaded (prebid#5086)
  Criteo : added first party data mapping to bidder request (prebid#4954)
  updateAdGenerationManual (prebid#5032)
  New bid adapter: Wipes (prebid#5051)
  Prebid manager analytics utm tags (prebid#4998)
  CRITEO RTUS Integration with Yieldmo Prebid (prebid#5075)
  isSafariBrowser update  (prebid#5077)
  Support min &max duration for onevideo (prebid#5079)
  increment pre version
  Prebid 3.15.0 release
  prebid#5011 Fix to set Secure attribute on cookie when SameSite=none (prebid#5064)
  Prebid adapter for windtalker (prebid#5040)
  ...
iggyfisk pushed a commit to happypancake/Prebid.js that referenced this pull request Jun 22, 2020
* prebid adatper for windtalker

* file extension for imports

* fix whitespace in adapter

* removed inital value assignment per LGTM request

* Minorchange to md file for windtalker

* Updated windtalker adapter with tests

Co-authored-by: Chris DeGroat <[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