Need An Email Marketing Solution For All Of Your Customers?

Partner With VerticalResponse!

createSegmentationQuery


The createSegmentationQuery() method creates a new database segmentation query.

Input

[vrtypens:createSegmentationQueryArgs]

session_id [xsd:string] (required)
Your API session id.
segmentation_query [vrtypens:SegmentationQuery]

Output

[xsd:int]

Examples

Perl

$vr->createSegmentationQuery({
    session_id => $sid.
    segmentation_query => {
       name => 'All VR addresses',
       operation_type => 'union',
       description   => 'Get all VR email address for convention',
       inputs => {
           input_type   => 'list',
           ids         => { 32, 25},
           constraints => {
               constrained_entity => "list_member",
               constrained_field  => "email_address",
               constraint_operator=> "LIKE",
               constraint_values  => {"verticalresponse.com"},
               match_if_field_missing => 0
            }
        }
     }

});

PHP

$vr->createSegmentationQuery(array(
    'session_id' => $sid.
    'segmentation_query' => array(
       'name' => 'All VR addresses',
       'operation_type' => 'union',
       'description'   => 'Get all VR email address for convention',
       'inputs' => array(
           'input_type'  => 'list',
           'ids'         => array( 32, 25),
           'constraints' => array(
               'constrained_entity' => "list_member",
               'constrained_field'  => "email_address",
               'constraint_operator'=> "LIKE",
               'constraint_values'  => array("verticalresponse.com"),
               'match_if_field_missing' => 0
            )
        )
     )
));

Ruby

vr.createSegmentationQuery({
    'session_id' => $sid.
    'segmentation_query' => {
       'name' => 'All VR addresses',
       'operation_type' => 'union',
       'description'   => 'Get all VR email address for convention',
       'inputs' => {
           'input_type'  => 'list',
           'ids'         => { 32, 25},
           'constraints' => {
               'constrained_entity' => "list_member",
               'constrained_field'  => "email_address",
               'constraint_operator'=> "LIKE",
               'constraint_values'  => {"verticalresponse.com"},
               'match_if_field_missing' => 0
            }
        }
     }

});