If you're using Kevel [Catalog](https://dev.kevel.com/docs/catalog), the Submit Job endpoint allows you to create ads directly from product data using the asynchronous create ads from products Jobs endpoint. This is the recommended way to create product-based ads in Kevel. You'll provide an ad template, Flight ID, and either a list of product IDs or a product query, and Kevel will create ads derived from product data stored in Catalog. Learn more about [linking products to ads](https://dev.kevel.com/docs/linking-catalog-items-to-ads) and [creating ads from products](https://dev.kevel.com/docs/creating-ads-from-products-via-api) in the knowledge base.

### TaskId

string

### enum

The type of task you are submitting. Currently only `create-ads-from-products` and `create-ads-from-product-query` are supported.

Allowed:

`create-ads-from-products`
`create-ads-from-product-query`
`create-native-product-ad`

### TaskArgs

object

### TaskArgs

object

###

```json
{
  "CompletedTime": null,
  "TaskId": "create-ads-from-products",
  "NetworkId": 11245,
  "Status": "available",
  "TaskArgs": {
    "ProductUris": [
      "itemdb://11261/270/82731247"
    ],
    "AdTemplateUri": "itemdb://11245/101/6330ac20-a9ab-11ee-a04e-c92952d71bab",
    "FlightId": 332150093
  },
  "AvailableTime": "2023-06-02T20:20:52.419028",
  "Output": {},
  "Id": 9000,
  "PartitionId": null
}
```

### Updated 10 months ago
