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.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eNativeTemplateTextStyle\u003c/code\u003e provides customizable text style options for native ad templates within the Google Mobile Ads API.\u003c/p\u003e\n"],["\u003cp\u003eYou can set the background color of text elements using the \u003ccode\u003eBackgroundColor\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFontSize\u003c/code\u003e property allows you to define the size of the text that will be displayed.\u003c/p\u003e\n"],["\u003cp\u003eThe visual appearance of the text is further modifiable with the \u003ccode\u003eStyle\u003c/code\u003e property, enabling font style adjustments.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTextColor\u003c/code\u003e enables setting the specific color of the text to be displayed.\u003c/p\u003e\n"]]],[],null,["# GoogleMobileAds.Api.NativeTemplateTextStyle Class Reference\n\nGoogleMobileAds.Api.NativeTemplateTextStyle\n===========================================\n\nText style options for native templates.\n\nSummary\n-------\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](/ad-manager/mobile-ads-sdk/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----------\n\n### BackgroundColor\n\n```c#\nColor BackgroundColor\n``` \nBackground color. \n\n### FontSize\n\n```c#\nint FontSize\n``` \nSize of the Text to be displayed. \n\n### Style\n\n```c#\nNativeTemplateFontStyle Style\n``` \nFontStyle for the text. \n\n### TextColor\n\n```c#\nColor TextColor\n``` \nColor of the Text to be rendered.\n\nPublic functions\n----------------\n\n### NativeTemplateTextStyle\n\n```c#\n NativeTemplateTextStyle()\n```"]]