Menu

Creative Report API

1. Interface Instruction

  • Queryable material data created by XMP library + media library
  • Update frequency: 1-2 hours.
  • The QPM limit is 10, if you request more than 10 times in one minute, it will return "request too often", you need to wait for the next minute to request again.


2.Interface Path

POST https://xmp-open.mobvista.com/v2/media/material_report/list


3.Request Parameters

Common request parameters: please refer to Open API Protocol

ParameterTypeRequiredInstruction
start_datestringYYYYY-MM-DD
end_datestringYYYYY-MM-DD, the longest span does not exceed 30 days
dimension[]stringNFixed:
material_name(creative name)
md5_file_id(creative md5)

Can be multiple selected additionally:
date(date)
module(media channel)
account_id(ad account id)
account_name(ad account name)
campaign_id(campaign id)
campaign_name(campaign name)
adset_id(ad set id)
adset_name(ad set name)
ad_id(ad id)
ad_name(ad name)
product_id(product id)

Can be multiple selected additionally:
geo(location)
metrics[]stringYThe metrics you need to pull from the Query Available Metrics API.
md5_file_id[]stringNmaterial md5, up to 1000 files
modulestringNview Media Enumeration Value
account_id[]stringNad account id
geo[]stringNlocation, only valid when queried by location dimension
eg. CN
product_id[]intNproduct id
third_party_timezonestringNThe time zone of the third-party data metrics, see Time Zone Enumeration Values. Note: This field must be passed when pulling third-party data metrics via the API when third-party data metrics time zone switching has been enabled in the XMP backend.
cost_currencystringYcurrency, options: cny、usd、eur
pageintNcurrent page number, default is 1. If the returned data.list is not empty, please add the page number + 1 to get the next page content until data.list is empty.
page_sizeintNpage size, the default is 200, 1~1000 is available


4.Request Example

let dimension=["md5_file_id","material_name"]
request = {
    url:uri,
    method:'POST',
    header:{'Content-Type':'application/json'},
    body:{
        mode:'raw',
        raw:JSON.stringify({
            client_id:clientId,
            timestamp:timestamp,
            sign:sign,
            start_date:startDate,
            end_date:endDate,
            dimension:dimension,
            product_id:[],
            module:"facebook",
            geo:["US","KR"],
            metrics:["impression","ecpm","currency_cost","active_register_rate","video_play_p100_rate"],
            page:page,
            page_size:page_size,
            cost_currency:currency,
            third_party_timezone:"+8"
        }),
        options: {
            raw: {
                language: 'json'
            }
        }
    }
}


5.Return Parameters

ParameterTypeInstruction
list[]objectlist of returned data
pageobjectpage
page.pageintcurrent page
page.page_sizeintpage size


(1)dimensions / attributes in the list

ParameterTypeInstruction
material_namestringmaterial name, if the md5 of a clip corresponds to more than one clip name, the clip with the latest creation time will be returned
md5_file_idstringmaterial md5
datestringdate
modulestringchannel
geostringgeo
account_idstringaccount id
account_namestringaccount name
campaign_idstringcampaign id
campaign_namestringcampaign name
adset_idstringadset id
adset_namestringadset name
ad_idstringad id
ad_namestringad name
product_idstringproduct id


6.Return Example

{
    "code": 0,
    "msg": "success",
    "data": {
        "list": [
            {
                "active_register_rate": 0,
                "currency_cost": 2568.17,
                "ecpm": 8.91,
                "impression": 288202,
                "video_play_p100_rate": 0,
                "xmp_material_id": "14723131"
            }
        ],
        "page": {
            "page": 1,
            "page_size": 1,
            "next_page": 1
        }
    }
}


Previous
Ad Report API
Next
Creative Library API
Last modified: 2024-04-28Powered by