Skip to content
Fourohtwo

creator.halowerk.com/v1/ad-placement-opt

Sorts caller-supplied placement opportunities by end time and solves the weighted non-overlapping interval problem exactly with dynamic programming. It does not buy inventory, predict conversion, enforce platform policy, model audience harm or guarantee campaign performance.

BaseAnswering
POSThttps://creator.halowerk.com/v1/ad-placement-opt

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://creator.halowerk.com/v1/ad-placement-opt", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"placements":[{"end":15,"id":"pre-roll-a","start":0,"value":42},{"end":28,"id":"mid-roll-b","start":12,"value":55},{"end":42,"id":"mid-roll-c","start":28,"value":38},{"end":42,"id":"bundle-d","start":0,"value":88}]}),
});
console.log(await res.json());

Example input

{
  "placements": [
    {
      "end": 15,
      "id": "pre-roll-a",
      "start": 0,
      "value": 42
    },
    {
      "end": 28,
      "id": "mid-roll-b",
      "start": 12,
      "value": 55
    },
    {
      "end": 42,
      "id": "mid-roll-c",
      "start": 28,
      "value": 38
    },
    {
      "end": 42,
      "id": "bundle-d",
      "start": 0,
      "value": 88
    }
  ]
}

More from HALOWERK creatorwerkProvider status