type NativeStyle (v202508)
Stay organized with collections
Save and categorize content based on your preferences.
Service
NativeStyleService
Used to define the look and feel of native ads, for both web and apps. Native styles determine
how native creatives look for a segment of inventory.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202508
Field
|
id
|
xsd:long
Uniquely identifies the NativeStyle . This attribute is read-only and is assigned by
Google when a native style is created.
|
name
|
xsd:string
The name of the native style. This attribute is required and has a maximum length of 255
characters.
|
htmlSnippet
|
xsd:string
The HTML snippet of the native style with placeholders for the associated variables. This
attribute is required.
|
cssSnippet
|
xsd:string
The CSS snippet of the native style, with placeholders for the associated variables. This
attribute is required.
|
creativeTemplateId
|
xsd:long
The creative template ID this native style associated with. This attribute is required on
creation and is read-only afterwards.
|
isFluid
|
xsd:boolean
Whether this is a fluid size native style. If true , this must be used with 1x1 size.
|
targeting
|
Targeting
The targeting criteria for this native style. Only ad unit and key-value targeting are
supported at this time.
|
status
|
NativeStyleStatus
The status of the native style. This attribute is read-only.
Enumerations
-
ACTIVE
- The native style is active. Active native styles are used in ad serving.
-
ARCHIVED
- The native style is archived. Archived native styles are not visible in the UI and
not used in ad serving.
-
INACTIVE
- The native style is inactive. Inactive native styles are not used in ad serving, but visible in
the UI.
-
UNKNOWN
- The value returned if the actual value is not exposed by the requested API
version.
|
size
|
Size
The size of the native style. This attribute is required.
|
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-13 UTC.
[null,null,["Last updated 2025-08-13 UTC."],[],[],null,["# type NativeStyle (v202508)\n\n**Service** \n**NativeStyleService** **Dependencies** \n[NativeStylePage](/ad-manager/api/reference/v202508/NativeStyleService.NativeStylePage) [createNativeStyles()](/ad-manager/api/reference/v202508/NativeStyleService#createNativeStyles) [updateNativeStyles()](/ad-manager/api/reference/v202508/NativeStyleService#updateNativeStyles) \n▼\n**NativeStyle**\n\nUsed to define the look and feel of native ads, for both web and apps. Native styles determine\nhow native creatives look for a segment of inventory.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202508`\n\n| Field ----- ||\n|--------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `id` | ` `xsd:`long` Uniquely identifies the `NativeStyle`. This attribute is read-only and is assigned by Google when a native style is created. |\n| ### `name` | ` `xsd:`string` The name of the native style. This attribute is required and has a maximum length of 255 characters. |\n| ### `htmlSnippet` | ` `xsd:`string` The HTML snippet of the native style with placeholders for the associated variables. This attribute is required. |\n| ### `cssSnippet` | ` `xsd:`string` The CSS snippet of the native style, with placeholders for the associated variables. This attribute is required. |\n| ### `creativeTemplateId` | ` `xsd:`long` The creative template ID this native style associated with. This attribute is required on creation and is read-only afterwards. |\n| ### `isFluid` | ` `xsd:`boolean` Whether this is a fluid size native style. If `true`, this must be used with 1x1 size. |\n| ### `targeting` | ` `[Targeting](/ad-manager/api/reference/v202508/NativeStyleService.Targeting)` ` The targeting criteria for this native style. Only ad unit and key-value targeting are supported at this time. |\n| ### `status` | ` `[NativeStyleStatus](/ad-manager/api/reference/v202508/NativeStyleService.NativeStyleStatus)` ` The status of the native style. This attribute is read-only. *** ** * ** *** **Enumerations** `ACTIVE` : The native style is active. Active native styles are used in ad serving. `ARCHIVED` : The native style is archived. Archived native styles are not visible in the UI and not used in ad serving. `INACTIVE` : The native style is inactive. Inactive native styles are not used in ad serving, but visible in the UI. `UNKNOWN` : The value returned if the actual value is not exposed by the requested API version. \u003cbr /\u003e |\n| ### `size` | ` `[Size](/ad-manager/api/reference/v202508/NativeStyleService.Size)` ` The size of the native style. This attribute is required. |"]]