[Yandex Cloud documentation](../../../index.md) > [Yandex Cloud Video](../../index.md) > [Step-by-step guides](../index.md) > Channels > Setting up a channel and advertising

# Setting up a channel and advertising

## Setting up a channel {#channel-settings}

{% list tabs group=instructions %}

- Cloud Video UI {#console}

  1. Open the Cloud Video [home page](https://video.yandex.cloud/).
  1. Select a channel.
  1. In the right-hand panel, select **Channel settings**.
  1. Enable the **Show video in player before processing is complete** option for playback to start as soon as the video is loaded without waiting for end of processing. In which case the video and metadata will be taken from the source file without transcoding. This feature works only in browsers supporting the source file format.
  1. Under **Advertisement**, specify the ad settings for all videos on your channel.
  1. Under **Permitted domains**, add the addresses of websites that can play back videos from this channel. Videos will not be played on other websites.
     1. Enable **Check status**.
     1. Click ![plus-sign](../../../_assets/console-icons/plus.svg) **Add domain**.
     1. Enter the address of a website or group of websites.
     1. Click **Create**.
     1. Add other domains as needed.
  1. To play back videos on all websites, disable **Check status**. The domains you added will be saved.
  1. Click **Save**.

- API {#api}

  Use the [create](../../api-ref/Channel/create.md) or [update](../../api-ref/Channel/update.md) REST API method for the [Channel](../../api-ref/Channel/index.md) resource, [ChannelService/Create](../../api-ref/grpc/Channel/create.md) or [ChannelService/Update](../../api-ref/grpc/Channel/update.md) gRPC API call. Provide your settings in the `settings` parameter.

{% endlist %}

## Configuring ads {#ad-settings}

You can monetize your video content using the Yandex Advertising Network.

To configure ads:

1. Review the [requirements for placing video blocks](https://yandex.ru/support2/partner/ru/yan-rules/video).
1. [Sign up](http://partner.yandex.ru/form/) for the Yandex Advertising Network (YAN).
1. Submit a request to [support](https://yandex.ru/support2/partner/ru/support) to add your video resource.

    For more information, see these Yandex guides: [New partners](https://yandex.ru/support2/partner/ru/joining/) and [Creating a video resource](https://yandex.ru/support2/partner/ru/video/resource).

    After creating a video resource, the **Video advertising** section will appear in the Yandex Advertising Network interface, and the video resource itself will appear in the **Video advertising → Video resources** tab. It will be assigned a unique `Page ID` and get the **New** status.

1. [Add](#add-page-id) the `Page ID` to the Cloud Video channel settings.
1. Wait until the moderation process is completed: the video resource status in YAN will change to **Active. No statistics**.
1. [Configure](https://yandex.ru/support2/partner/ru/video/create-instream) the display of ad blocks for your videos.
1. [Enable](../video/update.md) ads for each video individually.
1. [View statistics](https://yandex.ru/support2/partner/ru/statistics/working-with-reports) on advertising and learn about [technologies for increasing advertising efficiency](https://yandex.ru/support2/partner/ru/efficiency/site-quality).

### Adding Page ID {#add-page-id}

{% list tabs group=instructions %}

- Cloud Video UI {#console}

  1. Open **Channel settings**.
  1. Under **Advertisement**, specify:
     * **Provider**: `Yandex Direct`.
     * **PageID** you got after you created your video resource.
     * **Category** (topic) of the videos on your channel.
  1. Click **Save**.

- API {#api}

  Use the [create](../../api-ref/Channel/create.md) or [update](../../api-ref/Channel/update.md) REST API method for the [Channel](../../api-ref/Channel/index.md) resource, [ChannelService/Create](../../api-ref/grpc/Channel/create.md) or [ChannelService/Update](../../api-ref/grpc/Channel/update.md) gRPC API call.
  
  Provide your advertising settings using the `settings` > `advertisement` parameter.

{% endlist %}

#### Useful links {#see-also}

[Channels](../../concepts/index.md#channels)