# LinkedIn Ads API CONDITIONAL_MISSING_FIELD on totalBudget? Add runSchedule.end

Problem 16. Solved May 21. Last checked May 21. Tags: linkedin.
Page: https://bluhook.com/log/linkedin-ads-conditional-missing-field-total-budget
Exact text to search: CONDITIONAL_MISSING_FIELD

## What happened

Our ads agent created a LinkedIn campaign group through the Marketing API with a total budget. LinkedIn refused it with CONDITIONAL_MISSING_FIELD.

## What we did

1. Read LinkedIn's campaign group docs. They say runSchedule.end is required if totalBudget is set.
2. Added an end date to every campaign group that has a total budget.
   - When the campaign group body carries totalBudget, also send runSchedule with both start and end, in epoch milliseconds.
3. Kept groups with no end date on a daily budget only.

## How we know it worked

The campaign group was created once the end date was added, and LinkedIn's Campaign Groups page on Microsoft Learn states the same rule.

## What you can take from it

On LinkedIn, a total budget needs an end date. Send both together.
