Search...
Menu

Ad & Creative Mapping API

1.Interface Instructions

  • Queries are only supported for ads created using the creative library and already have cost
  • Channels that do not currently support data query: Unity, Applovin, Vungle, Mintegral, ironSource
  • Update frequency: 1 hour
  • Limit the number of parallel queries to 5


2.Interface Path

POST https://xmp-open.nativex.com/v1/media/material_mapping/list


3.Request Parameters

Common request parameters: please refer to Open API Protocol


ParameterTypeRequiredInstruction
start_datestringYCreate start time, YYYY-MM-DD, The longest span does not exceed 30 days
end_datestringYCreate end time, YYYY-MM-DD
mediaarrayNView Media Enumeration Value
pageintNcurrent page, the default is 1
page_sizeintNpage size, the default is 200, 1~1000 is available


4.Request Example

{
  "client_id": "xxx",
  "timestamp": 1608776690,
  "sign": "05d481dc241a7a1daa5b2a7fa2b51dc5",
  "start_date":"2021-12-01", #required
  "end_date":"2021-12-27",  #required
  "media":["google"]
}


5.Return Parameters


First-level ParameterSecond-level ParameterTypeInstruction
codeinterror code
msgstringmessage
dataarrayreturned interface content
data.listarrayreturned interface content
mediastringmedia
account_idstringaccount_id
account_namestringaccount_name
campaign_idstringcampaign_id
campaign_namestringcampaign_name
adset_idstringadset_id
adset_namestringadset_name
ad_idstringad_id
ad_namestringad_name
material_namestringcreative name
md5_file_idstringcreative md5
user_material_idintcreative local_id
material_typestringcreative type(image,video,other)
material_widthintcreative width
material_heightintcreative height
material_shapestringcreative shape
designer_namearrayname of designer
customer_namearrayname of creative people
data.pageintpage
pageintcurrent page
page_sizeintpage size
next_pageint1 for there is a next page, 0 for there isn’t a next page


6.Return Example

{
    "code": 0,
    "msg": "success",
    "data": {
        "data": [
            {
                "media": "google",
                "account_id": "1710773817",
                "account_name": "兄弟一起冲-001",
                "campaign_id": "17179370156",
                "campaign_name": "test-1201-2",
                "adset_id": "1720320214546445",
                "adset_name": "test-1201-2_16043",
                "ad_id": "1720353067540507",
                "ad_name": "我们保证:你绝不会感到无聊!你来试试!",
                "material_name": "客户素材-紫",
                "md5_file_id": "05ee06e1846ce66e6de052dfd8ecb560",
                "user_material_id": 442143,
                "material_type": "video",
                "material_width": 1080,
                "material_height": 1920,
                "material_shape": "竖版",
                "designer_name": [],
                "customer_name": []
            }
        ],
        "page": {
            "page": 1,
            "page_size": 100,
            "next_page": 1 
        }
    }
}


Previous
Creative Report API
Next
User Management API
Last modified: 2024-12-12Powered by