post: tags: - Reports security: - ApiKeyAuth: [] summary: Build custom report description: >

List of available operators:

Operator Type Expression Example
EQUALS Number 10
NOT_EQUAL Number 10
EQUALS_OR_GREATER_THAN Number 10
EQUALS_OR_LESS_THAN Number 10
GREATER_THAN Number 10
LESS_THAN Number 10
MATCH_REGEXP String /uuid=100[0-9]{2}/
NOT_MATCH_REGEXP String /uuid=100[0-9]{2}/
BEGINS_WITH String abc
ENDS_WITH String zyx
CONTAINS String mnp
NOT_CONTAIN String abc
IN_LIST Array [“a”, “b”, “c”]
NOT_IN_LIST Array [“a”, “b”, “c”]
BETWEEN Array
IS_SET
IS_NOT_SET
IS_TRUE
IS_FALSE
HAS_LABEL whitelist or blacklist
NOT_HAS_LABEL whitelist or blacklist

Field 'metrics'

Stats

Money

Field 'columns'

IDS

Data

Flags

Date and Time

Other

Conversions Specific (for Entry-point Conversions):

requestBody: description: Build a custom report required: true content: application/json: schema: $ref: ../schemas/ReportsRequest.yaml responses: '200': description: Reports content: application/json: schema: $ref: ../schemas/Report.yaml '400': $ref: ../responses/BadRequest.yaml '401': $ref: ../responses/Unauthorized.yaml '402': $ref: ../responses/PaymentRequired.yaml '406': $ref: ../responses/NotAcceptable.yaml '500': $ref: ../responses/InternalError.yaml x-code-samples: - lang: PHP source: >- [ 'from' => '2017-09-10', 'to' => '2017-09-12', 'timezone' => 'Europe/Madrid' ], 'dimensions' => ['ts', 'landing'], 'metrics' => ['clicks', 'bot_share', 'cr'], 'filters' => [ "OR" => [ "AND" => [ ['name' => 'campaign_id', 'operator' => 'EQUALS', 'expression' => 4], ['name' => 'stream_id', 'operator' => 'EQUALS', 'expression' => 8], ], ['name' => 'campaign_id', 'operator' => 'EQUALS', 'expression' => 5] ] ] ]; curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); echo curl_exec($ch);