Add

概要 

アカウントに新しいコンテンツ領域を追加し、初期化されたオブジェクトを返します。

構文 

Add(1)

関数のプロパティ 

序数説明
1object必須新しいコンテンツ領域のプロパティを表す JSON オブジェクト

例 

このサンプルコードは、アカウントにコンテンツ領域を追加します。

1var exampleArea = {
2    "CustomerKey" : "exampleArea",
3    "Name" : "SSJS Content Area Example",
4    "CategoryID" : 123456                            //Use only if you wish to assign the content area to a specific folder
5    "Layout" : "RawText",                            //Use only if you wish to create a specific layout format for a content area
6    "LayoutSpecified" : true,                        //Use only if you specify a layout type
7    "Content" : "<b>This is example content</b>"
8};
9
10var addedCA = ContentAreaObj.Add(exampleArea);