AI-generated Key Takeaways
-
NativeStyle
is 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
NativeStyle
include id, name, htmlSnippet, cssSnippet, creativeTemplateId, isFluid, targeting, status, and size. -
NativeStyle
has a read-onlyid
assigned upon creation and a requiredname
with a maximum length of 255 characters. -
The
htmlSnippet
andcssSnippet
fields 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 |
|
---|---|
|
Uniquely identifies the |
|
The name of the native style. This attribute is required and has a maximum length of 255 characters. |
|
The HTML snippet of the native style with placeholders for the associated variables. This attribute is required. |
|
The CSS snippet of the native style, with placeholders for the associated variables. This attribute is required. |
|
The creative template ID this native style associated with. This attribute is required on creation and is read-only afterwards. |
|
Whether this is a fluid size native style. If |
|
The targeting criteria for this native style. Only ad unit and key-value targeting are supported at this time. |
|
The status of the native style. This attribute is read-only. Enumerations
|
|
The size of the native style. This attribute is required. |