Skip to main content
POST
/
advertising
/
api
/
v1
/
ads
/
click
Record ad click
curl --request POST \
  --url https://www.closient.com/advertising/api/v1/ads/click \
  --header 'Content-Type: application/json' \
  --data '
{
  "campaign_id": "<string>",
  "offer_id": "<string>"
}
'
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.closient.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
campaign_id
string<shortuuid>
required

UUID of the campaign that was clicked.

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$
offer_id
string<shortuuid> | null

URL-safe 22-character shortuuid encoding of the row's UUID primary key. Stable across the row's lifetime; suitable for sharing in URLs, log lines, and external SDK clients. Accepted on input as either the shortuuid form or the canonical UUID form (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$

Response

200 - application/json

OK

success
boolean
required

true when the click event was accepted for processing.