Search...
Menu

Ad Report API

1.Interface Instructions

  • Each page returns 2000 pieces of data by default
  • When requesting, the current page data is obtained through the auto-increment page parameter. When no data is returned, it means that all the data has been pulled.
  • Data update frequency: every 15-30 minutes
  • The time zones of the data returned by each media channel are as follows


ChannelTime Zone
FacebookAd Account Time Zone
GoogleAd Account Time Zone
TikTokAd Account Time Zone
KwaiAd Account Time Zone
Huawei(Global)Ad Account Time Zone
AppleUTC+0
MintegralUTC+0
AppLovinUTC+0
UnityUTC+0
ironSourceUTC+0
VungleUTC+0


2.Interface Path

POST https://xmp-open.nativex.com/v1/media/account/report


3.Request Parameters


ParametersTypeRequiredInstructions
client_idstringYPlease contact xmp account manager to know
timestampintYunix timestamp when requested
signstringYmd5(client_secret+timestamp)
start_datestringYYYYY-MM-DD
end_datestringYYYYY-MM-DD
mediastringYView Media Enumeration Value
dimensionarrayNReturns the ad account dimension data by default, example: [‘date’], optional values:
date (date)
geo (region)
campaign_id (campaign id )
campaign (campaign name)
adset_id (ad set id )
adset (ad set name)
ad_id (ad id, returns asset level for google)
ad (ad name, returns asset level for google)
product_name ( xmp product name )
app_platform (app platform)
store_package_id (store id )
Note: When querying xmp product dimension data, you need to bind and associate the ad set with the xmp product in the background
currencystringNReturns the currency of the advertising account on the media side if not passed, optional: CNY, USD, EUR (compatible with all lowercase)
pageintYpage


4.Request Example

{
  "client_id": "dev",
  "timestamp": 1608776690,
  "sign": "05d481dc241a7a1daa5b2a7fa2b51dc5",
  "start_date": "2021-01-01",
  "end_date": "2021-01-15",
  "dimension": [//非必填
    "date",
    "geo"
  ],
  "currency": "USD",//非必填
  "page": 1
}


5.Return Parameters

  • The result returned by the interface is a string in json format
  • The code, msg, data fields will be returned regardless of success or failure
  • If the value has no data, or is not divisible (when the denominator is 0, the numerator or the denominator does not exist), then return null


ParameterTypeInstruction
codeintsee error codes
msgstringmessage
dataarrayreturned interface content
data.listarrayreturned data list
data.pageintpage


data.list Field


ParameterTypeInstruction
datestringdate
mediastringmedia
account_idstringaccount_id
geostringregion
campaign_idstringcampaign id
campaignstringcampaign name
adset_idstringad set id
adsetstringad set name
ad_idstringad id
adstringad name
product_namestringxmp product name
app_platformstringapp platform
store_package_idstringstore id
costfloatcost
currencystringReturn according to the incoming currency,
and return the currency of the ad account on the media side if it is not transmitted
impressionsintimpressions
clicksintclicks
conversionsintconversions
activationsintactivations
purchasesintpurchase
ctrstringclick through rate
cpcstringcost per click
ecpmfloateffective cost per mille
cvrstringconversion rate
cost_per_conversionsfloatcost per conversion
cost_per_purchasefloatcost per purchase
purchase_ratestringpurchase rate
cost_per_activationfloatcost per activation
activation_ratestringactivation rate


Field Formula


ParameterFormula
ctrclicks/impressions*100%
cpccost/click
ecpmcost/impression*1000
cvrconversions/clicks*100%
cost_per_conversionscost/conversions
cost_per_purchasecost/purchases
purchase_ratepurchases/activation*100%
cost_per_activationcost/activations
activation_rateactivation/clicks*100%


Previous
Open API Protocol
Next
Creative Library API
Last modified: 2024-09-13Powered by