v1Recursos/Paid Boosts/postCancel a deferred boost

Cancel a deferred boost

Cancels a boost that is still waiting for its post to publish, so nothing has been spent. When the boost exists but nothing was waiting, it answers cancelled false with the reason; an unknown id is a 404.

post/api/v1/boosts/deferred/{adCampaignId}/cancel
boosts:write
Parâmetros de consulta
adCampaignIdstringobrigatório
The deferred boost's ad campaign id, from the list.
Resposta
dataobjectopcional
cancelledbooleanopcional
True when something was cancelled.
runsCancelledintegeropcional
How many boosts were cancelled.
reasonstringopcional
Why nothing was cancelled, when it was not.
Erros
401Chave de API ausente, inválida, expirada ou revogada.
403A chave não tem a permissão exigida, ou não está autorizada para este cliente/local.
404O recurso não foi encontrado, ou não pertence à sua agência.
429Muitas solicitações. Tente novamente após o número de segundos indicado no cabeçalho Retry-After.
post/api/v1/boosts/deferred/{adCampaignId}/cancel
Sua chave de API
adCampaignId *
{
  "data": {
    "cancelled": true,
    "runsCancelled": 1
  }
}

Novo na API da Synup?