REST Resource: networks.nativeStyles

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 (Targeting)
  },
  "size": {
    object (Size)
  },
  "creativeTemplate": string,
  "displayName": string,
  "htmlSnippet": string,
  "cssSnippet": string,
  "status": enum (NativeStyleStatus)
}
Fields
name

string

Identifier. The resource name of the NativeStyle. Format: networks/{networkCode}/nativeStyles/{nativeStyleId}

targeting

object (Targeting)

Optional. The targeting criteria for this native style.

size

object (Size)

Required. The size of the native style.

creativeTemplate

string

Required. Immutable. The creative template this native style is associated with. Format: "networks/{networkCode}/creativeTemplates/{creativeTemplate}"

displayName

string

Required. The display name of the native style. This attribute has a maximum length of 255 characters.

htmlSnippet

string

Optional. The HTML snippet of the native style with placeholders for the associated variables.

cssSnippet

string

Optional. The CSS snippet of the native style, with placeholders for the associated variables.

status

enum (NativeStyleStatus)

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

batchActivate

Beginning of non-CRUD Activates a list of NativeStyle objects.

batchArchive

Archives a list of NativeStyle objects.

batchCreate

Creates NativeStyle objects.

batchDeactivate

Deactivates a list of NativeStyle objects.

batchUpdate

Batch updates NativeStyle objects.

get

Retrieves a NativeStyle object.

list

Lists NativeStyle objects.