---
schema_version: "1"
id: 1fd6d609e73fd0a6fbaf193d5ae937a2b255a6c0e410a514cafca701ec6453f8
title: ContentArea
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_utilitiesContentArea.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_utilitiesContentArea.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8b424497d7d52ecbdd80c8186992bbcead878a9e6f8913cec1ec239e58a948c1
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# ContentArea

## Overview

Returns the content stored in the content area specified by its ID

### Syntax

ContentArea(1, 2, 3, 4)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                                                        |
| ------- | ------ | ------------ | ------------------------------------------------------------------ |
| **1**   | string | **Required** | ID of specified content area                                       |
| **2**   | string | **Required** | Name of any impression region contained in content area            |
| **3**   | string | **Required** | Error message to deliver when the function can’t return content    |
| **4**   | string | **Required** | Content area to display when the function can’t find other content |

## Example

In this sample code, the variable gets the information from the specified content area. The content is not written to the email or landing page you create. Instead, the content resides in the variable for use as any other string:

```
var myContent = ContentArea(12345);
```
