Ürünlerimiz hakkında görüşlerinizi paylaşmak ve geri bildirimde bulunmak için Google Advertising and Measurement Community sunucusundaki resmi Ad Manager Discord kanalına katılın.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
UiSettings
classpublic
Yayın kullanıcı arayüzü ayarları.
Marka
UiSettings
new
UiSettings()
Oluşturucu.
Yöntemler
getLocale
getLocale() dize döndürür
Akış için ayarlanan yerel ayarı döndürür.
İadeler
string
setLocale
setLocale(locale) işlevi void döndürür
Yayıncı tarafından sağlanan yerel ayarı belirler. StreamManager oluşturulmadan önce çağrılmalıdır. Yerel ayar, kullanıcı arayüzü öğelerinin hangi dilde gösterileceğini belirtir. Desteklenen kodları
Dil ve Yerel Ayar için Yerelleştirme bölümünde bulabilirsiniz.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-08-21 UTC."],[[["\u003cp\u003e\u003ccode\u003eUiSettings\u003c/code\u003e allows publishers to customize the stream's user interface.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to set the locale for UI elements, impacting the language displayed to users.\u003c/p\u003e\n"],["\u003cp\u003eThe locale should be configured before initializing \u003ccode\u003eStreamManager\u003c/code\u003e for it to take effect.\u003c/p\u003e\n"],["\u003cp\u003eSupported locale codes are documented in the provided link for localization.\u003c/p\u003e\n"]]],[],null,["# Class: UiSettings\n\nUiSettings\n==========\n\nclass public\n\nStream UI Settings.\n\nConstructor\n-----------\n\n### UiSettings\n\nnew\nUiSettings()\n\nConstructor.\n\nMethods\n-------\n\n### getLocale\n\ngetLocale() returns string\n\nReturns the locale set for the stream.\n\nReturns\n\n: `string`\n\n### setLocale\n\nsetLocale(locale) returns void\n\nSets the publisher provided locale. Must be called before creating\nStreamManager. The locale specifies the language\nin which to display UI elements. The supported codes can be found in\n[Localizing for Language and Locale](/ad-manager/dynamic-ad-insertion/sdk/html5/localization).\n\n| #### Parameter ||\n|--------|-----------------------------------|\n| locale | string Publisher provided locale. |\n\nReturns\n\n: `void`"]]