For the complete documentation index, see llms.txt. This page is also available as Markdown.

Goal Selections

Operations related to Goal Selections that define conversion tracking and optimization objectives for campaigns. Enable association of specific Goals with campaigns for performance measurement, attribution modeling, and bid optimization. Support multiple goal selections per campaign with different weightings for multi-objective optimization strategies.

Search goal selections

get
/campaigns/{campaign_id}/goal_selections
Path parameters
campaign_idinteger · int64Required

The campaign owning the goal selections

Query parameters
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
first_resultintegerRequired
statusstring · enumRequiredPossible values:
totalintegerRequired
max_resultsintegerRequired
countintegerRequired
get/campaigns/{campaign_id}/goal_selections
GET /v1/campaigns/{campaign_id}/goal_selections HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "data": [
    {
      "goal_selection_type": "CLICK_ON_AD",
      "default": false,
      "goal_id": "text",
      "goal_name": "text",
      "id": "text"
    }
  ],
  "first_result": 1,
  "status": "ok",
  "total": 1,
  "max_results": 1,
  "count": 1
}

Create goal selection

post
/campaigns/{campaign_id}/goal_selections
Path parameters
campaign_idinteger · int64Required

The campaign owning the goal selections

Body
goal_selection_typestring · enumRequiredPossible values:
defaultbooleanRequiredDefault: false
goal_idstringRequired
goal_namestringRequired
idstringRead-onlyRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/campaigns/{campaign_id}/goal_selections
POST /v1/campaigns/{campaign_id}/goal_selections HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 89

{
  "goal_selection_type": "CLICK_ON_AD",
  "default": false,
  "goal_id": "text",
  "goal_name": "text"
}
{
  "status": "ok",
  "data": {
    "goal_selection_type": "CLICK_ON_AD",
    "default": false,
    "goal_id": "text",
    "goal_name": "text",
    "id": "text"
  }
}

Get goal selection by id

get
/campaigns/{campaign_id}/goal_selections/{id}
Path parameters
campaign_idinteger · int64Required

The campaign owning the goal selections

idinteger · int64Required

The id of the goal selection the campaign

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/campaigns/{campaign_id}/goal_selections/{id}
GET /v1/campaigns/{campaign_id}/goal_selections/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "goal_selection_type": "CLICK_ON_AD",
    "default": false,
    "goal_id": "text",
    "goal_name": "text",
    "id": "text"
  }
}

Update goal selection

put
/campaigns/{campaign_id}/goal_selections/{id}
Path parameters
campaign_idinteger · int64Required

The campaign owning the goal selections

idinteger · int64Required

The id of the goal selection the campaign

Body
goal_selection_typestring · enumRequiredPossible values:
defaultbooleanRequiredDefault: false
goal_idstringRequired
goal_namestringRequired
idstringRead-onlyRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/campaigns/{campaign_id}/goal_selections/{id}
PUT /v1/campaigns/{campaign_id}/goal_selections/{id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 89

{
  "goal_selection_type": "CLICK_ON_AD",
  "default": false,
  "goal_id": "text",
  "goal_name": "text"
}
{
  "status": "ok",
  "data": {
    "goal_selection_type": "CLICK_ON_AD",
    "default": false,
    "goal_id": "text",
    "goal_name": "text",
    "id": "text"
  }
}

Delete goal selection

delete
/campaigns/{campaign_id}/goal_selections/{id}
Path parameters
campaign_idinteger · int64Required

The campaign owning the goal selections

idinteger · int64Required

The id of the goal selection the campaign

Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/campaigns/{campaign_id}/goal_selections/{id}
DELETE /v1/campaigns/{campaign_id}/goal_selections/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok"
}

Last updated

Was this helpful?