-
Notifications
You must be signed in to change notification settings - Fork 749
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
Facebook AudienceNetwork mobile web bidder returning status 400 error #1092
Comments
Ok, looking for someone who can fix this. @lovell perhaps? |
I'm unable to help with this, sorry. |
Ok. Looking for a community volunteer to address this. There's no owner for this adapter. |
I attempted to get the server up and running locally, but only get 404's on the auction endpoints. I'd be game for contributing if I could get it running properly. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
bump to un-stale |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Testing this in postman, the call to facebook returns 400 with or without the trailing new line. Trying to dig in deeper. Oh I see, there is no user data, and facebook requires a user match in order to bid. Will try to dig up a user ID to see if that resolves the issue. PR #1064 recoded to the adapter to require |
ok, if that does end up being the problem let me know how to resolve, especially from like an AMP call. you can get your own Facebook UID by either:
|
Also, I was getting this error back on Oct 29, 2019 (before the refactor) in case that changes what you're looking for |
No. The missing UID definitely explains what is going on. Just wanted to rule out additional issues. Unfortunately neither above methods work for me as I am not a facebook developer nor do I have a facebook account. After the refactor the adapter will return an error explaining that it needs the UID in order to submit a request to facebook. And the facebook endpoint will return status 400 if there are no bids for any reason, even if the request was perfectly valid, but facebook just didn't care to bid at this time. |
Ok, the only references to buyeruid I've found is in their App Bidding docs: Since you need to get that buyeruid from their native sdk, I'm assuming this means audience network only supports native app bidding for prebid server, and not normal web requests like from AMP |
|
ok, but are you able to verify or not that their server adapter is supposed to work for normal web requests? Because it's sounding like we're supposed to send a facebook user id from the client side, and that's just not something that's done on normal web requests. Which is why I'm assuming their adapter is only meant for native app bidding requests, and not normal web. |
I don't have the IDs to test with, but the adapter claims that web requests are valid. |
given that Facebook announced the other day that they are retiring audience network for web requests, and will only be supporting app bidding, guess I'll be closing this ticket 😢 |
For mobile web calls to audienceNetwork, the adapter is returning 400 errors. In looking at the debug output sent to the appnexus prebid server, it seems the only difference I noticed to other bid requests is that the audienceNetwork request body ends in a new line.
I don't know if this is the actual reason for the 400 response, but if so it's probably because the adapter is using
json.NewEncoder
(which appends a new line), vsjson.Marshal
which is used by other adapters and does not append a new linehttps://github.com/prebid/prebid-server/blob/0.86.0/adapters/audienceNetwork/facebook.go#L223
here's example debug output, I removed the other bidders here to reduce noise:
The text was updated successfully, but these errors were encountered: