Read a batch of campaigns

POST {{baseUrl}}/marketing/v3/campaigns/batch/read?startDate=<string>&endDate=<string>&properties=<string>&properties=<string>

This endpoint reads a batch of campaigns based on the provided input data and returns the campaigns along with their associated assets. The maximum number of items in a batch request is 50. The campaigns in the response are not guaranteed to be in the same order as they were provided in the request. If duplicate campaign IDs are provided in the request, duplicates will be ignored. The response will include only unique IDs and will be returned without duplicates.

Request Params

KeyDatatypeRequiredDescription
startDatestringStart date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to fetch the metrics associated with the assets for a specified period. If not provided, no asset metrics will be fetched.
endDatestringEnd date to fetch asset metrics, formatted as YYYY-MM-DD. This date is used to fetch the metrics associated with the assets for a specified period. If not provided, no asset metrics will be fetched.
propertiesstringA comma-separated list of the properties to be returned in the response. If any of the specified properties has empty value on the requested object(s), they will be ignored and not returned in response. If this parameter is empty, the response will include an empty properties map.
propertiesstringA comma-separated list of the properties to be returned in the response. If any of the specified properties has empty value on the requested object(s), they will be ignored and not returned in response. If this parameter is empty, the response will include an empty properties map.

Request Body

{"inputs"=>[{"id"=>"<string>"}, {"id"=>"<string>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;completedAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;results&quot;:[{&quot;assets&quot;:{&quot;dolor_ef8&quot;:{&quot;results&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metrics&quot;:{&quot;ipsum_85&quot;:&quot;\u003cnumber\u003e&quot;,&quot;nullad4&quot;:&quot;\u003cnumber\u003e&quot;,&quot;elitf0&quot;:&quot;\u003cnumber\u003e&quot;,&quot;culpa9e&quot;:&quot;\u003cnumber\u003e&quot;},&quot;name&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metrics&quot;:{&quot;incididunt_fc7&quot;:&quot;\u003cnumber\u003e&quot;,&quot;quis_ef&quot;:&quot;\u003cnumber\u003e&quot;,&quot;occaecat_000&quot;:&quot;\u003cnumber\u003e&quot;,&quot;ullamcob&quot;:&quot;\u003cnumber\u003e&quot;,&quot;sint66e&quot;:&quot;\u003cnumber\u003e&quot;},&quot;name&quot;:&quot;\u003cstring\u003e&quot;}],&quot;paging&quot;:{&quot;next&quot;:{&quot;after&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;},&quot;prev&quot;:{&quot;before&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;}}}},&quot;createdAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;properties&quot;:{&quot;voluptate_1&quot;:&quot;\u003cstring\u003e&quot;},&quot;updatedAt&quot;:&quot;\u003cdateTime\u003e&quot;},{&quot;assets&quot;:{&quot;ex23&quot;:{&quot;results&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metrics&quot;:{&quot;adipisicing_7&quot;:&quot;\u003cnumber\u003e&quot;},&quot;name&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metrics&quot;:{&quot;magnacec&quot;:&quot;\u003cnumber\u003e&quot;},&quot;name&quot;:&quot;\u003cstring\u003e&quot;}],&quot;paging&quot;:{&quot;next&quot;:{&quot;after&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;},&quot;prev&quot;:{&quot;before&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;}}},&quot;labore357&quot;:{&quot;results&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metrics&quot;:{&quot;inec2&quot;:&quot;\u003cnumber\u003e&quot;},&quot;name&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metrics&quot;:{&quot;ut7d_&quot;:&quot;\u003cnumber\u003e&quot;,&quot;in_a&quot;:&quot;\u003cnumber\u003e&quot;},&quot;name&quot;:&quot;\u003cstring\u003e&quot;}],&quot;paging&quot;:{&quot;next&quot;:{&quot;after&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;},&quot;prev&quot;:{&quot;before&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;}}},&quot;mollit_130&quot;:{&quot;results&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metrics&quot;:{&quot;sit_9&quot;:&quot;\u003cnumber\u003e&quot;},&quot;name&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metrics&quot;:{&quot;aliqua_1c7&quot;:&quot;\u003cnumber\u003e&quot;,&quot;anim_d33&quot;:&quot;\u003cnumber\u003e&quot;},&quot;name&quot;:&quot;\u003cstring\u003e&quot;}],&quot;paging&quot;:{&quot;next&quot;:{&quot;after&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;},&quot;prev&quot;:{&quot;before&quot;:&quot;\u003cstring\u003e&quot;,&quot;link&quot;:&quot;\u003cstring\u003e&quot;}}}},&quot;createdAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;properties&quot;:{&quot;Ut2f9&quot;:&quot;\u003cstring\u003e&quot;,&quot;tempor158&quot;:&quot;\u003cstring\u003e&quot;,&quot;aliquaf9&quot;:&quot;\u003cstring\u003e&quot;},&quot;updatedAt&quot;:&quot;\u003cdateTime\u003e&quot;}],&quot;startedAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;status&quot;:&quot;COMPLETE&quot;,&quot;requestedAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;links&quot;:{&quot;pariatur74&quot;:&quot;\u003cstring\u003e&quot;}}