LinkedIn Ads API to launch campaigns from code

Connect your LinkedIn Ads account in a minute and launch your first campaign today.

Launch B2B LinkedIn campaigns targeted by job title, industry or company, straight from your code.

  • Sponsored content
  • B2B targeting
  • Lead Gen
  • Reports
POST /v1/posts/pst_9f2a/boost
{
  "accountId": "acc_linkedin",
  "adAccountId": "act_…",
  "name": "Winter sale",
  "goal": "traffic",
  "budget": {
    "amount": 40,
    "type": "daily"
  },
  "targeting": {
    "countries": [
      "GB",
      "IE"
    ],
    "ageMin": 25,
    "ageMax": 45
  }
}
200 Received · we'll notify you by webhook

What Marsial does with LinkedIn Ads

Marsial publishes and schedules content on your own LinkedIn Ads accounts, always with your permission through OAuth, and shows you their statistics. It does not automate interactions (likes, follows or bulk messages) and does not read data from other people's accounts. You can disconnect the account at any time.

How it works

From zero to LinkedIn Ads in minutes

  1. 1

    Connect LinkedIn Ads

    You or your clients connect the account with OAuth from a screen with your brand.

  2. 2

    Send a request

    POST /v1/posts/pst_9f2a/boost with the content. We adapt it to the LinkedIn Ads format.

  3. 3

    Receive the webhooks

    Posts, replies, messages and metrics arrive at your endpoint in the same format.

FAQ

Questions about LinkedIn Ads

Do I need my own access to the LinkedIn Ads API?

No. You connect your ad account with OAuth from Marsial and that's it.

Do you take a percentage of ad spend?

No. You pay the spend directly to the network; we charge per connected account and, beyond 500 active ads, per ad.

Can an AI agent manage my campaigns?

Yes, through our MCP server: it reads results, pauses campaigns and adjusts budgets with the permissions of whoever connected it.

Connect LinkedIn Ads today

Create your account in a minute, no card needed. Try it free for 7 days from your first post.

🚧 Not ready yet

We're finishing building it

Marsial is in early access. Leave your email and you'll be among the first in, with launch terms.

or with your email

No spam. We'll only write to give you access.

You're on the list!

We'll write to you as soon as your access is ready.