List of goals
Returns information about counter goals.
Request
GET
https://api-metrica.yandex.net/management/v1/counter/{counterId}/goals
Path parameters
Name |
Description |
counterId* |
Type: integer<int32> ID of the counter for which you want to get a list of goals. |
Query parameters
Name |
Description |
callback |
Type: string Callback function that processes the API response. |
useDeleted |
Type: boolean Information on deleted goals. Default: |
Responses
200 OK
OK
Body
application/json
{
"goals": [
{
"id": 0,
"name": "string",
"type": "string",
"default_price": 0,
"goal_source": "string",
"is_favorite": false
}
]
}
Name |
Description |
goals |
Type: GoalE[] Counter goals. |
GoalE
Name |
Description |
name* |
Type: string Goal name. Min length: Max length: |
type* |
Type: string Goal type:
|
default_price |
Type: number<double> Default goal cost. |
goal_source |
Type: string Indicates how the goal was created:
|
id |
Type: integer<int64> ID of the goal. Specify this parameter when changing and deleting a counter goal. |
is_favorite |
Type: boolean Whether the goal is favorite:
|
No longer supported, please use an alternative and newer version.