Smart Campaigns
Marketo offers a set of REST APIs for performing operations on smart campaigns. These APIs follow the standard interface pattern for asset APIs providing query, create, clone, and delete options. Also, you can manage smart campaign execution by scheduling batch campaigns or requesting trigger campaigns.
Query
Querying smart campaigns follows the standard query types for assets of by id,听by name, and聽browsing.
By Id
罢丑别听聽endpoint takes a single smart campaign id
as a path parameter and returns a single smart campaign record.
GET /rest/asset/v1/smartCampaign/{id}.json
{
"success": true,
"errors": [],
"requestId": "7883#169838a32f0",
"warnings": [],
"result": [
{
"id": 1001,
"name": "Process Bounced Emails",
"description": "System smart campaign for processing bounced email events",
"createdAt": "2016-09-10T23:16:19Z+0000",
"updatedAt": "2016-09-10T23:16:19Z+0000",
"status": "Never Run",
"type": "batch",
"isSystem": false,
"isActive": false,
"isRequestable": false,
"isCommunicationLimitEnabled": false,
"recurrence": {
"weekdayOnly": false
},
"qualificationRuleType": "once",
"workspace": "Default",
"smartListId": 1001,
"flowId": 1001,
"computedUrl": "https://app-sjqe.marketo.com/#SC1001A1"
}
]
}
With this endpoint, there will always be a single record in the first position of the result
array.
By Name
罢丑别听 endpoint takes a single smart campaign name
as a parameter and returns a single smart campaign record.
GET /rest/asset/v1/smartCampaign/byName.json?name=Test Trigger Campaign