ドキュメントメニュー

Apple App Store#

発行者 ID、キー ID、秘密鍵、ベンダー番号を使って Apple App Store を接続します。このソースは titan.apple_app_store に 1 個の固定テーブルを書き込みます。

sql
select
  event_date,
  app_name,
  app_apple_id
from titan.apple_app_store.sales_subscriber_detailed
limit 10

Apple App Storeを接続する#

  1. アプリを開き、アプリを接続を選択してから、Apple App Storeを選択します。

  2. 発行者 ID、キー ID、秘密鍵、ベンダー番号を入力します。

  3. テーブルを確認してからソースを保存します。

  4. 初回の実行が完了するまで同期履歴を確認します。

認証情報はシークレットとして保存されます。レイクの列になったり、クエリ結果に表示されたりすることはありません。

同期の動作#

Supernova は詳細なサブスクリプション売上レポートをダウンロードし、レポートの各フィールドを型付きの列として保持します。

新しいソースは接続時に同期し、その後はスケジュールに従います。デフォルトの繰り返し間隔は 4 時間です。実行が中断しても、完了した進捗を保持して安全に再試行します。

すべてのレイクのテーブルにはシステム列 _synced_at_deleted もあります。以下の列リファレンスにはソースの列のみを記載しています。

テーブルリファレンス#

sales_subscriber_detailed#

titan.apple_app_store.sales_subscriber_detailed には 26 個のソース列があります。

apple_app_store.sales_subscriber_detailed26列
event_datedatepk

ソースのフィールド event_date

app_namestring

ソースのフィールド app_name

app_apple_idinteger

ソースのフィールド app_apple_id

subscription_namestringpk

ソースのフィールド subscription_name

subscription_apple_idinteger

ソースのフィールド subscription_apple_id

subscription_group_idinteger

ソースのフィールド subscription_group_id

standard_subscription_durationstring

ソースのフィールド standard_subscription_duration

subscription_offer_namestring

ソースのフィールド subscription_offer_name

promotional_offer_idstring

ソースのフィールド promotional_offer_id

subscription_offer_typestring

ソースのフィールド subscription_offer_type

subscription_offer_durationstring

ソースのフィールド subscription_offer_duration

marketing_opt_in_durationstring

ソースのフィールド marketing_opt_in_duration

customer_pricefloat

ソースのフィールド customer_price

customer_currencystring

ソースのフィールド customer_currency

developer_proceedsfloat

ソースのフィールド developer_proceeds

proceeds_currencystring

ソースのフィールド proceeds_currency

preserved_pricingstring

ソースのフィールド preserved_pricing

proceeds_reasonstring

ソースのフィールド proceeds_reason

clientstring

ソースのフィールド client

devicestring

ソースのフィールド device

countrystring

ソースのフィールド country

subscriber_idintegerpk

ソースのフィールド subscriber_id

subscriber_id_resetstring

ソースのフィールド subscriber_id_reset

refundstringpk

ソースのフィールド refund

purchase_datedatepk

ソースのフィールド purchase_date

unitsinteger

ソースのフィールド units

削除と履歴#

行はソースのキーでマージされます。ソース側で行の削除を確認できた場合、Supernova は行を残して _deleted を設定します。クエリで履歴を含めるかどうかを選べます。現在の状態だけを取得するには where not _deleted で絞り込んでください。