Создает новую позицию с настройками (включая таргетинг) entityStatus унаследованными от заказа на размещение, и ENTITY_STATUS_DRAFT . В случае успеха возвращает вновь созданную позицию. Существуют значения по умолчанию, основанные на трех полях:
Это применимо только в том случае, если lineItemType имеет значение LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL или LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL .
Тело ответа
В случае успеха тело ответа содержит экземпляр LineItem .
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-02-25 UTC."],[[["Creates a new line item with settings inherited from the insertion order and an `ENTITY_STATUS_DRAFT` entity status."],["YouTube & Partners line items cannot be created or updated using the API."],["The request requires specifying the advertiser ID, insertion order ID, display name, and line item type."],["A successful response returns the created line item."],["Requires authorization with the `https://www.googleapis.com/auth/display-video` scope."]]],["This outlines how to create a new line item by sending a POST request to `https://displayvideo.googleapis.com/v3/advertisers/{advertiserId}/lineItems:generateDefault`. The request body requires the `insertionOrderId`, `displayName`, and `lineItemType`. The advertiser ID is specified in the path. Optionally `mobileApp` object can be included. Default settings are derived from the insertion order's type and automation type and specified `lineItemType`. The response returns the newly created line item, with `ENTITY_STATUS_DRAFT`, upon success.\n"]]