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

Added IronSource bidder tests and adapter according to specs #5568

Merged
merged 6 commits into from
Aug 18, 2020

Conversation

liranbaruch
Copy link
Contributor

Type of change

  • Bugfix
  • Feature
  • [X ] New 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

Added IronSource header bidding adapter

  • test parameters for validating bids
{
  bidder: 'ironSource',
  params: {
            isOrg: '56f91cd4d3e3660002000033', // Required
            floorPrice: 5.00, // Optional
            ifa: 'XXX-XXX', // Optional
  }
}

Be sure to test the integration with your adserver using the Hello World sample page.

  • contact email of the adapter’s maintainer
  • official adapter submission

For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:

Other information

Copy link
Contributor

@musikele musikele left a comment

Choose a reason for hiding this comment

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

  1. I am trying to use isOrg: '56f91cd4d3e3660002000033' as a test parameter but I don't see a video ad, In console I get AD ERROR: VAST Error: on VASTClient.getVASTAd.validateVASTTree, no Ad in VAST tree with error code 303. Is this ok?

  2. tests are covering exactly 80% of the lines of code, that is the minimum required to be accepted; anyway, I highly suggest you to add more tests for getUserSyncs, if not now, in the next submission.

  3. Can you link the PR for the prebid website?

@liranbaruch
Copy link
Contributor Author

liranbaruch commented Aug 11, 2020 via email

@musikele
Copy link
Contributor

musikele commented Aug 12, 2020

@liranbaruch
Here's what I get in Prebid logs:

Prebid MESSAGE: CALLING BIDDER ======= ironSource utils.js:244:16
Prebid MESSAGE: Emitting event for: bidRequested utils.js:244:16

XML Parsing Error: not well-formed
Location: https://hb.yellowblue.io/hb?auction_start=1597224729540&ad_unit_code=video1&tmax=3000&width=640&height=480&publisher_id=56f91cd4d3e3660002000033&floor_price=undefined&ua=Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010.15%3B%20rv%3A80.0)%20Gecko%2F20100101%20Firefox%2F80.0&bid_id=2226511dd3fb3f&bidder_request_id=1684a16f3617c88&transaction_id=6d54a135-d7f4-46c0-afa5-f1a1050e920b&session_id=3d2b47c9-1733-4d6c-821d-5a4ce44a36eb&publisher_name=jita.local.net&site_domain=jita.local.net&bidder_version=4.0.0&cs_method=pixel&referrer=http%3A%2F%2Fjita.local.net%3A9999%2Ftest%2Fpages%2Finstream.html%3Fpbjs_debug%3Dtrue&page_url=http%3A%2F%2Fjita.local.net%3A9999%2Ftest%2Fpages%2Finstream.html%3Fpbjs_debug%3Dtrue
Line Number 1, Column 1:

...
[videojs-vast-vpaid] AD ERROR: VAST Error: on VASTClient.getVASTAd.validateVASTTree, no Ad in VAST tree 

I put the VAST xml tag in here https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/vastinspector and i see the "edu action" ad.

Here's my configuration

var videoAdUnit = {
        code: 'video1',
        sizes: [640,480],
        mediaTypes: {
          video: {context: 'instream',  playerSize: [640, 480]}
        },
        bids: [
          {
            bidder: 'ironSource',
            params: {
              isOrg: "56f91cd4d3e3660002000033"
            }
          }
        ]
      };
pbjs.setConfig({
  debug: true,
  cache: {
    url: 'https://prebid.adnxs.com/pbc/v1/cache' // <-- is this ok? 
  }
});

Note that I am using /test/instream.html page which I find more easy to use. just change prebid.js path from
<script src="../../build/build/prebid.js" async=true></script> to <script src="../../build/dev/prebid.js" async=true></script>.

If this is expected, let me know.

@liranbaruch
Copy link
Contributor Author

liranbaruch commented Aug 17, 2020 via email

Copy link
Contributor

@musikele musikele left a comment

Choose a reason for hiding this comment

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

LGTM, waiting for CircleCI to be green.

@musikele musikele merged commit 38e078e into prebid:master Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants