Create Line Item

Create a line item on an existing campaign

In Life, a line item is a budgeted execution unit within a campaign that defines how a portion of the campaign’s budget is spent. A line item specifies the channel/type (e.g., display, video, DOOH, audio, search extension, native, universal), cost model and pacing, flights and frequency caps, and other delivery constraints, and it owns the tactics that execute against those settings.

Endpoint

POST

https://lifeapi.pulsepoint.com/RestApi/v2/account/{account_id}/lineitems/

Path Parameters

NameData TypeNotes
account_idintegerThe account ID you are creating line items under

Request Field List

lineitems

NameData TypeRequiredNotes
namestringyes
campaignIdintegeryesThe campaign id where you want to add the line item
costModelENUM stringyesCPM or CPC - CPC can only be used in Native and Search line item types. Fixed CPM is only relevant to clients paying for Managed Services through Life.
cpmPricenumericnoonly relevant for Fixed CPM costModel
descriptionstringno
inventoryTypeENUM stringyesValid Values: Display, Video, Audio, Native, Search, DOOH, NativeVideo
budgetDistributionENUM stringnoHow should budgets be spent across tactics. Default is Dollars. Valid Values: Dollars, Percent, Priority
customFieldSettingsobjectconditionalIf you have a mandatory custom field setting in Life at the line item level, this object will be mandatory. Otherwise, this object is optional.
flightsobjectyesAt least one flight is required
frequencyCapobjectno
daypartingobjectno
managementFeeobjectno
timezoneENUM stringyes

lineItems.customFieldSetting

NameData TypeRequiredNotes
isNewFieldBooleanyesValues: true,false
fieldNameStringyesmust be unique to the account id if isNewField = true
fieldValueStringyes

lineItems.flights

NameData TypeRequiredNotes
budgetnumericyessupport two decimals
startDatestringyesex: 11-01-2025 00:00:00
endDatestringyesex: 11-01-2025 00:00:00
pacingModeENUM stringyesValid Values: EVEN, ASAP, AHEAD
paceAheadPercentintegerconditionalonly required for flights.pacingMode="AHEAD"
totalImpressionCapintegernoTotal Impressions that can serve for a given flight
dailyImpressionCapintegernoTotal impressions that can serve per day on a given flight
maxDailySpendOverrideobjectyesThis optional field is a safety check that limits daily spend, regardless of current budget or pacing. Default is 2x the even pacing of your flight.

lineItems.flights.maxDailySpendOverride

NameData TypeRequiredNotes
enabledbooleanyesvalid values: true, false
typeENUM stringconditionalonly required if enabled=true. valid values: amount, multiplier
valuenumericconditionalonly required if enabled=true. The value of the amount or multiplier for the max daily spend override

lineItems.dayparting

NameData TypeRequiredNotes
enabledbooleannovalid values: true, false
schedulearray of objectsconditionalIf enabled = true then a schedule is required

lineItems.dayparting.schedule

NameData TypeRequiredNotes
daysarray of stringsnoValid values: mon, tue, wed, thu, fri, sat, sun
hoursarray of stringsnoTime ranges in HH:00-HH:00 format (24-hour, on the hour only)

lineItems.frequencyCap

NameData TypeRequiredNotes
applyFrequencyCapbooleanConditionalIf frequencyCap object is used, then it is required
timesintegeryes1-100
periodperiodyesValid Values: day, hour(s), week, month
hoursValueintegerconditionalOnly if hour(s) is the period used. Valid Values: 1 to 1000
crossDeviceENUM StringnoValid Values: Per Device, Per Person, Per Household
untrackablebooleannoInclude untrackable users
ipUntrackablebooleannoInclude IP-untrackable users

lineItems.managementFee

NameData TypeRequiredNotes
typeENUM stringConditionalIf managementFee object is used, then it is required. Valid Values: Percentage, CPM, PercentageAndCPM, FixedCPM
percentageintegerConditionalRequired in management fee types of Percentage or PercentageAndCPM
cpmnumericConditionalRequired in management fee types of CPM , PercentageAndCPM , FixedCPM