Unfortunately I am still getting errors on both campaignUpdate AND segmentTest.
$mcapi is a mailchimp API object. $cid a valid Campaign ID. $settings['list_id']
If I remove the lines trying to update or test the segments everything works fine.
The interest grouping IDs and names come from listInterestGroup.
When using $mcapi->campaignSegmentTest($settings['list_id'], $opts); or
When using $mcapi->campaignUpdate($cid, 'segment_opts', $opts);
MailChimp error code: 506, MailChimp error message: op="one" is invalid for field="interest" and value="vip1".
What does this mean? It isnt possible to just select 1 checkbox?
The doc states: Valid Op(erations): one / none / all
Why do I get an error?
Using the following $opts array:
Array
(
[match] => any
[conditions] => Array
(
[0] => Array
(
[field] => interest-13321
[op] => one
[value] => vip1
)
[1] => Array
(
[field] => interest-13481
[op] => one
[value] => group two,gruppe drei
)
)
)