Edit Ad
PUT {{campaign_url}}/ads/:id
Edit an existing ad
You can edit settings for an existing ad (i.e., change LI creative assignment and/or rotation method) by sending this PUT
request.
Note: To update an ad's statuses, send a PUT
Update Ad Statuses request.
See the table below for desired updates and corresponding changes to make to the JSON object within the body tab. For field descriptions and allowed values, see POST
New Ad documentation.
Desired Update | Request Body Action |
---|---|
Add (i.e., assign) creative to LI | Add a creative structure (containing creativeId and, if relevant, weight value) to creatives array. |
Remove (i.e., un-assign) creative to LI | Delete relevant creative structure from creatives array. Set creatives as an empty array to un-assign all creatives currently associated with the LI. |
Change creative rotation method | Define rotation and add/remove weight values from assigned creatives as necessary. |
For information on obtaining the ad id
, see GET
Existing Ad documentation.
Request Body
{"name"=>"2022 summer ad", "creatives"=>[{"creativeId"=>"{{creativeId}}", "weight"=>2}, {"creativeId"=>"1608815587", "weight"=>1}, {"creativeId"=>"1608815506", "weight"=>1}], "rotation"=>"weighted"}