Create campaign
documentedCreate a new campaign.
POST /ad_accounts/{ad_account_id}/campaignsAdsno 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.pinterest.com/v5/ad_accounts/{{$ad_account_id}}/campaigns" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '[{"ad_account_id": "{{$ad_account_id}}", "name": "{{$name}}", "daily_spend_cap": {{$daily_spend_cap}}, "lifetime_spend_cap": {{$lifetime_spend_cap}}, "start_time": {{$start_time}}, "end_time": {{$end_time}}, "objective_type": "{{$objective_type}}", "status": "{{$status}}", "is_performance_plus": {{$is_performance_plus}}, "is_flexible_daily_budgets": {{$is_flexible_daily_budgets}}}]'