Add
Remove
Retrieve
Update
アカウントに新しいコンテンツ領域を追加し、初期化されたオブジェクトを返します。
Add(1)
| 序数 | 型 | 説明 | |
|---|---|---|---|
| 1 | object | 必須 | 新しいコンテンツ領域のプロパティを表す 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);