Record placements and get tracked links
Record each ad or sequence you put into an outside tool with `placements_record`, and get the tracked link its visitors arrive through.
A placement is where a concept is live in an outside tool: an ad in an ad platform, or a sequence in a sending tool. Handline never writes to those tools. You write the ad or sequence there, then record it here, so its visits, numbers and outcomes join up. Recording needs the report scope.
Record an ad placement#
Write the ad in the ad platform
Use the concept's copy from
concepts_get, with facts filled in, and approved creatives that fit the channel's formats.Record the placement
Call
placements_recordwithconceptId,channelId, the platform's ids inoutsideIds(such as{ "campaign": "…", "ad": "…" }), and optionallycopyId,pageId,creativeIds,audienceId,countriesandbudget(monthlyordaily).Get its tracked link
Call
links_forPlacementwith the placement's id. Set the URL it returns as the ad's final URL. The platform adds its click id when the ad is clicked. Asking again returns the same link.Mark it live
Record it with
"status": "live"once the ad runs, or later withplacements_update. Leave itplanneduntil then.
A placement is refused, with what to fix, when:
- the concept isn't approved;
- a country isn't allowed for the channel by the country rules;
- the budget takes the cell past its monthly allocation;
- an outside id is already recorded on another placement;
- a creative isn't approved, or fits none of the channel's formats;
- the channel requires an AI label and a creative is AI-generated, but
aiLabeldoesn't say how you labelled it in the platform; - you mark it live before the product's set-up checklist passes.
Record an email or outbound placement#
- Load the sequence into the sending tool, one sequence per placement. Replace each
{{placeholder}}with the tool's own merge tag. - Call
placements_recordwith the channel, the tool's ids, and every country the placement targets: on email and outbound none is allowed until the country rules allow it. On outbound, also sendtrigger: why these recipients are being contacted now, such as "Opened a second office in the last 30 days". - Call
links_issueRecipientswith the placement's id and the number of recipients, up to 10,000 a call. Give each recipient their own link at every step. Your sending tool matches each link to a person; Handline stores only the link and the placement.
Keep placements true#
- Changes in the tool: when you pause, end or change a placement in its tool, record it with
placements_update:status(planned,live,pausedorended), budget, countries, ids, trigger or AI label. - Pausing a concept:
concepts_pausemarks its live placements paused and opens a work item to pause each one in its tool. - Drift: when what a platform reports differs from the record, such as an ad running that the record says is paused, a
driftwork item asks you to fix one or the other. - Listing:
placements_listwith"status": "live"lists what is live now;links_listlists a placement's links.
Platform tests#
For a test that runs in the ad platform's own A/B tool, record each arm's placement with platformTest: the platform's testId and the armId. Handline reads the test's arms and checks that they reached comparable audiences before it calls anything.
Was this page helpful?