You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @guybashan
The documentation you're pointing to is a specific use case where the goal is to return the cost per click. The adCost is stored in the contextual_signals param for the reportWin function. The goal of the function return is to show this specific use case and you are also correct that your understanding of the return structure is what it seems. If it would help your understanding and help others, would showing the return structure like so help with this:
It seems like there is a mismatch in the docs in the following URL:
https://developer.android.com/design-for-safety/privacy-sandbox/protected-audience#ad_cost
It writes that the generateBid function should return:
return {'bid': ..., 'adCost': ...,};
But it seems like the correct way is returning:
return {'status': status, 'ad': ad, 'bid': bid };
The text was updated successfully, but these errors were encountered: