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 Network.

The Network resource.

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

## 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 Network. Format: networks/{network_code} |
| `↳ display_name` | `string` Optional. Display name for Network. |
| `↳ network_code` | `string` Output only. Network Code. |
| `↳ property_code` | `string` Output only. Property code. |
| `↳ time_zone` | `string` Output only. Time zone associated with the delivery of orders and reporting. |
| `↳ currency_code` | `string` Output only. Primary currency code, in ISO-4217 format. |
| `↳ secondary_currency_codes` | `string[]` Optional. Currency codes that can be used as an alternative to the primary currency code for trafficking Line Items. |
| `↳ effective_root_ad_unit` | `string` Output only. Top most [Ad Unit](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/google.ads.admanager.v1.AdUnit) to which descendant Ad Units can be added. Format: networks/{network_code}/adUnits/{ad_unit} |
| `↳ test_network` | `bool` Output only. Whether this is a test network. |
| `↳ network_id` | `int|string` Output only. Network ID. |

### getName

Identifier. The resource name of the Network.

Format: networks/{network_code}

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

### setName

Identifier. The resource name of the Network.

Format: networks/{network_code}

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

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

### getDisplayName

Optional. Display name for Network.

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

### hasDisplayName

### clearDisplayName

### setDisplayName

Optional. Display name for Network.

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

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

### getNetworkCode

Output only. Network Code.

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

### hasNetworkCode

### clearNetworkCode

### setNetworkCode

Output only. Network Code.

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

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

### getPropertyCode

Output only. Property code.

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

### hasPropertyCode

### clearPropertyCode

### setPropertyCode

Output only. Property code.

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

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

### getTimeZone

Output only. Time zone associated with the delivery of orders and
reporting.

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

### hasTimeZone

### clearTimeZone

### setTimeZone

Output only. Time zone associated with the delivery of orders and
reporting.

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

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

### getCurrencyCode

Output only. Primary currency code, in ISO-4217 format.

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

### hasCurrencyCode

### clearCurrencyCode

### setCurrencyCode

Output only. Primary currency code, in ISO-4217 format.

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

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

### getSecondaryCurrencyCodes

Optional. Currency codes that can be used as an alternative to the primary
currency code for trafficking Line Items.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setSecondaryCurrencyCodes

Optional. Currency codes that can be used as an alternative to the primary
currency code for trafficking Line Items.

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

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

### getEffectiveRootAdUnit

Output only. Top most [Ad Unit](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/google.ads.admanager.v1.AdUnit) to which
descendant Ad Units can be added.

Format: networks/{network_code}/adUnits/{ad_unit}

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

### hasEffectiveRootAdUnit

### clearEffectiveRootAdUnit

### setEffectiveRootAdUnit

Output only. Top most [Ad Unit](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/google.ads.admanager.v1.AdUnit) to which
descendant Ad Units can be added.

Format: networks/{network_code}/adUnits/{ad_unit}

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

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

### getTestNetwork

Output only. Whether this is a test network.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasTestNetwork

### clearTestNetwork

### setTestNetwork

Output only. Whether this is a test network.

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

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

### getNetworkId

Output only. Network ID.

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

### hasNetworkId

### clearNetworkId

### setNetworkId

Output only. Network ID.

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

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