次の方法で共有


Digital Platform API - インベントリ属性サービス

読み取り専用インベントリ属性サービスを使用して、Xandr システムに登録されているインベントリ属性を確認します。 これらの ID は、入札要求の inventory_audits オブジェクトで提供されます。

REST API

HTTP メソッド エンドポイント 説明
GET https://api.appnexus.com/inventory-attribute Xandr システムのすべてのインベントリ属性を表示します。
GET https://api.appnexus.com/inventory-attribute?id=INVENTORY_ATTRIBUTE_ID 特定のインベントリ属性に関する情報を表示するには。

JSON フィールド

フィールド 種類 説明
id int インベントリ属性の ID。
name string (50) インベントリ属性名。
last_activity timestamp インベントリ属性が最後に変更されたとき。

すべてのインベントリ属性を表示する (以下の出力は変更される場合があります)

curl -b cookies -c cookies "https://api.adnxs.com/inventory-attribute"
{
    "response": {
        "count": 8,
        "inventory-attributes": [
            {
                "id": 2,
                "last_activity": "2010-10-19 19:26:08",
                "name": "Political"
            },
            {
                "id": 4,
                "last_activity": "2010-10-19 19:26:08",
                "name": "Social media"
            },
            {
                "id": 6,
                "last_activity": "2010-10-19 19:26:08",
                "name": "Photo & video sharing"
            },
            {
                "id": 8,
                "last_activity": "2010-10-19 19:26:08",
                "name": "Forums (moderated)"
            },
            {
                "id": 10,
                "last_activity": "2010-10-19 19:26:08",
                "name": "Forums (unmoderated)"
            },
            {
                "id": 12,
                "last_activity": "2010-10-19 19:26:08",
                "name": "Incentivized clicks"
            },
            {
                "id": 14,
                "last_activity": "2010-10-19 19:26:08",
                "name": "Non-english languages"
            },
            {
                "id": 17,
                "last_activity": "2010-10-19 19:26:08",
                "name": "Toolbars, plugins, or extensions"
            }
        ],
        "num_elements": null,
        "start_element": null,
        "status": "OK"
    }
}