List assets
GET {{baseUrl}}/marketing/v3/campaigns/:campaignGuid/assets/:assetType?after=<string>&limit=<string>&startDate=<string>&endDate=<string>
This endpoint lists all assets of the campaign by asset type. The assetType parameter is required, and each request can only fetch assets of a single type. Asset metrics can also be fetched along with the assets; they are available only if start and end dates are provided.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
after | string | A cursor for pagination. If provided, the results will start after the given cursor. | |
Example: NTI1Cg%3D%3D | |||
limit | string | The maximum number of results to return. | |
Default: 10 | |||
startDate | string | Start 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. | |||
endDate | string | End 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. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"results":[{"id":"\u003cstring\u003e","metrics":{"amet1":"\u003cnumber\u003e","labore5b":"\u003cnumber\u003e","pariatur92":"\u003cnumber\u003e","ullamcob":"\u003cnumber\u003e"},"name":"\u003cstring\u003e"},{"id":"\u003cstring\u003e","metrics":{"sunt_4":"\u003cnumber\u003e","esse859":"\u003cnumber\u003e"},"name":"\u003cstring\u003e"}],"paging":{"next":{"after":"\u003cstring\u003e","link":"\u003cstring\u003e"}}}