How to filter out datapoints for a specific campaign

Sometimes it could be interesting to get only datapoints from a specific campaign. This API request shows how to handle with this use case.



$output = api_request('' . $campaign_id . '/datapoints?type=TP&status=active', 'GET', NULL, $api_key);



The endpoint used belongs to “Management-Groups” category. It is possible to specify:

  • $campaign_id: the campaign identifier, including datapoints of interest.

  • type: specify the type of datapoints to recover, “TP” for tracking pixel, “TL” for tracking link.

  • status: specify the status of the datapoints to recover, “active”, “paused”, “deleted”..

Return value:

The response body will contain an array (“entities”) of datapoints.

Have more questions? Submit a request


Article is closed for comments.