Resource: NativeStyle
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.
| JSON representation |
|---|
{ "name": string, "targeting": { object ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the |
targeting |
Optional. The targeting criteria for this native style. |
size |
Required. The size of the native style. |
creativeTemplate |
Required. Immutable. The creative template this native style is associated with. Format: "networks/{networkCode}/creativeTemplates/{creativeTemplate}" |
displayName |
Required. The display name of the native style. This attribute has a maximum length of 255 characters. |
htmlSnippet |
Optional. The HTML snippet of the native style with placeholders for the associated variables. |
cssSnippet |
Optional. The CSS snippet of the native style, with placeholders for the associated variables. |
status |
Output only. The status of the native style. |
NativeStyleStatus
Describes status of the native style.
| Enums | |
|---|---|
NATIVE_STYLE_STATUS_UNSPECIFIED |
Default value. This value is unused. |
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. |
Methods |
|
|---|---|
|
Beginning of non-CRUD Activates a list of NativeStyle objects. |
|
Archives a list of NativeStyle objects. |
|
Creates NativeStyle objects. |
|
Deactivates a list of NativeStyle objects. |
|
Batch updates NativeStyle objects. |
|
Retrieves a NativeStyle object. |
|
Lists NativeStyle objects. |