Skip to content

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.

Updated

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#

  1. 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.

  2. Record the placement

    Call placements_record with conceptId, channelId, the platform's ids in outsideIds (such as { "campaign": "…", "ad": "…" }), and optionally copyId, pageId, creativeIds, audienceId, countries and budget (monthly or daily).

  3. Get its tracked link

    Call links_forPlacement with 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.

  4. Mark it live

    Record it with "status": "live" once the ad runs, or later with placements_update. Leave it planned until 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 aiLabel doesn'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#

  1. Load the sequence into the sending tool, one sequence per placement. Replace each {{placeholder}} with the tool's own merge tag.
  2. Call placements_record with 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 send trigger: why these recipients are being contacted now, such as "Opened a second office in the last 30 days".
  3. Call links_issueRecipients with 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, paused or ended), budget, countries, ids, trigger or AI label.
  • Pausing a concept: concepts_pause marks 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 drift work item asks you to fix one or the other.
  • Listing: placements_list with "status": "live" lists what is live now; links_list lists 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?