---
title: "Создание сервисного аккаунта в Google Cloud Console"
description: "Узнайте, как создать сервисный аккаунт для безопасного доступа к API в Adapty."
---

Чтобы Adapty мог автоматически получать данные, в Google Play Console необходим сервисный аккаунт.

1. Откройте раздел [**IAM & Admin** -> **Service accounts**](https://console.cloud.google.com/iam-admin/serviceaccounts) в Google Cloud Console. Убедитесь, что выбран нужный проект.

  <img src="/assets/shared/img/17bbf45-google_cloud_create_service_account.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

2. В окне **Service accounts** нажмите кнопку **Create service account**.

  <img src="/assets/shared/img/b93eec1-service_account_details.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

3. В подразделе **Service account details** окна **Create service account** введите желаемое имя в поле **Service Account Name**. Рекомендуем включить в него слово «Adapty», чтобы было понятно назначение аккаунта. Поле **Service account ID** заполнится автоматически.

4. Скопируйте адрес электронной почты сервисного аккаунта и сохраните его для дальнейшего использования.

5. Нажмите кнопку **Create and continue**.

  <img src="/assets/shared/img/e69d713-grant_access_to_project.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

6. В выпадающем списке **Select a role** подраздела **Grant this service account access to project** выберите **Pub/Sub -> Pub/Sub Admin**. Эта роль необходима для включения уведомлений разработчика в реальном времени.

  <img src="/assets/shared/img/976299c-service_account_role.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

7. Нажмите кнопку **Add another role**.

8. В появившемся выпадающем списке **Role** выберите **Monitoring -> Monitoring Viewer**. Эта роль необходима для мониторинга очереди уведомлений.

9. Нажмите кнопку **Continue**.

  <img src="/assets/shared/img/ffe8d82-grant_user_access.webp"
  style={{
    border: '1px solid #727272', /* border width and color */
    width: '700px', /* image width */
    display: 'block', /* for alignment */
    margin: '0 auto' /* center alignment */
  }}
/>

10. Нажмите кнопку **Done**, не внося никаких изменений. Откроется окно **Service accounts**.

**Что дальше**

- [Предоставьте разрешения сервисному аккаунту в Google Play Console](grant-permissions-to-service-account)