hermosodocs

send_tiktok_ads_offline_events

Report in-store and other real-world conversions to TikTok destructive

Area: OFFLINE EVENTS + CRM EVENT SETS · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

REPORT REAL-WORLD CONVERSIONS — an in-store purchase, a phone booking, a signed contract — so TikTok can attribute them to the ads that caused them and optimise delivery toward them. This is what makes a TikTok campaign measurable for a business whose sale does not happen on a website. Emails and phone numbers are normalized and SHA-256 hashed by Hermoso exactly as TikTok specifies before anything leaves the process, using the SAME implementation as send_tiktok_ads_events; a value that is already a 64-character hash is passed through untouched, and a phone with no "+" country code is refused rather than guessed. EITHER emails OR phone_numbers is REQUIRED on every event — an offline conversion identifying nobody is attributed to nothing. Warning: THE TIMESTAMP IS AN ISO-8601 STRING HERE ("2026-08-19T19:11:01Z"), NOT the Unix-seconds NUMBER that send_tiktok_ads_events takes: TikTok accepts a wrong-shaped one, reads it as some other date and attributes the conversion to nothing, so it is refused here for free. Warning: THERE IS NO TEST MODE: TikTok documents test_event_code on Events API 2.0 and on NEITHER offline endpoint, so everything sent here is a real, permanent conversion that no endpoint deletes. To rehearse the pipeline first, send the same events through send_tiktok_ads_events with eventSource "offline", the same event set id and a testEventCode from Events Manager — those land in the Test Events tab and are excluded from reporting, attribution and optimisation. Warning: REPORTING NEEDS A ROLE, NOT JUST A CONNECTION: TikTok requires the connected user to be an ADMIN or OPERATOR of that advertiser account, measured live — the same token can create and delete Offline Event SETS and still be refused on the events themselves. If that happens Hermoso says so plainly rather than telling anyone to reconnect, because reconnecting cannot grant a role; it has to change in TikTok Business Center. Free.

Parameters

ParameterTypeDescription
advertiserIdstringTikTok ad account id from list_tiktok_ads_accounts; omit when only one account is shared with this profile
eventSetIdrequiredstringthe Offline Event Set these belong to — from list_tiktok_ads_offline_event_sets
eventsrequiredobject[]one event goes to TikTok’s single endpoint, several to its bulk one — Hermoso picks
events[].eventrequiredstringone of TikTok’s supported offline events, CASE SENSITIVE: Purchase, Contact, Subscribe, Lead, AddPaymentInfo, AddToCart, ApplicationApproval, AddToWishlist, CompleteRegistration, Download, InitiateCheckout, Search, ViewContent, StartTrial, SubmitApplication, CustomizeProduct, FindLocation, Schedule. TikTok publishes a CLOSED list here and no custom-event mechanism, unlike web events.
events[].timestamprequiredstringISO-8601 STRING, e.g. "2026-08-19T19:11:01Z" — NOT a Unix number
events[].eventIdstringyour own unique id for this event, so it can be matched between your system and TikTok
events[].userrequiredobject{ emails: [...], phone_numbers: [...] } — at least one is REQUIRED. Pass them in the clear and Hermoso hashes them, or pass SHA-256 hashes you already hold.
events[].propertiesobject{ value, currency, order_id, shop_id, contents: [{content_id, content_name, price, quantity}], event_channel: in_store | phone_call | email | website | crm | other }. A value with no currency is refused — TikTok marks both required for revenue reporting, and a figure with no unit is a wrong number rather than a missing one.

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/send_tiktok_ads_offline_events.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"send_tiktok_ads_offline_events","arguments":{"eventSetId":"<string>","events":"<array>"}}}

CLI

hermoso call send_tiktok_ads_offline_events --json '{"eventSetId":"<string>","events":"<array>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 759 Ad campaign management tools · tools.json