| Method | update.campaign_parameter_weights |
|---|---|
| Description | Updating the weights of advertising campaign parameters. A weighting system is needed to determine which advertising campaign to match with a visit. If, when you go to a site, one visit corresponds to several advertising campaigns, the system will assign an advertising campaign containing the condition whose value on the weight scale is the highest. |
| Available to | Agent, Client |
Request parameters
| Name | Type | Required | Valid values | Description |
|---|---|---|---|---|
access_token |
string | yes | Authentication session key | |
user_id |
number | no | Unique user identifier of the agent client on behalf of which the request is made Is required for the agentTo obtain a list of client users, you must use the method "get.customer_users" |
|
site_id |
number | yes | Unique site identifier | |
entrance_page |
number | no | from 0 to 100 | Login page |
referrer_domain |
number | no | from 0 to 100 | Referrer domain |
search_engine |
number | no | from 0 to 100 | Search engine |
search_query |
number | no | from 0 to 100 | Search query |
engine |
number | no | from 0 to 100 | Advertising system |
referrer |
number | no | from 0 to 100 | Referrer |
channel |
number | no | from 0 to 100 | Channel |
location |
number | no | from 0 to 100 | Weight value for the parameters city, region, country |
utm_tags |
number | no | from 0 to 100 | Weight value for parameters utm_source, utm_medium, utm_campaign, utm_term, utm_content |
os_tags |
number | no | from 0 to 100 | Weight value for parameters openstat_service, openstat_campaign, openstat_source, openstat_ad |
other_tags |
number | no | from 0 to 100 | Weight value for parameters ef_id, yclid, gclid, ymclid |
JSON request structure```json
{ "jsonrpc": "2.0", "id": "number", "method": "update.campaign_parameter_weights", "params": { "access_token": "string", "user_id": "number", "site_id": "number", "other_tags": "number", "search_query": "number", "ad_engine": "number", "referrer": "number", "channel": "number", "entrance_page": "number", "location": "number", "utm_tags": "number", "os_tags": "number", "referrer_domain": "number", "search_engine": "number" } }
### JSON response structure```json
{
"jsonrpc": "2.0",
"id": "number",
"result": {
"data": {
},
"metadata": {
}
}
}
List of returned errors
See the section "List of errors for methods with the update verb"