Preview a Robux-to-ad-credit conversion

Changed on

Calculates the other side of a conversion from either a Robux amount or an ad credit amount, using the account's current Robux balances and rates. An amount the account cannot afford or outside the allowed range returns 200 with valid=false and a reason.

post/ads-management/v1/billing-accounts/{id}/ad-credit-conversions:preview

Request

  • Base URL
    https://apis.roblox.com
  • Auth
    • API key in cookie .ROBLOSECURITY
    • or API key in header x-api-key

Path parameters

idstring required

Billing account ID

Request body

adCreditAmountMicrosstring

Ad credit wanted, at most cent precision; the preview returns the Robux it costs.

robuxAmountstring

Robux to spend; the preview returns the ad credit it buys.

Response

OK

adCreditAmountMicrosstring required

Ad credit that would be granted, in micro-USD.

effectiveO18Robuxstring

Portion of robuxAmount drawn from 18+ eligible Robux, which converts at the higher rate first.

effectiveStandardRobuxstring

Portion of robuxAmount drawn from standard Robux.

robuxAmountstring required

Robux that would be charged.

validboolean required

False when the account can't afford the amount or it's outside the allowed range.

Changes