เพิ่มตรรกะใหม่สำหรับการอ่าน การสร้าง และการอัปเดตทรัพยากร Demand Gen
อัปเดตเวอร์ชันไฟล์ Structured Data
หากต้องการใช้ไฟล์ Structured Data เวอร์ชันใหม่ ให้อัปเดตเวอร์ชันที่กำหนดในแหล่งข้อมูลของพาร์ทเนอร์และผู้ลงโฆษณาหลัก และใช้เวอร์ชันใหม่เมื่อสร้างงานการดาวน์โหลดแต่ละรายการใน Display & Video 360 API
อัปเดตการตั้งค่าทรัพยากรหลัก
ระบบจะตั้งค่าเวอร์ชันไฟล์ Structured Data เริ่มต้นที่ระดับทรัพยากรของพาร์ทเนอร์และผู้ลงโฆษณา ระบบจะใช้เวอร์ชันนี้เป็นค่าเริ่มต้นเมื่อดาวน์โหลดไฟล์ Structured Data ผ่านอินเทอร์เฟซหรือ API
เมื่อส่งคําขอ sdfdownloadtasks.create โดยใช้ Display & Video 360 API ให้ตั้งค่าช่อง version ของเนื้อหาคําขอเป็น SDF_VERSION_8
ระบุประเภทในแหล่งข้อมูลโฆษณา
v8 จะเพิ่มคอลัมน์ Ad Type ลงในไฟล์ Ad ซึ่งแสดงประเภทโฆษณาที่แต่ละแถวแสดง คอลัมน์ใหม่นี้ต้องระบุและระบบจะป้อนข้อมูลสำหรับทรัพยากรที่มีอยู่เมื่อดาวน์โหลดไฟล์โฆษณา v8
v8 รองรับการสร้าง การเรียกข้อมูล และการอัปเดตแคมเปญ Demand Gen โดยใช้ไฟล์รายการโฆษณากลุ่มโฆษณา และโฆษณา ทรัพยากร Demand Gen ใช้ตรรกะที่แตกต่างกันสำหรับการยืนยันการประทับเวลา ต้องมีการป้อนข้อมูลคอลัมน์เพิ่มเติม และถูกจํากัดโดยข้อจํากัดใหม่ในไฟล์ 3 ประเภท
การยืนยันการประทับเวลา
สําหรับรายการโฆษณาที่ไม่ใช่ Demand Gen ทั้งหมด ระบบจะป้อนข้อมูลคอลัมน์ Timestamp ของไฟล์ Line Item เมื่อดาวน์โหลดพร้อมระบุเวลาที่แก้ไขรายการโฆษณาครั้งล่าสุด ระบบจะใช้ค่านี้เมื่ออัปเดตรายการโฆษณาโดยใช้ SDF เพื่อยืนยันว่ารายการโฆษณาไม่มีการอัปเดตนับตั้งแต่มีการดาวน์โหลดไฟล์ต้นฉบับ ไม่เช่นนั้นการอัปเดตจะไม่สำเร็จ
สําหรับรายการโฆษณา Demand Gen คอลัมน์ Timestamp และการยืนยันที่มาพร้อมกับรายการโฆษณาจะทํางานแตกต่างกัน สําหรับรายการโฆษณา Demand Gen คอลัมน์จะแสดงเวลาปัจจุบันเมื่อดาวน์โหลด เมื่ออัปโหลด Display & Video 360 จะตรวจสอบว่าเวลาผ่านไปนานกว่า 24 ชั่วโมงนับจากการประทับเวลาที่กำหนดหรือไม่ หากนานกว่า 24 ชั่วโมง ระบบจะถือว่ารายการไฟล์ต้นฉบับล้าสมัยและการอัปเดตไม่สำเร็จ หากเกิดกรณีเช่นนี้ ให้ดาวน์โหลดไฟล์อีกครั้งและทำการอัปเดตตามเวอร์ชันล่าสุด วิธีการยืนยันใหม่นี้ไม่ได้ป้องกันไม่ให้คุณเขียนทับการเปลี่ยนแปลงที่เกิดขึ้นในช่วง 24 ชั่วโมงที่ผ่านมา โปรดใส่เฉพาะบรรทัดรายการ Demand Gen ที่ต้องการอัปเดตในไฟล์ที่อัปโหลดเพื่อหลีกเลี่ยงการเขียนทับโดยไม่ตั้งใจ
คอลัมน์ที่จำเป็น
ไฟล์ประเภทต่อไปนี้มีคอลัมน์ที่จําเป็นสําหรับทรัพยากร Demand Gen บางรายการ นอกเหนือจากคอลัมน์ที่จําเป็นสําหรับเอนทิตีทั้งหมดของไฟล์ประเภทนั้น
รายการโฆษณา
คอลัมน์ที่จําเป็นสําหรับรายการต่อไปนี้
บรรทัดรายการ
ค่าคอลัมน์ Type
Demand Gen
Pacing Amount
TrueView Bid Strategy Type
TrueView Bid Strategy Value
โฆษณา
คอลัมน์ที่จําเป็นสําหรับค่าคอลัมน์ต่อไปนี้
โฆษณา
Ad Type
ภาพสไลด์ Demand Gen
Business Name
Call to Action
Demand Gen Cards
Description 1
Headline
In-feed Video Headline
Landing Page URL
Logo Asset IDs
รูปภาพ Demand Gen
Business Name
Call to Action
Description 1
Headline
In-feed Video Headline
Landing Page URL
Logo Asset IDs
Marketing Image Asset Id
ผลิตภัณฑ์ Demand Gen
Business Name
Description 1
Headline
In-feed Video Headline
Landing Page URL
Logo Asset IDs
วิดีโอ Demand Gen
Business Name
Call to Action
Description 1
Headline
In-feed Video Headline
Landing Page URL
Logo Asset IDs
Video Id
ข้อจำกัดที่อัปเดต
นอกจากคอลัมน์ใหม่ที่ต้องระบุสำหรับรายการโฆษณาและโฆษณา Demand Gen บางรายการแล้ว คอลัมน์หลายคอลัมน์ในไฟล์รายการโฆษณากลุ่มโฆษณา และโฆษณายังมีข้อจำกัดการใช้งานใหม่ที่ใช้กับทรัพยากร Demand Gen
ข้อจํากัดเหล่านี้มีจํานวนมากและเจาะจงกับคอลัมน์ที่เป็นปัญหา ดังนั้นคู่มือนี้จึงไม่ได้ระบุรายการข้อจํากัดทั้งหมด เราขอแนะนําให้คุณอ่านเอกสารอ้างอิง v8 อย่างละเอียดสําหรับประเภทไฟล์รายการโฆษณากลุ่มโฆษณา และโฆษณาก่อนสร้างหรืออัปเดตทรัพยากร Demand Gen โดยใช้การอัปโหลด SDF
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eThis guide explains how to migrate from Structured Data Files v7.1 to v8, outlining key changes and impacts on integration.\u003c/p\u003e\n"],["\u003cp\u003eMigrating involves updating resource and SDF generation actions to v8, adding Ad resource type identification logic, and implementing Demand Gen resource handling.\u003c/p\u003e\n"],["\u003cp\u003eYou can set the default SDF version at the partner and advertiser level through the interface or API, and individual download tasks need version specification in API requests.\u003c/p\u003e\n"],["\u003cp\u003eVersion 8 introduces an \u003ccode\u003eAd Type\u003c/code\u003e column for Ads, requiring it to be populated when creating new ads and preventing changes to existing ads.\u003c/p\u003e\n"],["\u003cp\u003eDemand Gen resources in v8 have specific logic for timestamp verification, require additional columns in Line Item and Ad files, and have new restrictions detailed in the v8 reference documentation.\u003c/p\u003e\n"]]],[],null,["# Migrate to Structured Data Files v8\n\n*Last update: 2024-11-12*\n\nThis guide leads you through the process of migrating from using Structured Data\nFiles v7.1 to v8 and explains the changes between the two versions that may\nimpact your integration.\n\nSee the [release notes](/display-video/api/structured-data-file/rel-notes#version_8_beta) for an exhaustive list of differences\nbetween v7.1 and v8.\n\nMigrate your Structured Data Files version\n------------------------------------------\n\nTo migrate to Structured Data Files (SDFs) v8 from a previous version:\n\n1. Update your resources and SDF generation actions to use v8.\n2. Update Ad resource logic to identify a type upon creation.\n3. Add new logic for reading, creating, and updating Demand Gen resources.\n\n### Update Structured Data Files version\n\nTo use a new Structured Data Files version, update the assigned version in your\nparent Partner and Advertiser resources and use the new version when creating\nindividual download tasks in the [Display \\& Video 360 API](/display-video/api).\n\n#### Update parent resource settings\n\nA default Structured Data Files version is set at the partner and advertiser\nresource level. This version is used as the default when downloading Structured\nData Files through the interface or API.\n\n##### Set in the interface\n\n**At the partner level**\n\n1. Navigate to the intended partner.\n2. Expand the **Partner settings** menu in the left-hand navigation and navigate to the **Basic details** page.\n3. Update the **SDF version** configuration in the **Structured Data Files** section to **v8**.\n\n**At the advertiser level**\n\n1. Navigate to the intended advertiser.\n2. Expand the **Advertiser settings** menu in the left-hand navigation and navigate to the **Basic details** page.\n3. Update the **SDF version** configuration in the **Structured Data Files** section to **v8**. If the default version is set at the Partner level, this setting may not be editable.\n\n##### Set in the API\n\nAt the partner level\n: You cannot set the default SDF version at the Partner level in the API.\n\nAt the advertiser level\n: Make an [`advertisers.patch`](/display-video/api/reference/rest/current/advertisers/patch) request to update the\n [`dataAccessConfig.sdfConfig.sdfConfig.version`](/display-video/api/reference/rest/current/SdfConfig#FIELDS.version) to\n `SDF_VERSION_8` and, if needed,\n [`dataAccessConfig.sdfConfig.overridePartnerSdfConfig`](/display-video/api/reference/rest/current/advertisers#AdvertiserSdfConfig.FIELDS.override_partner_sdf_config)\n to `True`.\n\n#### Update `sdfdownloadtasks.create` requests in the API\n\nWhen making a [`sdfdownloadtasks.create`](/display-video/api/reference/rest/current/sdfdownloadtasks/create) request using the\nDisplay \\& Video 360 API, set the [`version`](/display-video/api/reference/rest/current/sdfdownloadtasks/create#body.request_body.FIELDS.version) field of the\nrequest body to `SDF_VERSION_8`.\n\n### Specify type in Ad resources\n\nv8 adds an `Ad Type` column to [Ad](/display-video/api/structured-data-file/v8/AdGroupAd) files, which surfaces the type of\nAd represented by each row. This new column is required and will be populated\nfor existing resources when downloading v8 Ad files.\n\nWhen updating existing Ads, the value of this column shouldn't be changed.\n\nWhen creating new Ads, you must populate this column with one of the values\nlisted in the column description.\n\n### Update logic for Demand Gen resources\n\nv8 supports the creation, retrieval, and updating of Demand Gen campaigns using\n[Line Item](/display-video/api/structured-data-file/v8/LineItem), [Ad Group](/display-video/api/structured-data-file/v8/AdGroup), and [Ad](/display-video/api/structured-data-file/v8/AdGroupAd) files. Demand\nGen resources use different logic for timestamp verification, require the\npopulation of additional columns, and are limited by new restrictions across the\nthree file types.\n\n#### Timestamp verification\n\nFor all non-Demand-Gen line items, the `Timestamp` column of a [Line\nItem](/display-video/api/structured-data-file/v8/LineItem) file is populated at download with the last time a line item\nwas modified. This value is used when updating a line item using SDF to verify\nthat a line item has not been updated since the original file was downloaded. If\nso, the update fails.\n\nFor Demand Gen line items, the `Timestamp` column and the accompanying\nverification works differently. For Demand Gen line item entries, the column is\npopulated with the current time at download. On upload, Display \\& Video 360\nchecks if it has been more than 24 hours since the given timestamp. If it has\nbeen more than 24 hours, the original file entry is considered stale and the\nupdate fails. If this happens, download the file again and make your updates\nbased on the more recent version. *This new verification method does not prevent\nyou from overwriting changes made in the last 24 hours. To avoid accidental\noverwrites, only include Demand Gen line items that you want to update in files\nthat you upload.*\n\n#### Required columns\n\nThe following file types have columns that are now required for certain Demand\nGen resources, in addition to the columns that are required for all entities of\nthat file type.\n| **Note:** Other columns not listed here may be required when *updating* Demand Gen resources. See the v8 reference documentation for [Line Item](/display-video/api/structured-data-file/v8/LineItem), [Ad\n| Group](/display-video/api/structured-data-file/v8/AdGroup), and [Ad](/display-video/api/structured-data-file/v8/AdGroupAd) file types for an exhaustive list of requirements for each column.\n\n##### Line Item\n\n| Required columns for the following [Line Item](/display-video/api/structured-data-file/v8/LineItem) `Type` column values ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| Demand Gen | |-------------------------------| | `Pacing Amount` | | `TrueView Bid Strategy Type` | | `TrueView Bid Strategy Value` | |\n\n##### Ad\n\n| Required columns for the following [Ad](/display-video/api/structured-data-file/v8/AdGroupAd) `Ad Type` column values ||\n|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Demand Gen Carousel | |--------------------------| | `Business Name` | | `Call to Action` | | `Demand Gen Cards` | | `Description 1` | | `Headline` | | `In-feed Video Headline` | | `Landing Page URL` | | `Logo Asset IDs` | |\n| Demand Gen Image | |----------------------------| | `Business Name` | | `Call to Action` | | `Description 1` | | `Headline` | | `In-feed Video Headline` | | `Landing Page URL` | | `Logo Asset IDs` | | `Marketing Image Asset Id` | |\n| Demand Gen Product | |--------------------------| | `Business Name` | | `Description 1` | | `Headline` | | `In-feed Video Headline` | | `Landing Page URL` | | `Logo Asset IDs` | |\n| Demand Gen Video | |--------------------------| | `Business Name` | | `Call to Action` | | `Description 1` | | `Headline` | | `In-feed Video Headline` | | `Landing Page URL` | | `Logo Asset IDs` | | `Video Id` | |\n\n#### Updated restrictions\n\nIn addition to the new required columns for certain Demand Gen Line Items and\nAds, multiple columns across [Line Item](/display-video/api/structured-data-file/v8/LineItem), [Ad Group](/display-video/api/structured-data-file/v8/AdGroup), and\n[Ad](/display-video/api/structured-data-file/v8/AdGroupAd) file types have new use restrictions that apply to Demand Gen\nresources.\n\nThese restrictions are numerous and specific to the columns in question, so this\nguide doesn't provide an exhaustive list of restrictions. We recommend that you\nclosely read the v8 reference documentation for [Line Item](/display-video/api/structured-data-file/v8/LineItem), [Ad\nGroup](/display-video/api/structured-data-file/v8/AdGroup), and [Ad](/display-video/api/structured-data-file/v8/AdGroupAd) file types before creating or updating\nDemand Gen resources using SDF upload."]]