サブスクリプションコールバック コールバックを使用することで、Adjustがイベントを記録後、ユーザーレベルのデータを直接かつリアルタイムにサーバーに送信できます。
Adjustは、次のサブスクリプションイベントを自動的に記録します。
サブスクリプションの有効化 サブスクリプションの初回コンバージョン サブスクリプションの請求リトライ開始 サブスクリプションの更新 サブスクリプション解約 サブスクリプションの請求リトライ更新 サブスクリプションの再有効化 コールバックに {subscription_event_subtype}
プレースホルダーを含めると、各サブスクリプションイベントのサブタイプを受信することができます。これらのサブタイプを使用することで、ユーザーデータをより深く理解できます。詳細はサブスクリプションデータの管理 をご覧ください。
{subscription_event_type}
グループ化され、サブタイプに由来 activation
first_conversion
renewal
{subscription_event_subtype}
詳細は、サブスクリプションイベントのサブタイプ値の表をご覧ください initial_subscription
failed_trial
renewed_subscription
{subscription_purchased_at}
有効な購入のUnixタイムスタンプ 1571608922
{subscription_expiration_time}
有効なサブスクリプションの有効期限を示すUnixタイムスタンプ。過去のデータでも未来のデータも該当します。 1571608922
{subscription_cancelled_at}
サブスクリプションが無効となる時点を示すUnixタイムスタンプ。expiration_timeより後のタイムスタンプとなることはありません。 サブスクリプションのトランザクションが失敗し解決できない場合は、失敗したトランザクションのexpiration_timeを返します。expiration_timeプレースホルダーには値が返されません。 1571608922
{subscription_transaction_id}
有効なトランザクションの値。トランザクションが失敗した場合、値は返されません。 課金に問題がある場合は、現在のトランザクションIDが返されます。 230000687036600
{subscription_original_transaction_id}
プロダクト サブスクリプション チェーンの最初のトランザクションID 230000687036600
{subscription_expired_transaction_id}
前回の有効なトランザクションID。最初のトランザクションの場合、空の値が返されます。失敗したトランザクションの場合、前回の有効なトランザクションIDが返されます。 230000687036600
{subscription_environment}
サブスクリプションの購入が発生した環境 sandbox
production
{subscription_product_id}
アプリ内のサブスクリプション プロダクト タイプ com.product.id
{subscription_sales_region}
Apple ストアアカウントの登録場所の地域コード。Googleの地域コードはデバイスの物理的な位置に基づいています。 us
{subscription_store}
サブスクリプション購入が発生したストア appleappstore
googleplaystore
プレースホルダーのデータが使用できない場合は、コールバックから削除されます。
コールバックの例 プレースホルダーを含むコールバックURLエンコード前(使用不可)
https://mynetworkserver.com/mobile_attribution?gps_adid={gps_adid}&idfa={idfa}&tracker_name={link_name}&app_name={app_name}&activity_kind={activity_kind}&created_at={created_at}&reattributed_at={reattributed_at}&reattributed_at_hour={reattributed_at_hour}&subscription_event={subscription_event_type}&subscription_event_subtype={subscription_event_subtype}&subscription_product_id={subscription_product_id}&subscription_sales_region={subscription_sales_region}&subscription_transaction_id={subscription_transaction_id}&subscription_original_transaction_id={subscription_original_transaction_id}&subscription_store={subscription_store}&subscription_purchased_at={subscription_purchased_at}&subscription_expiration_time={subscription_expiration_time}&subscription_environment={subscription_environment}
Adjustは、全てのコールバックURLに以下のプレースホルダーを含めることを推奨します。以下のプレースホルダーを使うことにより、アプリ、リンク、データポイント、およびデバイスの特定に使用できる基本的な端末情報を取得することができます。
{gps_adid}
Google Play Store 広告ID(Androidのみ) 38400000-8cf0-11bd-b23e-10b96e40000d {idfa}
広告ID(iOSのみ) 8C6CBCOD-5F43-4765-A6E6-84DFF3D24707 {idfv}
ベンダーID(iOSのみ) CCB300A0-DE1B-4D48-BC7E-599E453B8DD4 {adid}
AdjustデバイスID 18546f6171f67e29d1cb983322ad1329 {tracker}
Adjustリンクトークン abc123 {tracker_name}
Campaign Labで定義された現在のリンク名 Network1%3A%3AChristmas%3A%3AReindeers%3A%3A320x70_en {app_name}
アプリ名 MyApp {activity_kind}
インプレッション、クリック、インストール、拒否されたインストール、拒否されたリアトリビューション、セッション、リアトリビューション、アンインストール、再インストール、リアトリビューション再インストール、更新されたアトリビューション、アプリ内イベント、または広告費用(cost_updated
)のデータポイントを決定できます。 rejected_reattribution {created_at}
計測対象のイベント発生時のタイムスタンプ(Unix Time) 1404214665