---
title: Custom attributes
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/custom-attributes/overview
---

## Custom attribute methods

| Method                                                                                                                                                  | Description                                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [nrSetCustomAttribute](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/custom-attributes/nrsetcustomattribute)         | Set a custom attribute to be included in the events.      |
| [nrSetCustomAttributeList](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/custom-attributes/nrsetcustomattributelist) | Set a custom attribute list to be included in the events. |

## Examples

### nrSetCustomAttribute

```js
  	nrSetCustomAttribute(m.nr, "myNum", 123, "CONTENT_START")
	  nrSetCustomAttribute(m.nr, "myString", "hello")
```

### nrSetCustomAttributeList

```js
  	attr = {"key0":"val0", "key1":"val1"}
	  nrSetCustomAttributeList(m.nr, attr, "CONTENT_HEARTBEAT")
```
