共用方式為


Bidders - Creative search service

This read-only service allows you to search for creatives based on specific criteria such as audit status, ID, size, etc. To add creatives to the system, see the Creative Service.

Warning

Since this service searches all creatives on Xandr's platform (not just your own), a search that is too broad might cause an error. To ensure that you get results, please narrow your search as much as possible.

Implementation

REST API

HTTP method End point Description
POST [https://api..com/creative-search](https://api..com/creative-search) (creative_search JSON) To search for creatives.
POST [https://api..com/creative-search?sort=FIELD_NAME.ASC_OR_DESC](https://api..com/creative-search?sort=FIELD_NAME.ASC_OR_DESC) (creative_search JSON) Search for creatives and sort results.
Note: The fields used to search for creatives are not exactly the same as the fields returned. This is because the returned objects are drawn from the Creative Service and formatted accordingly. This service will only search active creatives.

JSON fields

Field Type Sort? Use
ad_profile_id int No Must be used with brand_status. Search for a creative by the ID of its ad profile.
audit_status array of enums Yes Search for creatives by their audit status. Possible values: "no_audit", "pending", "rejected", "audited".
brand_ids array of integers No Search for creatives by the IDs of their brands.
brand_status array of enums No Must be used with ad_profile_id. Search for creatives by their brand status. For example, if this is set to "trusted", all trusted brands within the ad profiles specified in ad_profile_id will be returned in the response. Possible values: "trusted", "case-by-case", "banned". The brand status field is only returned in the response when you use this filter.
click_url string Yes Not a filter. Sort results in ascending/descending alphabetical click URL order.
creative_ids array of integers Yes, use "id" in query string. Search for creatives by their IDs.
description string No Search for creatives by terms in their descriptions.
formats array of enums Yes, use "format" in query string. Search for creatives by their formats. Possible values: "url-html", "url-js", "flash", "image", "raw-js", "raw-html", "iframe-html", "url-vast", "text".
landing_page_url string Yes Not a filter. Sort results in ascending/descending alphabetical landing page URL order.
media_content string No Search for a creative by the data in its original_content field (see Creative Service).
media_subtype array of enums No Deprecated, use media_subtype_ids instead. Search for creatives by their media subtypes. Possible values: "Banner", "Popup", "Popunder".
media_subtype_ids array of integers Yes, use "media_subtype_id" in query string. Search for creatives by their media subtype via ID. You can use the Media Subtype Service to look up the desired IDs.
media_url string Yes Search for a creative by its URL.
member_action enum No Must be used with member_ids. If this is set to "exclude", you exclude the members specified in member_ids from the search. Otherwise, the specified IDs are included.
member_ids array of integers Yes, use "member_id" in query string. Must be used with member_action. Search for creatives by the IDs of their members.
modified_since timestamp No Search for creatives that were modified since this date. Format: "YYYY-MM-DD HH:MM:SS".
review_status array of enums No Search for creatives based on their review status (from the associated ad profiles). Possible values: "reviewed", "unreviewed". The review status field is only returned in the response when you use this filter.
size_in_bytes string Yes Not a filter. Sort results in ascending/descending size order.
sizes array of strings Yes, use "width" and "height" in query string. Search for creatives by their sizes, for example, "728x90".
template_id int Yes Search for creatives by their creative template IDs.
uploaded_since timestamp No Search for creatives that were uploaded since this date. Format: "YYYY-MM-DD HH:MM:SS".

Examples

Search for all banner creatives that have passed Xandr's audit

$ cat creative_search
{
   "creative_search": {
      "audit_status": [
         "audited"
      ],
      "media_subtype": [
         "banner"
      ]
   }
}
$ curl -b cookies -c cookies -X POST -d @creative_search 'https://api.adnxs.com/creative-search'
{
   "response": {
      "status": "OK",
      "creatives": [
         {
            "id": "48652",
            "width": "300",
            "height": "250",
            "media_url": "https:\/\/cdn.adnxs.com\/p\/05\/d1\/cd\/fe\/05d1cxxxxxx221db2ba8b.png",
            "content": null,
            "format": "image",
            "member_id": "408",
            "brand_id": "1",
            "click_url": "https:\/\/www.sample.com",
            "audit_status": "audited",
            "size_in_bytes": "14545",
            "landing_page_url": null,
            "last_activity": "2010-07-23 16:40:41",
            "created_on": "2010-04-30 07:20:23",
            "media_subtypes": [
               "banner"
            ],
            "pop_values": null
            },
         {
            "id": "73163",
            "width": "300",
            "height": "250",
            "media_url": null,
            "content": "<iframe src=\"https:\/\/xxxx.net\/udm\/img.fetch?sid=2773;tid=2;ev=1;dt=1;\" width=300
             height=250 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No><\/iframe>
             <noscript><a href=\"https:\/\/fletcher.net\/udm\/clk.cpx?sid=2773;ev=2;tid=2;dt=3\"><img src=\
             "https:\/\/sample.net\/udm\/img.fetch?sid=2773;ev=1;tid=2;dt=3\" width=300 height=250 border=0>
             <\/a><\/noscript>",
            "format": "iframe-html",
            "member_id": "333",
            "brand_id": "17",
            "click_url": "",
            "audit_status": "audited",
            "size_in_bytes": "0",
            "landing_page_url": "https:\/\/www.appleblueberry.com",
            "last_activity": "2010-09-07 23:33:45",
            "created_on": "2010-08-25 16:31:43",
            "media_subtypes": [
               "banner"
            ],
            "pop_values": null
         },
         ...
      ]
   }
}

Search for all flash creatives that have been uploaded since 2012-01-01 00:00:00

$ cat creative_search
{
   "creative_search": {
      "formats": [
         "flash"
      ],
      "uploaded_since": "2012-01-01 00:00:00"
   }
}
$ curl -b cookies -c cookies -X POST -d @creative_search 'https://api.adnxs.com/creative-search'
{
   "response": {
      "status": "OK",
      "creatives": [
         {
            "id": "1207858",
            "width": "160",
            "height": "600",
            "media_url": "https:\/\/cdn.adnxs.com\/p\/c7\/6d\/5b\/bd\/c76d5bbdxxxxx8b9e1507c07cbe61.swf",
            "content": null,
            "format": "flash",
            "member_id": "326",
            "brand_id": "4467",
            "click_url": "https:\/\/clickclick.com\/witness\/p=28xxx96\/c=6sxd3",
            "audit_status": "audited",
            "size_in_bytes": "40077",
            "landing_page_url": "https:\/\/www.destination.com",
            "last_activity": "2012-01-01 15:56:59",
            "created_on": "2012-01-01 02:34:14",
            "media_subtypes": [
               "banner"
            ],
            "pop_values": null
         },
         {
            "id": "1207859",
            "width": "160",
            "height": "600",
            "media_url": "https:\/\/cdn.adnxs.com\/p\/3b\/d6\/f6\/1d\/3bd6f61dkdh4473djfb579430ed.swf",
            "content": null,
            "format": "flash",
            "member_id": "326",
            "brand_id": "4467",
            "click_url": "https:\/\/clickclick.com\/witness\/p=2ddssd6\/c=3423",
            "audit_status": "audited",
            "size_in_bytes": "32094",
            "landing_page_url": "https:\/\/www.destination.com",
            "last_activity": "2012-01-01 15:57:36",
            "created_on": "2012-01-01 02:35:52",
            "media_subtypes": [
               "banner"
            ],
            "pop_values": null
         },
         ...
      ]
   }
}

Search for all 728x90 and 300x250 image creatives that belong to member 333

$ cat creative_search
{
   "creative_search": {
      "sizes": [
         "728x90",
         "300x250"
      ],
      "formats": [
         "image"
      ],
      "member_ids": [
         333
      ]
   }
}
$ curl -b cookies -c cookies -X POST -d @creative_search 'https://api.adnxs.com/creative-search'
{
   "response": {
      "status": "OK",
      "creatives": [
         {
            "id": "61967",
            "width": "300",
            "height": "250",
            "media_url": "https://cdn.adnxs.com/p/c8/fb/12/56/c8fb125634xxxx2e67a783d91cf.png",
            "content": null,
            "format": "image",
            "member_id": "333",
            "brand_id": "1",
            "click_url": "https://www.clickplace.com/",
            "audit_status": "no_audit",
            "size_in_bytes": "29433",
            "landing_page_url": null,
            "last_activity": "2011-05-13 02:34:47",
            "created_on": "2010-07-28 20:44:22",
            "media_subtypes": [
               "banner"
            ],
            "pop_values": null
         },
         {
            "id": "291801",
            "width": "728",
            "height": "90",
            "media_url": "https://cdn.adnxs.com/p/54/62/87/d1/546287aasxxx8e6431960ad2b1fb.png",
            "content": null,
            "format": "image",
            "member_id": "333",
            "brand_id": "2450",
            "click_url": "https://thatplace.com/careers",
            "audit_status": "audited",
            "size_in_bytes": "24091",
            "landing_page_url": "https://thatplace.com/careers",
            "last_activity": "2011-05-13 03:30:00",
            "created_on": "2011-04-05 18:28:29",
            "media_subtypes": [
               "banner"
            ],
            "pop_values": null
         },
         ...
      ]
   }
   }