POST /api/v1/client-api/metrics/analytics/

Analitik verilerini getir

Grafiklerde kullanılmak üzere kullanıcı davranışı ve performans metrikleri hakkında içgörüler için analitik verilerini getirir.

Bu endpoint'ten elde edilen gelir olay tabanlıdır: her değer işlem tarihine — satın alma, yenileme veya iadenin gerçekleştiği güne — atfedilir. Geliri her kullanıcının kurulum tarihine göre atfetmek için (örneğin Ads Manager ile mutabakat sağlamak amacıyla) kohort endpoint'ini kullanın (POST /api/v1/client-api/metrics/cohort/).

Hız sınırı: saniyede 2 istek.

Request body

chart_idstringrequired

Hangi grafiğe ihtiyacınız olduğunu belirtin. Her istekte yalnızca bir grafik türü belirtebilirsiniz.

One of: "revenue", "mrr", "arr", "arppu", "subscriptions_active", "subscriptions_new", "subscriptions_renewal_cancelled", "subscriptions_expired", "trials_active", "trials_new", "trials_renewal_cancelled", "trials_expired", "grace_period", "billing_issue", "refund_events", "refund_money", "non_subscriptions", "arpu", "installs"

filtersobjectrequired
datearray of stringrequired

Grafik verilerini almak istediğiniz tarihi veya zaman dilimini girin

compare_datearray of string

Karşılaştırma tarihini veya zaman dilimini girin

storearray of string

Satın almanın gerçekleştiği uygulama mağazasına göre filtreleyin

countryarray of string

Satın almanın gerçekleştiği ülkenin 2 harfli ülke koduna göre filtreleyin

store_product_idarray of string

Mağaza nitelikli ürün kimliği; <store>:<product_id> biçiminde belirtilir — örneğin app_store:premium_monthly veya temel plana sahip bir Google aboneliği için play_store:premium_sub:monthly-base-plan. Mağaza öneki içermeyen bir ürün kimliği reddedilir.

durationarray of string

Abonelik süresini belirtin

attribution_sourcearray of string

Attribution için kaynak entegrasyon

attribution_statusarray of string

Attribution'ın organik mi yoksa organik olmayan mı olduğunu gösterir

attribution_channelarray of string

İşleme yol açan pazarlama kanalı

attribution_campaignarray of string

İşlemi getiren pazarlama kampanyası

attribution_adgrouparray of string

İşlemi getiren attribution reklam grubu

attribution_adsetarray of string

İşleme yol açan attribution reklam seti

attribution_creativearray of string

Etkinliği ölçmek amacıyla takip edilen bir reklam veya kampanyadaki belirli görsel ya da metin öğeleri

offer_categoryarray of string

Veri almak istediğiniz teklif kategorilerini belirtin

offer_typearray of string

Veri almak istediğiniz teklif türlerini belirtin

offer_idarray of string

Veri almak istediğiniz belirli teklifleri belirtin

period_unitstring

Analitik verilerini toplamak için zaman aralığını belirtin

One of: "day", "week", "month", "quarter", "year"

date_typestring

Kullanıcının katılım tarihi olarak hangi tarihin kullanılacağını belirtin

One of: "purchase_date", "profile_install_date"

segmentationstring

Segmentasyonun temelini belirler

formatstring

Dışa aktarma dosya biçimini belirtin

One of: "json", "csv"

Responses

Analitik verileri başarıyla getirildi

Schema

İstenen grafik türü için analitik verilerini içeren yanıt

dataobject

Farklı metrik türlerini içeren nesne (revenue, proceeds, net_revenue, vb.)

Example
{
  "data": {
    "revenue": {
      "data": [],
      "value": 0,
      "value_from": null,
      "value_to": null,
      "compare_value_from": null,
      "compare_value_to": null,
      "title": "revenue",
      "type": "multi",
      "default_aggregation": "sum",
      "description": "<div>Total money received from both subscriptions and one-time purchases. Does not include\nrevenue from subscriptions and purchases that were refunded afterward. Calculated before the store's fee.<br />\nFor example, there were 5 monthly $10 subs, 1 yearly $100 sub and 10 one-time $50 purchases today,<br />\nrevenue = 5*$10 + 1*$100 + 10*$50 = $650</div>",
      "metric_name": "Revenue",
      "is_json": true,
      "unit": "USD",
      "recommended_period": null
    },
    "proceeds": {
      "data": [],
      "value": 0,
      "value_from": null,
      "value_to": null,
      "compare_value_from": null,
      "compare_value_to": null,
      "title": "revenue",
      "type": "multi",
      "default_aggregation": "sum",
      "description": "<div>Total money received from both subscriptions and one-time purchases. Does not include\nrevenue from subscriptions and purchases that were refunded afterward. Calculated before the store's fee.<br />\nFor example, there were 5 monthly $10 subs, 1 yearly $100 sub and 10 one-time $50 purchases today,<br />\nrevenue = 5*$10 + 1*$100 + 10*$50 = $650</div>",
      "metric_name": "Revenue",
      "is_json": true,
      "unit": "USD",
      "recommended_period": null
    },
    "net_revenue": {
      "data": [],
      "value": 0,
      "value_from": null,
      "value_to": null,
      "compare_value_from": null,
      "compare_value_to": null,
      "title": "revenue",
      "type": "multi",
      "default_aggregation": "sum",
      "description": "<div>Total money received from both subscriptions and one-time purchases. Does not include\nrevenue from subscriptions and purchases that were refunded afterward. Calculated before the store's fee.<br />\nFor example, there were 5 monthly $10 subs, 1 yearly $100 sub and 10 one-time $50 purchases today,<br />\nrevenue = 5*$10 + 1*$100 + 10*$50 = $650</div>",
      "metric_name": "Revenue",
      "is_json": true,
      "unit": "USD",
      "recommended_period": null
    }
  }
}

Hatalı İstek

Schema
errorsarray of object
sourcestring
errorsarray of string
error_codestring
status_codeinteger

Yetkisiz

Schema
errorsarray of object
sourcestring
errorsarray of string
error_codestring
status_codeinteger

Hız sınırı aşıldı. API anahtarı başına saniyede maksimum 2 istek.