0.17.0 (latest) 0.16.0 0.15.1 0.14.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.1 0.3.1 0.2.0 0.1.3 Reference documentation and code samples for the Google Ads Ad Manager V1 Client class WebProperty.

Represents a web property.

Generated from protobuf message `google.ads.admanager.v1.WebProperty`

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the WebProperty. Format: `networks/{network_code}/webProperties/{web_property_code}` |
| `↳ web_property_code` | `string` Required. The `WebProperty` code. |
| `↳ product_type` | `int` Required. The ExchangeSyndicationProduct associated with this WebProperty. |
| `↳ web_property_id` | `int|string` Optional. The `WebProperty` ID. |

### getName

Identifier. The resource name of the WebProperty.

Format:
`networks/{network_code}/webProperties/{web_property_code}`

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

### setName

Identifier. The resource name of the WebProperty.

Format:
`networks/{network_code}/webProperties/{web_property_code}`

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

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

### getWebPropertyCode

Required. The `WebProperty` code.

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

### setWebPropertyCode

Required. The `WebProperty` code.

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

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

### getProductType

Required. The ExchangeSyndicationProduct associated with this WebProperty.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ExchangeSyndicationProduct](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct.md.txt). |

### setProductType

Required. The ExchangeSyndicationProduct associated with this WebProperty.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ExchangeSyndicationProduct](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ExchangeSyndicationProductEnum.ExchangeSyndicationProduct.md.txt). |

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

### getWebPropertyId

Optional. The `WebProperty` ID.

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

### setWebPropertyId

Optional. The `WebProperty` ID.

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

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