Training
For clients
Загружается...
| action | method | request | parameters |
| Create search phrases | POST | /api/v3/search_phrases.json?name=<name> | name - name of the new list, |
| View search phrases | GET | /api/v3/search_phrases/<id>.json | id - list ID |
| View errors | GET | /api/v3/search_phrases/<id>.json?errors=1 | id - list ID |
| View all/selected lists of search phrases | GET | /api/v3/search_phrases.json /api/v3/search_phrases.json?ids=<id1>,...,<idN> | ids - the IDs of the selected lists are separated by commas |
| Rename search phrases | POST | /api/v3/search_phrases/<id>/rename.json?name=<name> | id - list ID name - new list name |
| Change search phrases | PUT | /api/v3/search_phrases/<id>.json? | id - list ID, |
| Delete search phrases | DELETE | /api/v3/search_phrases/<id>.json | id - list ID |
| Download the original csv file | GET | /api/v3/search_phrases/<id>.csv | id - list ID |
Request URL: https://ads.vk.ru/api/v3/search_phrases.json?name=my_test_list
Request Method: POST
Request Heders:
Content-Type: text/csv; charset=UTF-8;
X-Trg-User-Id: <here is the user's ID>
Request URL: https://ads.vk.ru/api/v3/search_phrases.json?name=my_test_list
Request Method: POST
Request Heders:
Content-Type: Content-Type: application/json;
X-Trg-User-Id: <here is the user's ID>
}, { "id": 2, "name": "purchase", "status": "ready", "phrases_cnt": 9, "stop_phrases_cnt": 0, "errors_cnt": 0, "created": "2017-12-23T10:03:45+03:00", "updated":
"2017-12-23T10:03:45+03:00"
,
"category": "test" }, ]}POST request
/api/v3/search_phrases/<id>/rename.json?name=<name>
Parameters:
id - list IDname - new list name
PUT request:
/api/v3/search_phrases/<id>.json
Parameters:
id - list ID
You can also change it using json.