Class CreativeTemplate
A template that can be used to create a [TemplateCreative][].
Implements
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class CreativeTemplate : IMessage<CreativeTemplate>, IEquatable<CreativeTemplate>, IDeepCloneable<CreativeTemplate>, IBufferMessage, IMessage
Constructors
CreativeTemplate()
Declaration
public CreativeTemplate()
CreativeTemplate(CreativeTemplate)
Declaration
public CreativeTemplate(CreativeTemplate other)
Parameters
| Type | Name | Description |
|---|---|---|
| CreativeTemplate | other |
Properties
CreativeTemplateName
CreativeTemplateName-typed view over the Name resource name property.
Declaration
public CreativeTemplateName CreativeTemplateName { get; set; }
Property Value
| Type | Description |
|---|---|
| CreativeTemplateName |
Description
Optional. The description of the creative template.
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DisplayName
Required. The display name of the creative template. This has a maximum length of 255 characters.
Declaration
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HasDescription
Gets whether the "description" field is set
Declaration
public bool HasDescription { 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 |
HasInterstitial
Gets whether the "interstitial" field is set
Declaration
public bool HasInterstitial { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasNativeEligible
Gets whether the "native_eligible" field is set
Declaration
public bool HasNativeEligible { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasNativeVideoEligible
Gets whether the "native_video_eligible" field is set
Declaration
public bool HasNativeVideoEligible { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasSafeFrameCompatible
Gets whether the "safe_frame_compatible" field is set
Declaration
public bool HasSafeFrameCompatible { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasSnippet
Gets whether the "snippet" field is set
Declaration
public bool HasSnippet { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasStatus
Gets whether the "status" field is set
Declaration
public bool HasStatus { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasType
Gets whether the "type" field is set
Declaration
public bool HasType { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Interstitial
Optional. True if this creative template produces out-of-page creatives.
Creative templates with this setting enabled must include the viewed
impression macro.
Declaration
public bool Interstitial { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Identifier. The resource name of the creative template.
Format: networks/{network_code}/creativeTemplates/{creative_template_id}
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NativeEligible
Optional. True if this creative template produces native-eligible
creatives.
Declaration
public bool NativeEligible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
NativeVideoEligible
Optional. True if this creative template produces native video-eligible
creatives.
Declaration
public bool NativeVideoEligible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
SafeFrameCompatible
Optional. Whether the Creative produced is compatible for SafeFrame
rendering. This attribute defaults to True.
Declaration
public bool SafeFrameCompatible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Snippet
Required. The code snippet of the creative template, with placeholders for the associated variables.
Declaration
public string Snippet { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Status
Output only. The status of the creative template. This attribute is assigned by Google.
Declaration
public CreativeTemplateStatusEnum.Types.CreativeTemplateStatus Status { get; set; }
Property Value
| Type | Description |
|---|---|
| CreativeTemplateStatusEnum.Types.CreativeTemplateStatus |
Type
Optional. The type of the creative template. Users can only create or
update CreativeTemplateType.CUSTOM templates.
Declaration
public CreativeTemplateTypeEnum.Types.CreativeTemplateType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| CreativeTemplateTypeEnum.Types.CreativeTemplateType |
Variables
Required. The list of creative template variables.
Declaration
public RepeatedField<CreativeTemplateVariable> Variables { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<CreativeTemplateVariable> |