Partager via


AdWithBid.Bid Property

Definition

The bid is the amount of money an advertiser has bid during the ad selection process to show an ad.

public double Bid { [Android.Runtime.Register("getBid", "()D", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getBid", "()D", "", ApiSince=35)>]
member this.Bid : double

Property Value

the bid value to be passed to the scoring function when scoring the ad returned by #getAdData()

Attributes

Remarks

The bid is the amount of money an advertiser has bid during the ad selection process to show an ad. The bid could be any non-negative double, such as 0.00, 0.17, 1.10, or 1000.00.

The currency for a bid would be controlled by Seller and will remain consistent across a run of Ad selection. This could be achieved by leveraging bidding signals during "generateBid()" phase and using the same currency during the creation of contextual ads. Having currency unit as a dedicated field could be supported in future releases.

Java documentation for android.adservices.adselection.AdWithBid.getBid().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to