Edit LI

PUT {{campaign_url}}/lineItems/:id

Edit an existing line item

You can edit settings for an existing line item by sending this PUT request. To update LI settings, open the body tab to edit the JSON object. See POST New LI documentation for information on field definitions and allowed values.

The following fields cannot be edited:

  • mediaFormat
  • status: To update a line item's play status, send a PUT Update LI Status request.

For information on obtaining the line item id, see GET Existing LI documentation.

Request Body

{"name"=>"irene - LI ver2", "status"=>"play", "mediaFormat"=>"display", "environment"=>{"excludeMobileAppWithoutDeviceId"=>true, "excludeNonOptimizedMobileWeb"=>true, "targetedTypes"=>["desktopWeb"]}, "impressionFrequency"=>{"personOrDeviceFrequencyCapDetails"=>{"cap"=>4, "period"=>5, "periodUnits"=>"days"}}, "iabCategory"=>"iab2-1", "budget"=>{"asapDelivery"=>false, "clientMargin"=>0, "hasDesignatedBudget"=>true, "pacing"=>"evenImpression", "pacingMultiplier"=>0, "schedules"=>[{"budget"=>30, "dailyCap"=>0, "startDate"=>"2022-09-27T13:41:30Z", "endDate"=>"2022-11-27T13:41:30Z", "impressionCap"=>2}]}, "bidding"=>{"dcpm"=>{"bidLimit"=>10, "maxAvgBid"=>5, "goals"=>{"primary"=>{"action"=>{"hardGoal"=>false, "maximizeActionRate"=>true, "optimizationWindowInDays"=>5, "prioritizePerformance"=>95}}}}, "enableViewabilityMeasurement"=>false}, "beacons"=>[{"id"=>"{{beaconId}}", "cta"=>2, "vta"=>5}], "thirdPartyCosts"=>[{"costType"=>"other", "provider"=>"adFin", "cpmCost"=>0.1, "paidBy"=>"amobee"}], "inventory"=>{"exchangeIds"=>["1"], "privatePublisherDeals"=>[{"cpmBid"=>10.0, "publisherDealId"=>"{{publisherDealId}}"}], "enableAutomaticDeals"=>false, "enablePublisherBidCpm"=>false}, "targeting"=>{"nielsenAudience"=>{"gender"=>"female", "ageRange"=>[18, 24], "optimizeDemographicTargeting"=>true, "targetGoal"=>64.0}, "technographic"=>{"browsers"=>["internetExplorer7", "firefox", "opera"], "connectivity"=>{"mediums"=>["cable", "corporate", "dialup", "other", "mobileCarrierNetwork"]}, "devices"=>{"crossDeviceTargeting"=>true, "deviceProfiles"=>[{"operatingSystem"=>{"osId"=>"-16"}}, {"operatingSystem"=>{"osId"=>"-10"}}]}}, "segmentSetIdentity"=>"household", "behavioralSegmentSetId"=>"1615161490", "retargetingIdentity"=>"household", "retargetingSegmentId"=>"{{retargetingSegmentId}}", "inventory"=>{"adVisibility"=>["aboveFold", "belowFold", "unknown"], "adsTxtAuthorizationStatus"=>["authorizedDirectInventory", "authorizedResellerInventory", "unmeasurableInventory"], "siteLists"=>{"includeInventoryListIds"=>["{{inventoryListId}}"]}, "contextualConceptSetId"=>"1614685131", "brandSafetyConceptSetId"=>"1626278188", "ipLists"=>{"includeIpListId"=>"21129872"}}, "locale"=>{"browserLanguages"=>["aa", "en", "tw", "kr"], "daypart"=>[{"day"=>"sunday", "hours"=>["am1", "am5", "pm3"]}, {"day"=>"tuesday", "hours"=>["pm3", "pm8"]}], "geographic"=>{"mobileRadius"=>{"country"=>"us", "entryType"=>"latLong", "entries"=>[{"latLong"=>{"latitude"=>20, "longitude"=>-20}}], "groups"=>["{{locationGroupId}}"], "radius"=>10, "radiusUnits"=>"kilometers"}}}}}