Create ad campaign
documentedCreate a new advertising campaign.
POST /v2/adCampaignsV2Adsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.linkedin.com/rest/adCampaigns" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "X-Restli-Protocol-Version: 2.0.0" \
-H "Linkedin-Version: {{$linkedin_version}}" \
-d '{"account": "urn:li:sponsoredAccount:{{$account_id}}", "campaignGroup": "urn:li:sponsoredCampaignGroup:{{$campaign_group_id}}", "audienceExpansionEnabled": false, "costType": "CPM", "dailyBudget": {"amount": "{{$daily_budget}}", "currencyCode": "{{$currency_code}}"}, "locale": {"country": "{{$country}}", "language": "{{$language}}"}, "name": "{{$title}}", "objectiveType": "{{$objectiveType}}", "offsiteDeliveryEnabled": false, "runSchedule": {"start": {{$start_time}}, "end": {{$end_time}}}, "type": "{{$ad_type}}", "unitCost": {"amount": "{{$unit_cost}}", "currencyCode": "{{$currency_code}}"}}'