Class 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.
Implements
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class NativeStyle : IMessage<NativeStyle>, IEquatable<NativeStyle>, IDeepCloneable<NativeStyle>, IBufferMessage, IMessage
Constructors
NativeStyle()
Declaration
public NativeStyle()
NativeStyle(NativeStyle)
Declaration
public NativeStyle(NativeStyle other)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeStyle | other |
Properties
CreativeTemplate
Required. Immutable. The creative template this native style is associated with. Format: "networks/{network_code}/creativeTemplates/{creative_template}"
Declaration
public string CreativeTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CreativeTemplateAsCreativeTemplateName
CreativeTemplateName-typed view over the CreativeTemplate resource name property.
Declaration
public CreativeTemplateName CreativeTemplateAsCreativeTemplateName { get; set; }
Property Value
| Type | Description |
|---|---|
| CreativeTemplateName |
CssSnippet
Optional. The CSS snippet of the native style, with placeholders for the associated variables.
Declaration
public string CssSnippet { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DisplayName
Required. The display name of the native style. This attribute has a maximum length of 255 characters.
Declaration
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HasCreativeTemplate
Gets whether the "creative_template" field is set
Declaration
public bool HasCreativeTemplate { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasCssSnippet
Gets whether the "css_snippet" field is set
Declaration
public bool HasCssSnippet { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasDisplayName
Gets whether the "display_name" field is set
Declaration
public bool HasDisplayName { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasHtmlSnippet
Gets whether the "html_snippet" field is set
Declaration
public bool HasHtmlSnippet { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasStatus
Gets whether the "status" field is set
Declaration
public bool HasStatus { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HtmlSnippet
Optional. The HTML snippet of the native style with placeholders for the associated variables.
Declaration
public string HtmlSnippet { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Identifier. The resource name of the NativeStyle.
Format: networks/{network_code}/nativeStyles/{native_style_id}
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NativeStyleName
NativeStyleName-typed view over the Name resource name property.
Declaration
public NativeStyleName NativeStyleName { get; set; }
Property Value
| Type | Description |
|---|---|
| NativeStyleName |
Size
Required. The size of the native style.
Declaration
public Size Size { get; set; }
Property Value
| Type | Description |
|---|---|
| Size |
Status
Output only. The status of the native style.
Declaration
public NativeStyleStatusEnum.Types.NativeStyleStatus Status { get; set; }
Property Value
| Type | Description |
|---|---|
| NativeStyleStatusEnum.Types.NativeStyleStatus |
Targeting
Optional. The targeting criteria for this native style.
Declaration
public Targeting Targeting { get; set; }
Property Value
| Type | Description |
|---|---|
| Targeting |