Contents

Money

A monetary amount with currency used throughout the Recommendations and Suggestions APIs.

Declaration

object RecommendationMoney

Properties

NameTypeDescription
amount Requiredstring

The decimal amount as a string, for example "1.50". Using a string preserves precision for fractional currency values and avoids floating-point precision loss. Always parse it with a decimal or fixed-precision type rather than a float.

currency Requiredstring

The ISO 4217 currency code, for example "USD" or "EUR".

Discussion

The Money object represents a monetary value in the Recommendations and Suggestions APIs.

The currency code corresponds to the ad account’s billing currency. All monetary fields on a given recommendation share the same currency.

Example

{
  "amount": "1.50",
  "currency": "USD"
}

See Also