Skip to main content

Sync Ad Account

POST 

/api/clicktracking/ad-accounts/:ad_account_id/sync

Trigger a refresh sync for a connected ad account.

This is the endpoint behind BOTH "Sync now" and "Retry". A refresh over an account whose first import never finished runs AS that import (see workers/handlers/clicktracking_ad_sync._effective_sync_mode), which is what lets Retry clear a stuck "Importing…" or "Import failed" card.

Args: ad_account_id: The ad account ID. ad_account_service: Injected ad account service.

Returns: Success message.

Raises: HTTPException: If the ad account is not found, the job could not be queued, or the sync fails.

Request​

Responses​

Successful Response