billing
Redeem ad credits
Redeem ads credit on behalf of the ad account id and apply it towards billing.
This endpoint might not be available to all apps. Learn more.
post/ad_accounts/{ad_account_id}/ads_credit/redeem
Path parameters
ad_account_idstring required
Unique identifier of an ad account.
Request body
Example request
{
"offerCodeHash": "138e9e0ff7e38cf511b880975eb574c09aa9d5e1657590ab0431040da68caa67",
"validateOnly": true
}Response
The request has succeeded.
Example response
{
"offerCodeHash": "138e9e0ff7e38cf511b880975eb574c09aa9d5e1657590ab0431040da68caa67",
"validateOnly": true,
"success": false,
"errorCode": 2708,
"errorMessage": "The offer has already been redeemed by this advertiser"
}