Update Linkedin Campaign
curl --request POST \
--url 'https://api.adside.ai/linkedin/mcp#update_linkedin_campaign' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "<string>",
"method": "<string>",
"params": {
"name": "<string>",
"arguments": {
"campaign_id": "<string>",
"account_id": "<string>",
"expected_version_tag": "<string>",
"name": "<string>",
"daily_budget_amount": "<string>",
"daily_budget_currency": "<string>",
"total_budget_amount": "<string>",
"total_budget_currency": "<string>",
"unit_cost_amount": "<string>",
"unit_cost_currency": "<string>",
"run_schedule_start": 123,
"run_schedule_end": 123,
"offsite_delivery_enabled": true,
"audience_expansion_enabled": true
}
},
"id": "1"
}
'import requests
url = "https://api.adside.ai/linkedin/mcp#update_linkedin_campaign"
payload = {
"jsonrpc": "<string>",
"method": "<string>",
"params": {
"name": "<string>",
"arguments": {
"campaign_id": "<string>",
"account_id": "<string>",
"expected_version_tag": "<string>",
"name": "<string>",
"daily_budget_amount": "<string>",
"daily_budget_currency": "<string>",
"total_budget_amount": "<string>",
"total_budget_currency": "<string>",
"unit_cost_amount": "<string>",
"unit_cost_currency": "<string>",
"run_schedule_start": 123,
"run_schedule_end": 123,
"offsite_delivery_enabled": True,
"audience_expansion_enabled": True
}
},
"id": "1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
jsonrpc: '<string>',
method: '<string>',
params: {
name: '<string>',
arguments: {
campaign_id: '<string>',
account_id: '<string>',
expected_version_tag: '<string>',
name: '<string>',
daily_budget_amount: '<string>',
daily_budget_currency: '<string>',
total_budget_amount: '<string>',
total_budget_currency: '<string>',
unit_cost_amount: '<string>',
unit_cost_currency: '<string>',
run_schedule_start: 123,
run_schedule_end: 123,
offsite_delivery_enabled: true,
audience_expansion_enabled: true
}
},
id: '1'
})
};
fetch('https://api.adside.ai/linkedin/mcp#update_linkedin_campaign', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.adside.ai/linkedin/mcp#update_linkedin_campaign",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'jsonrpc' => '<string>',
'method' => '<string>',
'params' => [
'name' => '<string>',
'arguments' => [
'campaign_id' => '<string>',
'account_id' => '<string>',
'expected_version_tag' => '<string>',
'name' => '<string>',
'daily_budget_amount' => '<string>',
'daily_budget_currency' => '<string>',
'total_budget_amount' => '<string>',
'total_budget_currency' => '<string>',
'unit_cost_amount' => '<string>',
'unit_cost_currency' => '<string>',
'run_schedule_start' => 123,
'run_schedule_end' => 123,
'offsite_delivery_enabled' => true,
'audience_expansion_enabled' => true
]
],
'id' => '1'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.adside.ai/linkedin/mcp#update_linkedin_campaign"
payload := strings.NewReader("{\n \"jsonrpc\": \"<string>\",\n \"method\": \"<string>\",\n \"params\": {\n \"name\": \"<string>\",\n \"arguments\": {\n \"campaign_id\": \"<string>\",\n \"account_id\": \"<string>\",\n \"expected_version_tag\": \"<string>\",\n \"name\": \"<string>\",\n \"daily_budget_amount\": \"<string>\",\n \"daily_budget_currency\": \"<string>\",\n \"total_budget_amount\": \"<string>\",\n \"total_budget_currency\": \"<string>\",\n \"unit_cost_amount\": \"<string>\",\n \"unit_cost_currency\": \"<string>\",\n \"run_schedule_start\": 123,\n \"run_schedule_end\": 123,\n \"offsite_delivery_enabled\": true,\n \"audience_expansion_enabled\": true\n }\n },\n \"id\": \"1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.adside.ai/linkedin/mcp#update_linkedin_campaign")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"<string>\",\n \"method\": \"<string>\",\n \"params\": {\n \"name\": \"<string>\",\n \"arguments\": {\n \"campaign_id\": \"<string>\",\n \"account_id\": \"<string>\",\n \"expected_version_tag\": \"<string>\",\n \"name\": \"<string>\",\n \"daily_budget_amount\": \"<string>\",\n \"daily_budget_currency\": \"<string>\",\n \"total_budget_amount\": \"<string>\",\n \"total_budget_currency\": \"<string>\",\n \"unit_cost_amount\": \"<string>\",\n \"unit_cost_currency\": \"<string>\",\n \"run_schedule_start\": 123,\n \"run_schedule_end\": 123,\n \"offsite_delivery_enabled\": true,\n \"audience_expansion_enabled\": true\n }\n },\n \"id\": \"1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.adside.ai/linkedin/mcp#update_linkedin_campaign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jsonrpc\": \"<string>\",\n \"method\": \"<string>\",\n \"params\": {\n \"name\": \"<string>\",\n \"arguments\": {\n \"campaign_id\": \"<string>\",\n \"account_id\": \"<string>\",\n \"expected_version_tag\": \"<string>\",\n \"name\": \"<string>\",\n \"daily_budget_amount\": \"<string>\",\n \"daily_budget_currency\": \"<string>\",\n \"total_budget_amount\": \"<string>\",\n \"total_budget_currency\": \"<string>\",\n \"unit_cost_amount\": \"<string>\",\n \"unit_cost_currency\": \"<string>\",\n \"run_schedule_start\": 123,\n \"run_schedule_end\": 123,\n \"offsite_delivery_enabled\": true,\n \"audience_expansion_enabled\": true\n }\n },\n \"id\": \"1\"\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "<string>",
"id": "<string>",
"result": {
"content": [
{
"type": "<string>",
"text": "<string>"
}
]
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Linkedin
Update Linkedin Campaign
Update an existing campaign’s settings (name, status, budget, bid, schedule, delivery options, targeting). Only provided fields are updated via RestLi PARTIAL_UPDATE. objective_type and format are absent on purpose: LinkedIn freezes both once the campaign is saved. Pass expected_version_tag to have the update refused if the campaign changed since you read it. VOCABULARY: the API’s campaign is what Campaign Manager shows as “Ad set” (campaignGroup=“Campaign”, campaign=“Ad set”, creative=“Ad”). Say both names when reporting to a user, or they will look in the wrong tab and think nothing happened.
POST
/
linkedin
/
mcp#update_linkedin_campaign
Update Linkedin Campaign
curl --request POST \
--url 'https://api.adside.ai/linkedin/mcp#update_linkedin_campaign' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "<string>",
"method": "<string>",
"params": {
"name": "<string>",
"arguments": {
"campaign_id": "<string>",
"account_id": "<string>",
"expected_version_tag": "<string>",
"name": "<string>",
"daily_budget_amount": "<string>",
"daily_budget_currency": "<string>",
"total_budget_amount": "<string>",
"total_budget_currency": "<string>",
"unit_cost_amount": "<string>",
"unit_cost_currency": "<string>",
"run_schedule_start": 123,
"run_schedule_end": 123,
"offsite_delivery_enabled": true,
"audience_expansion_enabled": true
}
},
"id": "1"
}
'import requests
url = "https://api.adside.ai/linkedin/mcp#update_linkedin_campaign"
payload = {
"jsonrpc": "<string>",
"method": "<string>",
"params": {
"name": "<string>",
"arguments": {
"campaign_id": "<string>",
"account_id": "<string>",
"expected_version_tag": "<string>",
"name": "<string>",
"daily_budget_amount": "<string>",
"daily_budget_currency": "<string>",
"total_budget_amount": "<string>",
"total_budget_currency": "<string>",
"unit_cost_amount": "<string>",
"unit_cost_currency": "<string>",
"run_schedule_start": 123,
"run_schedule_end": 123,
"offsite_delivery_enabled": True,
"audience_expansion_enabled": True
}
},
"id": "1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
jsonrpc: '<string>',
method: '<string>',
params: {
name: '<string>',
arguments: {
campaign_id: '<string>',
account_id: '<string>',
expected_version_tag: '<string>',
name: '<string>',
daily_budget_amount: '<string>',
daily_budget_currency: '<string>',
total_budget_amount: '<string>',
total_budget_currency: '<string>',
unit_cost_amount: '<string>',
unit_cost_currency: '<string>',
run_schedule_start: 123,
run_schedule_end: 123,
offsite_delivery_enabled: true,
audience_expansion_enabled: true
}
},
id: '1'
})
};
fetch('https://api.adside.ai/linkedin/mcp#update_linkedin_campaign', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.adside.ai/linkedin/mcp#update_linkedin_campaign",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'jsonrpc' => '<string>',
'method' => '<string>',
'params' => [
'name' => '<string>',
'arguments' => [
'campaign_id' => '<string>',
'account_id' => '<string>',
'expected_version_tag' => '<string>',
'name' => '<string>',
'daily_budget_amount' => '<string>',
'daily_budget_currency' => '<string>',
'total_budget_amount' => '<string>',
'total_budget_currency' => '<string>',
'unit_cost_amount' => '<string>',
'unit_cost_currency' => '<string>',
'run_schedule_start' => 123,
'run_schedule_end' => 123,
'offsite_delivery_enabled' => true,
'audience_expansion_enabled' => true
]
],
'id' => '1'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.adside.ai/linkedin/mcp#update_linkedin_campaign"
payload := strings.NewReader("{\n \"jsonrpc\": \"<string>\",\n \"method\": \"<string>\",\n \"params\": {\n \"name\": \"<string>\",\n \"arguments\": {\n \"campaign_id\": \"<string>\",\n \"account_id\": \"<string>\",\n \"expected_version_tag\": \"<string>\",\n \"name\": \"<string>\",\n \"daily_budget_amount\": \"<string>\",\n \"daily_budget_currency\": \"<string>\",\n \"total_budget_amount\": \"<string>\",\n \"total_budget_currency\": \"<string>\",\n \"unit_cost_amount\": \"<string>\",\n \"unit_cost_currency\": \"<string>\",\n \"run_schedule_start\": 123,\n \"run_schedule_end\": 123,\n \"offsite_delivery_enabled\": true,\n \"audience_expansion_enabled\": true\n }\n },\n \"id\": \"1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.adside.ai/linkedin/mcp#update_linkedin_campaign")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"<string>\",\n \"method\": \"<string>\",\n \"params\": {\n \"name\": \"<string>\",\n \"arguments\": {\n \"campaign_id\": \"<string>\",\n \"account_id\": \"<string>\",\n \"expected_version_tag\": \"<string>\",\n \"name\": \"<string>\",\n \"daily_budget_amount\": \"<string>\",\n \"daily_budget_currency\": \"<string>\",\n \"total_budget_amount\": \"<string>\",\n \"total_budget_currency\": \"<string>\",\n \"unit_cost_amount\": \"<string>\",\n \"unit_cost_currency\": \"<string>\",\n \"run_schedule_start\": 123,\n \"run_schedule_end\": 123,\n \"offsite_delivery_enabled\": true,\n \"audience_expansion_enabled\": true\n }\n },\n \"id\": \"1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.adside.ai/linkedin/mcp#update_linkedin_campaign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jsonrpc\": \"<string>\",\n \"method\": \"<string>\",\n \"params\": {\n \"name\": \"<string>\",\n \"arguments\": {\n \"campaign_id\": \"<string>\",\n \"account_id\": \"<string>\",\n \"expected_version_tag\": \"<string>\",\n \"name\": \"<string>\",\n \"daily_budget_amount\": \"<string>\",\n \"daily_budget_currency\": \"<string>\",\n \"total_budget_amount\": \"<string>\",\n \"total_budget_currency\": \"<string>\",\n \"unit_cost_amount\": \"<string>\",\n \"unit_cost_currency\": \"<string>\",\n \"run_schedule_start\": 123,\n \"run_schedule_end\": 123,\n \"offsite_delivery_enabled\": true,\n \"audience_expansion_enabled\": true\n }\n },\n \"id\": \"1\"\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "<string>",
"id": "<string>",
"result": {
"content": [
{
"type": "<string>",
"text": "<string>"
}
]
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
API key (sk_live_*) — SHA256 hashed, looked up in Redis. Generate via the web app's workspace settings.
Body
application/json
⌘I