# Google Ads Data Manager V1 Client - Class MarketingDataInsight (0.5.0)

0.5.0 (latest) 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Google Ads Data Manager V1 Client class MarketingDataInsight.

Insights for marketing data.

This feature is only available to data partners.

Generated from protobuf message `google.ads.datamanager.v1.RetrieveInsightsResponse.MarketingDataInsight`

## Namespace

Google \\ Ads \\ DataManager \\ V1 \\ RetrieveInsightsResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ dimension` | `int` The dimension to which the insight belongs. |
| `↳ attributes` | `array<https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute>` Insights for values of a given dimension. |

### getDimension

The dimension to which the insight belongs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AudienceInsightsDimension](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.RetrieveInsightsResponse.MarketingDataInsight.AudienceInsightsDimension). |

### setDimension

The dimension to which the insight belongs.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AudienceInsightsDimension](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.RetrieveInsightsResponse.MarketingDataInsight.AudienceInsightsDimension). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAttributes

Insights for values of a given dimension.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute>` |   |

### setAttributes

Insights for values of a given dimension.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.RetrieveInsightsResponse.MarketingDataInsight.MarketingDataInsightsAttribute>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |