# Google Ads Marketing Platform Admin V1alpha Client - Class PropertyUsage (0.4.2)

0.4.2 (latest) 0.4.1 0.3.1 0.2.1 0.1.4

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Ads Marketing Platform Admin V1alpha Client class PropertyUsage.

Contains the count of events received by the property, along with metadata
that influences the volume of `billable` events.

Generated from protobuf message `google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse.PropertyUsage`

## Namespace

Google \\ Ads \\ MarketingPlatform \\ Admin \\ V1alpha \\ ReportPropertyUsageResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ property` | `string` The name of the Google Analytics Admin API property resource. Format: analyticsadmin.googleapis.com/properties/{property_id} |
| `↳ display_name` | `string` The display name of the property. |
| `↳ account_id` | `int|string` The ID of the property's parent account. |
| `↳ service_level` | `int` The service level of the property. |
| `↳ property_type` | `int` The subtype of the analytics property. This affects the billable event count. |
| `↳ total_event_count` | `int|string` Total event count that the property received during the requested month. |
| `↳ billable_event_count` | `int|string` The number of events for which the property is billed in the requested month. |

### getProperty

The name of the Google Analytics Admin API property resource.

Format: analyticsadmin.googleapis.com/properties/{property_id}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setProperty

The name of the Google Analytics Admin API property resource.

Format: analyticsadmin.googleapis.com/properties/{property_id}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getDisplayName

The display name of the property.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

The display name of the property.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getAccountId

The ID of the property's parent account.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setAccountId

The ID of the property's parent account.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

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

### getServiceLevel

The service level of the property.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AnalyticsServiceLevel](https://docs.cloud.google.com/php/docs/reference/marketingplatform-admin/latest/V1alpha.AnalyticsServiceLevel). |

### setServiceLevel

The service level of the property.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AnalyticsServiceLevel](https://docs.cloud.google.com/php/docs/reference/marketingplatform-admin/latest/V1alpha.AnalyticsServiceLevel). |

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

### getPropertyType

The subtype of the analytics property. This affects the billable event
count.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AnalyticsPropertyType](https://docs.cloud.google.com/php/docs/reference/marketingplatform-admin/latest/V1alpha.AnalyticsPropertyType). |

### setPropertyType

The subtype of the analytics property. This affects the billable event
count.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AnalyticsPropertyType](https://docs.cloud.google.com/php/docs/reference/marketingplatform-admin/latest/V1alpha.AnalyticsPropertyType). |

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

### getTotalEventCount

Total event count that the property received during the requested month.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setTotalEventCount

Total event count that the property received during the requested month.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

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

### getBillableEventCount

The number of events for which the property is billed in the requested
month.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setBillableEventCount

The number of events for which the property is billed in the requested
month.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

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