This page describes the data fields of a target group and how to de-/serialize a target group as XML.

Targetgroup

This section describes the attributes of a targetgroup.

Attribute Type Default Description
id long The ID of the targetgroup
name String The (display) name of the targetgroup
author String The email adress of the author of the targetgroup
state String The state of the targetgroup, can be one of: ‚outofdate‘,’updating‘,’uptodate‘
type String The type of the targetgroup, can be one of:
contact_filter_name String The name of the contactfilter that is used by the targetgroup.
contact_filter_id String long The ID of the contactfilter that is used by the targetgroup.
evaluated String The date when the targetgroup was last evaluated (updating the contact counts) in standard SQL format:/ yyyy-MM-dd HH:mm:ss
created String The date when the targetgroup was created in standard SQL format:/ yyyy-MM-dd HH:mm:ss
updated String The last date when the targetgroup was updated in standard SQL format:/ yyyy-MM-dd HH:mm:ss
count_active_contacts int The number of active contacts (contacts that Maileon is allowed to send emails to) that match the targetgroup
count_contacts int The number of contacts that match the targetgroup

XML Representation

This is an example of an XML representation of a targetgroup:

<?xml version="1.0" encoding="UTF-8"?>
<targetgroup>
   <id>12</id>
   <name>MySampleTargetGroup</name>
   <author>xq-freiburg@xqueue.com</author>
   <state>uptodate</state>
   <type>regular</type>
   <contact_filter_name>MySampleFilter</contact_filter_name>
   <contact_filter_id>1</contact_filter_id>
   <evaluated>2015-03-18 08:26:04</evaluated>
   <created>2014-06-27 09:15:18</created>
   <updated>2014-06-27 09:15:18</updated>
   <count_active_contacts>1</count_active_contacts>
   <count_contacts>12</count_contacts>
</targetgroup>