Stay organized with collections
Save and categorize content based on your preferences.
GoogleMobileAds.Api.NativeTemplateTextStyle
Text style options for native templates.
Summary
Properties
BackgroundColor
Color BackgroundColor
FontSize
int FontSize
Size of the Text to be displayed.
TextColor
Color TextColor
Color of the Text to be rendered.
Public functions
NativeTemplateTextStyle
NativeTemplateTextStyle()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eNativeTemplateTextStyle\u003c/code\u003e provides options for customizing the text style in native templates.\u003c/p\u003e\n"],["\u003cp\u003eYou can configure properties such as background color, font size, style, and text color.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows you to control the visual appearance of text elements in your native ads.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003eBackgroundColor\u003c/code\u003e, \u003ccode\u003eFontSize\u003c/code\u003e, \u003ccode\u003eStyle\u003c/code\u003e, and \u003ccode\u003eTextColor\u003c/code\u003e to define the text style.\u003c/p\u003e\n"]]],["The `NativeTemplateTextStyle` class provides options for customizing the appearance of text in native ad templates. Key properties include `BackgroundColor` and `TextColor` to set the color, `FontSize` to determine the text size, and `Style` to define the font style using `NativeTemplateFontStyle`. It contains a constructor `NativeTemplateTextStyle()`, which is used to create a new instance, but does not require parameters. The class's functionalities are focused on adjusting text attributes in ad displays.\n"],null,["GoogleMobileAds.Api.NativeTemplateTextStyle\n\nText style options for native templates.\n\nSummary\n\n| Constructors and Destructors ||\n|---|---|\n| [NativeTemplateTextStyle](#class_google_mobile_ads_1_1_api_1_1_native_template_text_style_1ae7155fe10af15afd29ded55c9a3dacd9)`()` ||\n\n| Properties ||\n|-----------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BackgroundColor](#class_google_mobile_ads_1_1_api_1_1_native_template_text_style_1a56253a41863ffa68d582765297d19fdb) | `Color` Background color. |\n| [FontSize](#class_google_mobile_ads_1_1_api_1_1_native_template_text_style_1ae0e944d85b19a4525e69e8bd0f917aad) | `int` Size of the Text to be displayed. |\n| [Style](#class_google_mobile_ads_1_1_api_1_1_native_template_text_style_1a5ec38905a7b2ba46277baeba8784f9af) | [NativeTemplateFontStyle](/admob/unity/reference/namespace/google-mobile-ads/api#namespace_google_mobile_ads_1_1_api_1a98d11b61ed0ccdd8e63f6ad62f8337c1) FontStyle for the text. |\n| [TextColor](#class_google_mobile_ads_1_1_api_1_1_native_template_text_style_1ad9d6dd92830a4264ee359dd3a94d4b4c) | `Color` Color of the Text to be rendered. |\n\nProperties \n\nBackgroundColor \n\n```c#\nColor BackgroundColor\n``` \nBackground color. \n\nFontSize \n\n```c#\nint FontSize\n``` \nSize of the Text to be displayed. \n\nStyle \n\n```c#\nNativeTemplateFontStyle Style\n``` \nFontStyle for the text. \n\nTextColor \n\n```c#\nColor TextColor\n``` \nColor of the Text to be rendered.\n\nPublic functions \n\nNativeTemplateTextStyle \n\n```c#\n NativeTemplateTextStyle()\n```"]]