AI-generated Key Takeaways
-
NativeStyleis used to define the appearance of native ads for both web and apps. -
Native styles determine how native creatives look for a specific segment of inventory.
-
Key fields for a
NativeStyleinclude id, name, htmlSnippet, cssSnippet, creativeTemplateId, isFluid, targeting, status, and size. -
NativeStylehas a read-onlyidassigned upon creation and a requirednamewith a maximum length of 255 characters. -
The
htmlSnippetandcssSnippetfields are required to define the look and feel of the native style using placeholders for variables.
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
The targeting criteria for this native style. Only ad unit and key-value targeting are supported at this time.
status
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
The size of the native style. This attribute is required.

