Создает новую позицию с настройками (включая таргетинг) 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-01-04 UTC."],[[["Display & Video 360 API v1 is sunset and this documentation details the process to generate a new line item with inherited settings from the insertion order."],["The new line item is created with an `ENTITY_STATUS_DRAFT` status and default values based on insertion order type, automation type, and the given line item type."],["A successful request returns the newly created line item and requires authorization with the `https://www.googleapis.com/auth/display-video` scope."],["The request body must include the insertion order ID, display name, line item type, and optionally, details about a promoted mobile app."]]],["This content outlines how to generate a default line item via the Display & Video API. It utilizes a `POST` request to `https://displayvideo.googleapis.com/v1/advertisers/{advertiserId}/lineItems:generateDefault`, requiring an `advertiserId`. The request body needs `insertionOrderId`, `displayName`, and `lineItemType`; `mobileApp` is needed if the `lineItemType` is for mobile app installs. This will generate the line item inherited from the insertion order and return a new line item with `ENTITY_STATUS_DRAFT` if successful. The operation needs the `https://www.googleapis.com/auth/display-video` authorization scope.\n"]]