All URIs are relative to https://up.go-adserver.com
| 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. |
ApiV1RetargetingPixelsGet200Response apiV1RetargetingPixelsGet()
List the caller's retargeting pixels.
import {
Configuration,
RetargetingApi,
} from 'goadserver-sdk';
import type { ApiV1RetargetingPixelsGetRequest } from 'goadserver-sdk';
async function example() {
console.log("🚀 Testing goadserver-sdk SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: apiKey
accessToken: "YOUR BEARER TOKEN",
});
const api = new RetargetingApi(config);
try {
const data = await api.apiV1RetargetingPixelsGet();
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);This endpoint does not need any parameter.
ApiV1RetargetingPixelsGet200Response
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Pixel list | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ApiV1RetargetingPixelsIdActivePatch200Response apiV1RetargetingPixelsIdActivePatch(id, apiV1CampaignsTypeIdActivePatchRequest)
Activate or deactivate a retargeting pixel.
import {
Configuration,
RetargetingApi,
} from 'goadserver-sdk';
import type { ApiV1RetargetingPixelsIdActivePatchRequest } from 'goadserver-sdk';
async function example() {
console.log("🚀 Testing goadserver-sdk SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: apiKey
accessToken: "YOUR BEARER TOKEN",
});
const api = new RetargetingApi(config);
const body = {
// number
id: 56,
// ApiV1CampaignsTypeIdActivePatchRequest
apiV1CampaignsTypeIdActivePatchRequest: ...,
} satisfies ApiV1RetargetingPixelsIdActivePatchRequest;
try {
const data = await api.apiV1RetargetingPixelsIdActivePatch(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| id | number |
[Defaults to undefined] |
|
| apiV1CampaignsTypeIdActivePatchRequest | ApiV1CampaignsTypeIdActivePatchRequest |
ApiV1RetargetingPixelsIdActivePatch200Response
- Content-Type:
application/json - Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | New state | - |
[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.
import {
Configuration,
RetargetingApi,
} from 'goadserver-sdk';
import type { ApiV1RetargetingPixelsIdDeleteRequest } from 'goadserver-sdk';
async function example() {
console.log("🚀 Testing goadserver-sdk SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: apiKey
accessToken: "YOUR BEARER TOKEN",
});
const api = new RetargetingApi(config);
const body = {
// number
id: 56,
} satisfies ApiV1RetargetingPixelsIdDeleteRequest;
try {
const data = await api.apiV1RetargetingPixelsIdDelete(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| id | number |
[Defaults to undefined] |
void (Empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | Deleted | - |
| 404 | Not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RetargetingPixel apiV1RetargetingPixelsIdGet(id)
Get one retargeting pixel.
import {
Configuration,
RetargetingApi,
} from 'goadserver-sdk';
import type { ApiV1RetargetingPixelsIdGetRequest } from 'goadserver-sdk';
async function example() {
console.log("🚀 Testing goadserver-sdk SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: apiKey
accessToken: "YOUR BEARER TOKEN",
});
const api = new RetargetingApi(config);
const body = {
// number
id: 56,
} satisfies ApiV1RetargetingPixelsIdGetRequest;
try {
const data = await api.apiV1RetargetingPixelsIdGet(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| id | number |
[Defaults to undefined] |
- Content-Type: Not defined
- Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Pixel | - |
| 404 | Not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV1RetargetingPixelsIdPut(id, apiV1RetargetingPixelsIdPutRequest)
Rename a retargeting pixel.
import {
Configuration,
RetargetingApi,
} from 'goadserver-sdk';
import type { ApiV1RetargetingPixelsIdPutOperationRequest } from 'goadserver-sdk';
async function example() {
console.log("🚀 Testing goadserver-sdk SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: apiKey
accessToken: "YOUR BEARER TOKEN",
});
const api = new RetargetingApi(config);
const body = {
// number
id: 56,
// ApiV1RetargetingPixelsIdPutRequest
apiV1RetargetingPixelsIdPutRequest: ...,
} satisfies ApiV1RetargetingPixelsIdPutOperationRequest;
try {
const data = await api.apiV1RetargetingPixelsIdPut(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| id | number |
[Defaults to undefined] |
|
| apiV1RetargetingPixelsIdPutRequest | ApiV1RetargetingPixelsIdPutRequest |
void (Empty response body)
- Content-Type:
application/json - Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | Updated | - |
| 404 | Not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RetargetingPixel apiV1RetargetingPixelsPost(apiV1RetargetingPixelsPostRequest)
Create a retargeting pixel.
import {
Configuration,
RetargetingApi,
} from 'goadserver-sdk';
import type { ApiV1RetargetingPixelsPostOperationRequest } from 'goadserver-sdk';
async function example() {
console.log("🚀 Testing goadserver-sdk SDK...");
const config = new Configuration({
// Configure HTTP bearer authorization: apiKey
accessToken: "YOUR BEARER TOKEN",
});
const api = new RetargetingApi(config);
const body = {
// ApiV1RetargetingPixelsPostRequest
apiV1RetargetingPixelsPostRequest: ...,
} satisfies ApiV1RetargetingPixelsPostOperationRequest;
try {
const data = await api.apiV1RetargetingPixelsPost(body);
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);| Name | Type | Description | Notes |
|---|---|---|---|
| apiV1RetargetingPixelsPostRequest | ApiV1RetargetingPixelsPostRequest |
- Content-Type:
application/json - Accept:
application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Created | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]