---
title: Apple App Store
description: Połącz Apple App Store, poznaj sposób synchronizacji i wysyłaj zapytania do wszystkich zapisywanych tabel i kolumn.
species: reference
---
# Apple App Store

Połącz Apple App Store za pomocą identyfikatorów wystawcy i klucza, klucza prywatnego oraz numeru dostawcy. Źródło zapisuje 1 stałą tabelę w schemacie `titan.apple_app_store`.
```sql
select
  event_date,
  app_name,
  app_apple_id
from titan.apple_app_store.sales_subscriber_detailed
limit 10
```

## Połącz Apple App Store

1. Otwórz **Aplikacje**, wybierz **Połącz aplikację**, a następnie **Apple App Store**.
2. Podaj identyfikator wystawcy, identyfikator klucza, klucz prywatny i numer dostawcy.
3. Sprawdź tabele, a następnie zapisz źródło.
4. Obserwuj **Historię synchronizacji**, aż pierwsze uruchomienie się zakończy.

Dane uwierzytelniające są przechowywane jako sekrety. Nigdy nie stają się kolumnami jeziora ani nie pojawiają się w wynikach zapytań.

## Sposób synchronizacji

Supernova pobiera szczegółowe raporty sprzedaży subskrypcji i zachowuje ich pola jako kolumny z określonymi typami.

Nowe źródło synchronizuje się po połączeniu, a następnie zgodnie z harmonogramem. Domyślny interwał cykliczny wynosi 4 godziny. Przerwane uruchomienie zachowuje ukończone postępy i jest bezpiecznie ponawiane.

Każda tabela jeziora ma też [kolumny systemowe](/docs/concepts/your-lake#kolumny-systemowe) `_synced_at` i `_deleted`; poniższa dokumentacja kolumn obejmuje wyłącznie kolumny źródłowe.

## Dokumentacja tabel

### `sales_subscriber_detailed`

`titan.apple_app_store.sales_subscriber_detailed` ma 26 kolumn źródłowych.

```columns table=apple_app_store.sales_subscriber_detailed
event_date                              date pk             Pole źródłowe `event_date`.
app_name                                string              Pole źródłowe `app_name`.
app_apple_id                            integer             Pole źródłowe `app_apple_id`.
subscription_name                       string pk           Pole źródłowe `subscription_name`.
subscription_apple_id                   integer             Pole źródłowe `subscription_apple_id`.
subscription_group_id                   integer             Pole źródłowe `subscription_group_id`.
standard_subscription_duration          string              Pole źródłowe `standard_subscription_duration`.
subscription_offer_name                 string              Pole źródłowe `subscription_offer_name`.
promotional_offer_id                    string              Pole źródłowe `promotional_offer_id`.
subscription_offer_type                 string              Pole źródłowe `subscription_offer_type`.
subscription_offer_duration             string              Pole źródłowe `subscription_offer_duration`.
marketing_opt_in_duration               string              Pole źródłowe `marketing_opt_in_duration`.
customer_price                          float               Pole źródłowe `customer_price`.
customer_currency                       string              Pole źródłowe `customer_currency`.
developer_proceeds                      float               Pole źródłowe `developer_proceeds`.
proceeds_currency                       string              Pole źródłowe `proceeds_currency`.
preserved_pricing                       string              Pole źródłowe `preserved_pricing`.
proceeds_reason                         string              Pole źródłowe `proceeds_reason`.
client                                  string              Pole źródłowe `client`.
device                                  string              Pole źródłowe `device`.
country                                 string              Pole źródłowe `country`.
subscriber_id                           integer pk          Pole źródłowe `subscriber_id`.
subscriber_id_reset                     string              Pole źródłowe `subscriber_id_reset`.
refund                                  string pk           Pole źródłowe `refund`.
purchase_date                           date pk             Pole źródłowe `purchase_date`.
units                                   integer             Pole źródłowe `units`.
```

## Usunięcia i historia

Wiersze są scalane według klucza źródłowego. Gdy źródło może potwierdzić usunięcie wiersza, Supernova zachowuje go i ustawia `_deleted`, dzięki czemu zapytania mogą zdecydować, czy uwzględniać historię. Aby pobierać bieżący stan, filtruj zapytania przez `where not _deleted`.
