Retargeting pixels — capture visitor IDs for re-engagement campaigns.
All URIs are relative to https://up.go-adserver.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| apiV1RetargetingPixelsGet() | GET /api/v1/retargeting/pixels | List the caller's retargeting pixels. |
| apiV1RetargetingPixelsIdActivePatch() | PATCH /api/v1/retargeting/pixels/{id}/active | Activate or deactivate a retargeting pixel. |
| apiV1RetargetingPixelsIdDelete() | DELETE /api/v1/retargeting/pixels/{id} | Soft-delete a retargeting pixel and clear its captured visitors. |
| apiV1RetargetingPixelsIdGet() | GET /api/v1/retargeting/pixels/{id} | Get one retargeting pixel. |
| apiV1RetargetingPixelsIdPut() | PUT /api/v1/retargeting/pixels/{id} | Rename a retargeting pixel. |
| apiV1RetargetingPixelsPost() | POST /api/v1/retargeting/pixels | Create a retargeting pixel. |
apiV1RetargetingPixelsGet(): \GoAdServerApi\Model\ApiV1RetargetingPixelsGet200ResponseList the caller's retargeting pixels.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (gas_live_<32 chars>) authorization: apiKey
$config = GoAdServerApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new GoAdServerApi\Api\RetargetingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->apiV1RetargetingPixelsGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RetargetingApi->apiV1RetargetingPixelsGet: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
\GoAdServerApi\Model\ApiV1RetargetingPixelsGet200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV1RetargetingPixelsIdActivePatch($id, $api_v1_campaigns_type_id_active_patch_request): \GoAdServerApi\Model\ApiV1RetargetingPixelsIdActivePatch200ResponseActivate or deactivate a retargeting pixel.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (gas_live_<32 chars>) authorization: apiKey
$config = GoAdServerApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new GoAdServerApi\Api\RetargetingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int
$api_v1_campaigns_type_id_active_patch_request = new \GoAdServerApi\Model\ApiV1CampaignsTypeIdActivePatchRequest(); // \GoAdServerApi\Model\ApiV1CampaignsTypeIdActivePatchRequest
try {
$result = $apiInstance->apiV1RetargetingPixelsIdActivePatch($id, $api_v1_campaigns_type_id_active_patch_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RetargetingApi->apiV1RetargetingPixelsIdActivePatch: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | ||
| api_v1_campaigns_type_id_active_patch_request | \GoAdServerApi\Model\ApiV1CampaignsTypeIdActivePatchRequest |
\GoAdServerApi\Model\ApiV1RetargetingPixelsIdActivePatch200Response
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV1RetargetingPixelsIdDelete($id)Soft-delete a retargeting pixel and clear its captured visitors.
Sets isdeleted=1 in MySQL and asynchronously deletes the pixel's rows from ClickHouse rt_final. Captured visitor IDs are gone — re-creating with the same name will start fresh.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (gas_live_<32 chars>) authorization: apiKey
$config = GoAdServerApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new GoAdServerApi\Api\RetargetingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int
try {
$apiInstance->apiV1RetargetingPixelsIdDelete($id);
} catch (Exception $e) {
echo 'Exception when calling RetargetingApi->apiV1RetargetingPixelsIdDelete: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV1RetargetingPixelsIdGet($id): \GoAdServerApi\Model\RetargetingPixelGet one retargeting pixel.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (gas_live_<32 chars>) authorization: apiKey
$config = GoAdServerApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new GoAdServerApi\Api\RetargetingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int
try {
$result = $apiInstance->apiV1RetargetingPixelsIdGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RetargetingApi->apiV1RetargetingPixelsIdGet: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int |
\GoAdServerApi\Model\RetargetingPixel
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV1RetargetingPixelsIdPut($id, $api_v1_retargeting_pixels_id_put_request)Rename a retargeting pixel.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (gas_live_<32 chars>) authorization: apiKey
$config = GoAdServerApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new GoAdServerApi\Api\RetargetingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int
$api_v1_retargeting_pixels_id_put_request = new \GoAdServerApi\Model\ApiV1RetargetingPixelsIdPutRequest(); // \GoAdServerApi\Model\ApiV1RetargetingPixelsIdPutRequest
try {
$apiInstance->apiV1RetargetingPixelsIdPut($id, $api_v1_retargeting_pixels_id_put_request);
} catch (Exception $e) {
echo 'Exception when calling RetargetingApi->apiV1RetargetingPixelsIdPut: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | ||
| api_v1_retargeting_pixels_id_put_request | \GoAdServerApi\Model\ApiV1RetargetingPixelsIdPutRequest |
void (empty response body)
- Content-Type:
application/json - Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV1RetargetingPixelsPost($api_v1_retargeting_pixels_post_request): \GoAdServerApi\Model\RetargetingPixelCreate a retargeting pixel.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (gas_live_<32 chars>) authorization: apiKey
$config = GoAdServerApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new GoAdServerApi\Api\RetargetingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$api_v1_retargeting_pixels_post_request = new \GoAdServerApi\Model\ApiV1RetargetingPixelsPostRequest(); // \GoAdServerApi\Model\ApiV1RetargetingPixelsPostRequest
try {
$result = $apiInstance->apiV1RetargetingPixelsPost($api_v1_retargeting_pixels_post_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RetargetingApi->apiV1RetargetingPixelsPost: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| api_v1_retargeting_pixels_post_request | \GoAdServerApi\Model\ApiV1RetargetingPixelsPostRequest |
\GoAdServerApi\Model\RetargetingPixel
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]