Версия API Graph

Ad Adlabels

Чтение

Нельзя выполнить эту операцию в этой конечной точке.

Создание

Нельзя выполнить эту операцию в этой конечной точке.

Обновление

Чтобы обновить an AdLabel, отправьте запрос POST на адрес /{ad_id}/adlabels.

Параметры

ПараметрОписание
adlabels
list<Object>

Specification of adlabels to be associated with the ad

Обязательно
execution_options
list<enum{validate_only}>
Значение по умолчанию: Set

An execution setting
validate_only: when this option is specified, the API call will not perform the mutation but will run through the validation rules against values of each field.
If the call passes validation or review, response will be {"success": true}. If the call does not pass, an error will be returned with more details. These options can be used to improve any UI to display errors to the user much sooner, e.g. as soon as a new value is typed into any field corresponding to this ad object, rather than at the upload/save stage, or after review.

Тип возврата

Эта конечная точка поддерживает чтение после записи и будет считывать узел, в который вы сделали публикацию.
Struct {
success: bool,
}

Error Codes

ОшибкаОписание
200Permissions error
100Invalid parameter

Удаление

Нельзя выполнить эту операцию в этой конечной точке.