Git Product home page Git Product logo

Comments (6)

opinali avatar opinali commented on May 5, 2024

Thanks for this report -- this is a bug indeed, what happens is that DoubleClick's billing_id is a long so this code needs to make a conversion but it's doing it wrong, it should be using getValueAsLong() instead of getLongValue(). Will fix this immediately.

from openrtb-doubleclick.

mnouh avatar mnouh commented on May 5, 2024

Thank you. There are also other fields in the Imp Ext that have the same issue, publisher list id, etc.

from openrtb-doubleclick.

opinali avatar opinali commented on May 5, 2024

Argh, I see now why this bug wasn't caught by the tests. The billing_id is a long and real-world values are often above JSON/JavasScript's limit of maximum representable integer (2^53 - 1), so JSON serializers often have an extension to quote large integer numbers. We use that in AdX, but we use it only for values above this limit, 12345678901 is not big enough, and we shouldn't have billing_ids that exceed 2^53 so this wouldn't even be a bug technically. But I suppose you maye have some intermediary processing between AdX and your bidder, and some JSON serializers have different behaviors, for one thing even our own public Protobuf 3 will always quote longs. So I'm still going to improve the library to allow quoted longs there, but let me know how are you getting this bid request message, if it's coming straight from AdX I may need to chase that too.

from openrtb-doubleclick.

opinali avatar opinali commented on May 5, 2024

yes, making the same change for publisher_settings_list_id.

from openrtb-doubleclick.

myDisconnect avatar myDisconnect commented on May 5, 2024

This issue still persists. Steps to reproduce:

  • Receive bid request via PROTOCOL_OPENRTB_PROTOBUF_2_3 protocol.
  • Read received protobuff request to BidRequest object via parseFrom:
    ExtensionRegistry dcExtension = ExtensionRegistry.newInstance(); AdxExt.registerAllExtensions(dcExtension); OpenRtb.BidRequest openRtbRequest = OpenRtb.BidRequest.parseFrom(data, dcExtension);
  • Print received JSON:
    OpenRtbJsonFactory dcJsonFactory = AdxExtUtils.registerAdxExt(OpenRtbJsonFactory.create()); String jsonOutput = dcJsonFactory.newWriter().writeBidRequest(openRtbRequest);

from openrtb-doubleclick.

opinali avatar opinali commented on May 5, 2024

Sorry for the confusion, I had closed the bug but not released the fix yet. I have just pushed the fix to the master repository here, please test again after pulling the latest code from head.

from openrtb-doubleclick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.