Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 3.05 KB

NewCampaignTemplate.md

File metadata and controls

45 lines (38 loc) · 3.05 KB

TalonOne::NewCampaignTemplate

Properties

Name Type Description Notes
name String The campaign template name.
description String Customer-facing text that explains the objective of the template.
instructions String Customer-facing text that explains how to use the template. For example, you can use this property to explain the available attributes of this template, and how they can be modified when a user uses this template to create a new campaign.
campaign_attributes Object The campaign attributes that campaigns created from this template will have by default. [optional]
coupon_attributes Object The campaign attributes that coupons created from this template will have by default. [optional]
state String Only Campaign Templates in 'available' state may be used to create Campaigns.
tags Array<String> A list of tags for the campaign template. [optional]
features Array<String> A list of features for the campaign template. [optional]
coupon_settings CodeGeneratorSettings [optional]
referral_settings CodeGeneratorSettings [optional]
limits Array<TemplateLimitConfig> The set of limits that will operate for this campaign template. [optional]
template_params Array<CampaignTemplateParams> Fields which can be used to replace values in a rule. [optional]
campaign_collections Array<CampaignTemplateCollection> The campaign collections from the blueprint campaign for the template. [optional]
default_campaign_group_id Integer The default campaign group ID. [optional]
campaign_type String The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. [default to 'advanced']

Code Sample

require 'TalonOne'

instance = TalonOne::NewCampaignTemplate.new(name: null,
                                 description: null,
                                 instructions: null,
                                 campaign_attributes: null,
                                 coupon_attributes: null,
                                 state: null,
                                 tags: null,
                                 features: null,
                                 coupon_settings: null,
                                 referral_settings: null,
                                 limits: null,
                                 template_params: null,
                                 campaign_collections: null,
                                 default_campaign_group_id: 42,
                                 campaign_type: advanced)