Skip to main content
Version: 6.1.0

SysGetCampaignPageOffset

Returns another page of campaigns, using the encoded context string returned by a previous call to SysGetCampaignPage or to this method.

ServiceOperation
campaignSYS_GET_CAMPAIGN_PAGE_OFFSET

Method Parameters​

ParameterDescription
contextThe encoded context string returned by a previous call to SysGetCampaignPage or SysGetCampaignPageOffset.
pageOffsetThe positive or negative page offset to fetch, relative to the last page retrieved with this context. Pages before the first page return the first page.

Usage​

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"context": "eyJzZWFyY2hDcml0ZXJpYSI6eyJlbmFibGVkIjp0cnVlfSwic29ydENyaXRlcmlhIjp7ImNyZWF0ZWRBdCI6LTF9LCJwYWdpbmF0aW9uIjp7InJvd3NQZXJQYWdlIjoxMCwicGFnZU51bWJlciI6MX19",
"results": {
"count": 11,
"page": 2,
"items": [
{
"campaignCode": "SPRING2027",
"name": "Spring 2027",
"purpose": "Evaluating impact of themes and summer sale on spenders",
"category": null,
"enabled": true,
"startAt": 1811808000000,
"endAt": 1814227200000,
"trigger": "LOGIN",
"target": {
"type": "SEGMENT",
"segmentCode": "spenders"
},
"scenarios": [
{
"scenarioCode": "_",
"weight": 100
}
],
"campaignJson": {
"customFieldA": "summer",
"customFieldB": 1,
"customFieldC": true
},
"abGoalType": "revenue",
"abConfidence": null,
"notes": null,
"version": 1,
"createdAt": 1811721600000,
"updatedAt": 1811721600000
}
],
"moreAfter": false,
"moreBefore": true
}
},
"status": 200
}
Common Error Codes

Status Codes​

CodeNameDescription
40358MISSING_REQUIRED_PARAMETERcontext or pageOffset was not specified.
40616CLOUD_CODE_ONLY_METHODThe method was called from a client. It can only be called from Cloud Code or S2S.
40731FEATURE_NOT_SUPPORTED_BY_BILLING_PLANBilling plan does not include the Campaign feature. Requires a plan that includes Enterprise features.