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\u003eNativeTemplateId\u003c/code\u003e defines constant IDs for rendering native ads templates.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMedium\u003c/code\u003e constant represents the ID for the Medium Layout template.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSmall\u003c/code\u003e constant represents the ID for the Small Layout template.\u003c/p\u003e\n"],["\u003cp\u003eThere are two supported native ad templates which are the Medium and Small Layouts.\u003c/p\u003e\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."]]