Để thảo luận và đưa ra ý kiến phản hồi về các sản phẩm của chúng tôi, hãy tham gia kênh Discord chính thức của Ad Manager trong máy chủ Cộng đồng quảng cáo và đo lường của Google.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
DaiSdkSettings
classpublic
Lớp này chứa các API chế độ cài đặt DAI của IMA.
Phương thức
getFeatureFlags
getFeatureFlags() trả về Đối tượng có các thuộc tính thuộc mọi loại
Trả về một đối tượng có khoá là cờ tính năng và giá trị là trạng thái hiện tại của cờ đó.
Giá trị trả về
non-null Object with any type properties
setFeatureFlags
setFeatureFlags(featureFlags) trả về void
Đặt giá trị cho mọi cờ tính năng. Bạn nên đặt tham số này càng sớm càng tốt, trước khi yêu cầu một luồng phát. Việc gọi lại phương thức này sẽ đặt lại mọi cờ tính năng cho luồng tiếp theo.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-21 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eDaiSdkSettings\u003c/code\u003e class provides access to IMA DAI settings through its methods.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetFeatureFlags\u003c/code\u003e retrieves the current state of all feature flags.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esetFeatureFlags\u003c/code\u003e allows you to configure feature flags which impact subsequent stream requests; calling it again resets these flags for the next stream.\u003c/p\u003e\n"]]],["The `DaiSdkSettings` class provides methods for managing IMA DAI (Dynamic Ad Insertion) settings. `getFeatureFlags` retrieves an object containing feature flag keys and their current states. `setFeatureFlags` allows setting values for feature flags; these settings should be configured before requesting a stream. Re-calling `setFeatureFlags` resets the flags for the next stream. The parameter `featureFlags` for this function should not be null.\n"],null,["# Class: DaiSdkSettings\n\nDaiSdkSettings\n==============\n\nclass public\n\nThis class contains IMA DAI settings APIs.\n\nMethods\n-------\n\n### getFeatureFlags\n\ngetFeatureFlags() returns Object with any type properties\n\nReturns an object with keys as feature flags and values as their current\nstate.\n\nReturns\n\n: `non-null Object with any type properties`\n\n### setFeatureFlags\n\nsetFeatureFlags(featureFlags) returns void\n\nSet the value for any feature flags. This should be set as early as\npossible, before requesting a stream. Calling this method again will reset\nany feature flags for the next stream.\n\n| #### Parameter ||\n|--------------|---------------------------------------------------------|\n| featureFlags | Object with any type properties Value must not be null. |\n\nReturns\n\n: `void`"]]