Sdf: download
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يسترد الكيانات بتنسيق SDF.
تجربة ذلك الآن
الطلب
طلب HTTP
POST https://www.googleapis.com/doubleclickbidmanager/v1.1/sdf/download
التفويض
يتطلب هذا الطلب تفويضًا بالنطاق التالي:
النطاق |
https://www.googleapis.com/auth/doubleclickbidmanager |
لمزيد من المعلومات، يُرجى الاطّلاع على صفحة المصادقة والتفويض.
نص الطلب
في نص الطلب، وفِّر البيانات بالبنية التالية:
{
"fileTypes": [
string
],
"filterType": string,
"filterIds": [
long
],
"version": string
}
اسم الموقع |
القيمة |
الوصف |
ملاحظات |
fileTypes[] |
list |
أنواع الملفات التي سيتم عرضها. وإذا تم طلب INVENTORY_SOURCE، قد لا يتم طلب أي أنواع ملفات أخرى.
القيم المقبولة هي: - "
AD " - "
AD_GROUP " - "
CAMPAIGN " - "
INSERTION_ORDER " - "
INVENTORY_SOURCE " - "
LINE_ITEM " |
|
filterType |
string |
نوع الفلتر المستخدَم لفلترة الكيانات من أجل استرجاعها لا يمكن استخدام PARTNER_ID وINVENTORY_SOURCE_ID إلا عند تنزيل مصادر المستودع.
في ما يلي القيم المقبولة:
- "
ADVERTISER_ID "
- "
CAMPAIGN_ID "
- "
INSERTION_ORDER_ID "
- "
INVENTORY_SOURCE_ID "
- "
LINE_ITEM_ID "
- "
PARTNER_ID "
|
|
filterIds[] |
list |
أرقام تعريف نوع الفلتر المحدّد. يُستخدَم هذا الإجراء لفلترة الكيانات من أجل استرجاعها. يجب تحديد معرّف واحد على الأقل. يُسمح باستخدام رقم تعريف واحد فقط لنوع الفلتر ADVERTISER_ID . بالنسبة إلى نوعَي الفلاتر INSERTION_ORDER_ID أو LINE_ITEM_ID ، يجب أن تكون جميع أرقام التعريف واردة من المعلِن نفسه. |
|
version |
string |
إصدار SDF (أسماء الأعمدة والأنواع والترتيب) الذي سيتم عرض العناصر به. يتم ضبط الإعداد التلقائي على 5.3 . |
|
الرد
في حال نجاح هذه الطريقة، سيتم عرض نص استجابة بالبنية التالية:
{
"campaigns": string,
"insertionOrders": string,
"lineItems": string,
"adGroups": string,
"ads": string,
"inventorySources": string
}
اسم الموقع |
القيمة |
الوصف |
ملاحظات |
insertionOrders |
string |
تم استرداد طلبات الإدراج بتنسيق SDF. |
|
lineItems |
string |
تم استرجاع العناصر بتنسيق SDF. |
|
adGroups |
string |
تم استرداد المجموعات الإعلانية بتنسيق SDF. |
|
ads |
string |
تم استرداد الإعلانات بتنسيق SDF. |
|
campaigns |
string |
تم استرداد الحملات بتنسيق SDF. |
|
inventorySources |
string |
|
|
جرّب الآن
يمكنك استخدام "مستكشف واجهات برمجة التطبيقات" أدناه لطلب هذه الطريقة على البيانات المباشرة والاطّلاع على الردّ.
ويمكنك بدلاً من ذلك تجربة
مستقل
Explorer (المستكشف):
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThe SDF Download service of the Bid Manager API is discontinued and users should transition to the DV360 API for similar functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe DV360 API's SDF download requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/doubleclickbidmanager\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eUsers can retrieve entities like campaigns, insertion orders, line items, ad groups, ads, and inventory sources in SDF format using the new API.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for the DV360 API allows for filtering downloaded entities by type and ID, and specifying the SDF version for the output.\u003c/p\u003e\n"]]],["The SDF Download service is deprecated; users should migrate to the DV360 API. To retrieve entities in SDF format, a POST request is made to the specified endpoint, requiring authorization. The request body includes `fileTypes` (e.g., AD, CAMPAIGN), `filterType` (e.g., ADVERTISER_ID), `filterIds` (IDs corresponding to filter type), and `version`. The response contains strings representing downloaded entities such as `insertionOrders`, `lineItems`, `ads`, `campaigns`, `adGroups` and `inventorySources` in SDF format.\n"],null,["# Sdf: download\n\nThe SDF Download service of the Bid Manager API has been sunset. Users must migrate to the [DV360 API](/display-video/api/reference/rest). \n| **Note:** Requires [authorization](#auth).\n\nRetrieves entities in SDF format.\n[Try it now](#try-it).\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/doubleclickbidmanager/v1.1/sdf/download\n```\n\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|---------------------------------------------------------|\n| `https://www.googleapis.com/auth/doubleclickbidmanager` |\n\nFor more information, see the [authentication and authorization](/bid-manager/how-tos/authorizing) page.\n\n### Request body\n\nIn the request body, supply data with the following structure:\n\n```text\n{\n \"fileTypes\": [\n string\n ],\n \"filterType\": string,\n \"filterIds\": [\n long\n ],\n \"version\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `fileTypes[]` | `list` | File types that will be returned. If INVENTORY_SOURCE is requested, no other file types may be requested. Acceptable values are: - \"`AD`\" - \"`AD_GROUP`\" - \"`CAMPAIGN`\" - \"`INSERTION_ORDER`\" - \"`INVENTORY_SOURCE`\" - \"`LINE_ITEM`\" | |\n| `filterType` | `string` | Filter type used to filter entities to fetch. PARTNER_ID and INVENTORY_SOURCE_ID may only be used when downloading inventory sources. \u003cbr /\u003e Acceptable values are: - \"`ADVERTISER_ID`\" - \"`CAMPAIGN_ID`\" - \"`INSERTION_ORDER_ID`\" - \"`INVENTORY_SOURCE_ID`\" - \"`LINE_ITEM_ID`\" - \"`PARTNER_ID`\" | |\n| `filterIds[]` | `list` | The IDs of the specified filter type. This is used to filter entities to fetch. At least one ID must be specified. Only one ID is allowed for the `ADVERTISER_ID` filter type. For `INSERTION_ORDER_ID` or `LINE_ITEM_ID` filter types all IDs must be from the same Advertiser. | |\n| `version` | `string` | SDF Version (column names, types, order) in which the entities will be returned. Default to `5.3`. | |\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```text\n{\n \"campaigns\": string,\n \"insertionOrders\": string,\n \"lineItems\": string,\n \"adGroups\": string,\n \"ads\": string,\n \"inventorySources\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|--------------------|----------|-------------------------------------------|-------|\n| `insertionOrders` | `string` | Retrieved insertion orders in SDF format. | |\n| `lineItems` | `string` | Retrieved line items in SDF format. | |\n| `adGroups` | `string` | Retrieved ad groups in SDF format. | |\n| `ads` | `string` | Retrieved ads in SDF format. | |\n| `campaigns` | `string` | Retrieved campaigns in SDF format. | |\n| `inventorySources` | `string` | | |\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response.\nAlternatively, try the\n[standalone\nExplorer](https://developers.google.com/apis-explorer/#p/doubleclickbidmanager/v1.1/doubleclickbidmanager.sdf.download)."]]