I'm currently in the process of implementing the v3 version of the bidding service, and I've got issues debugging it.
I'm trying to put some basic logic in the generateBid method to calculate a price. This does not seem to work as I get this in the logs:
2024-05-14 10:15:40.385 26232-28335 adservices.fledge com.google.android.adservices.api V Got 1 total bidding outcomes
2024-05-14 10:15:40.385 26232-28335 adservices.fledge com.google.android.adservices.api V Got 0 valid bidding outcomes
So my issue here is that this is not something I can use to debug: there's no information at all about the actual problem as my bidding outcomes are, in fact, valid.
After commenting a few lines, the issue lies in my use of the Math.random() method to calculate my price. If I comment the line, I can get a proper bidding process rolling.
So, to me, the issue is not about bidding outcomes being invalid, it's about the code not being able to be executed properly.
Could we please get more detailed and comprehensive errors in the logs?
Also, bonus question, is there a list somewhere of what JS built-in objects we can / can't use? Or is there a way to use those built-in objects?
Hey there :)
I'm currently in the process of implementing the v3 version of the bidding service, and I've got issues debugging it.
I'm trying to put some basic logic in the
generateBid
method to calculate a price. This does not seem to work as I get this in the logs:So my issue here is that this is not something I can use to debug: there's no information at all about the actual problem as my bidding outcomes are, in fact, valid. After commenting a few lines, the issue lies in my use of the
Math.random()
method to calculate my price. If I comment the line, I can get a proper bidding process rolling. So, to me, the issue is not about bidding outcomes being invalid, it's about the code not being able to be executed properly.Could we please get more detailed and comprehensive errors in the logs?
Also, bonus question, is there a list somewhere of what JS built-in objects we can / can't use? Or is there a way to use those built-in objects?
Thanks a lot!