I have create ab activity via api and have added the metrics also and my request body is as below. After creating i can't even the Goal section in ui and also while using
targetClient.getAttributes function i'm not getting the mbox data but if i create the same within ui i'm able to get it. Im using on-device-decisioning github example.
{
"thirdPartyId": "dce8c3f8-7087-4846-92c6-ca368b00bc2e",
"name": "Demo Engineering Feature Flags - API",
"state": "approved",
"priority": 0,
"options": [
{
"optionLocalId": 2,
"name": "Offer2",
"offerId": 2004991,
"offerTemplates": []
},
{
"optionLocalId": 3,
"name": "Offer3",
"offerId": 2004990,
"offerTemplates": []
}
],
"locations": {
"mboxes": [
{
"locationLocalId": 0,
"name": "demo-engineering-flags-ab",
"audienceIds": [
623999
]
}
],
"selectors": []
},
"experiences": [
{
"experienceLocalId": 0,
"name": "Experience A",
"audienceIds": [],
"visitorPercentage": 50,
"optionLocations": [
{
"locationLocalId": 0,
"optionLocalId": 2
}
]
},
{
"experienceLocalId": 1,
"name": "Experience B",
"audienceIds": [],
"visitorPercentage": 50,
"optionLocations": [
{
"locationLocalId": 0,
"optionLocalId": 3
}
]
}
],
"metrics": [
{
"metricLocalId": 32767,
"name": "MY PRIMARY GOAL",
"conversion": true,
"engagement": "score",
"action": {
"type": "count_once"
},
"mboxes": [
{
"name": "demo-engineering-flags-ab",
"successEvent": "mbox_shown"
}
],
"clickTrackSelectors": []
}
],
"reportingAudiences": [],
"propertyIds": [
4914
],
"workspace": "606852004"
}