---
schema_version: "1"
id: fc37604f0ae51e7a6d58677001f74a51676ea98342f3b1d66c73b5d50e11fc7f
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_platformContentContentArea.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformContentContentArea.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6f572c74275c106e3127c83f25a034d54945274a86dbe040333d245f2f7c4a77
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# ContentArea

Retrieve content from a specified content area.

## Syntax

ContentArea(1, 2, 3, 4)

## Function Properties

<!--complex table-->

| Ordinal | Type    |              | Description                                                                                                                                                                   |
| ------- | ------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **1**   | numeric | **Required** | ID for content area                                                                                                                                                           |
| **2**   | string  |              | Impression region for content                                                                                                                                                 |
| **3**   | Boolean |              | Indicates whether a call proceeds if it fails to retrieve content. A value of true returns an exception and terminates the call. A value of false allows the call to proceed. |
| **4**   | string  |              | Default content to display if the call does not return content from the specified content area                                                                                |

## Example

```
<script runat="server">
     var content = Platform.Function.ContentArea("123456","impressionRegion",false,"defaultContentHere");
</script>
```
