Stay organized with collections
Save and categorize content based on your preferences.
GoogleMobileAds.Api.NativeTemplateId
Defines ID constants for templates to render native ads.
Summary
Public attributes
|
Medium = "medium"
|
const string
Medium Layout.
|
Small = "small"
|
const string
Small Layout.
|
Public attributes
Medium
const string Medium = "medium"
Small
const string Small = "small"
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\u003eGoogleMobileAds.Api.NativeTemplateId\u003c/code\u003e defines ID constants for rendering native ads.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two layout options: "medium" and "small," represented by the \u003ccode\u003eMedium\u003c/code\u003e and \u003ccode\u003eSmall\u003c/code\u003e constants respectively.\u003c/p\u003e\n"],["\u003cp\u003eThese constants are used to specify the desired layout when creating native ads.\u003c/p\u003e\n"]]],["The content defines constants for native ad template IDs within the `GoogleMobileAds.Api.NativeTemplateId` class. It specifies two public attributes: `Medium` and `Small`. `Medium`, represented by the string \"medium\", denotes the medium layout. `Small`, represented by the string \"small\", denotes the small layout. These string values serve as identifiers for selecting the desired template for rendering native ads.\n"],null,["# GoogleMobileAds.Api.NativeTemplateId Class Reference\n\nGoogleMobileAds.Api.NativeTemplateId\n====================================\n\nDefines ID constants for templates to render native ads.\n\nSummary\n-------\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------------|-------------------------------|\n| [Medium](#class_google_mobile_ads_1_1_api_1_1_native_template_id_1aabf3499a7d7787b17fcab46fbcd79cb6)` = \"medium\"` | `const string` Medium Layout. |\n| [Small](#class_google_mobile_ads_1_1_api_1_1_native_template_id_1a0141021347ced744549708bcd073b0ea)` = \"small\"` | `const string` Small Layout. |\n\nPublic attributes\n-----------------\n\n### Medium\n\n```c#\nconst string Medium = \"medium\"\n``` \nMedium Layout. \n\n### Small\n\n```c#\nconst string Small = \"small\"\n``` \nSmall Layout."]]