0.16.0 (latest) 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 Partner.

The [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner) resource.

Represents a publishing partner with established agreements to share
inventory and revenue based on assignments.
For more information, see [Add publishing partner assignments](https://support.google.com/admanager/answer/7032752).

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

## 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 [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). Format: `networks/{network_code}/partners/{partner_id}` |
| `↳ display_name` | `string` Required. The display name of the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). |
| `↳ address` | `string` Optional. The address for the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). This value has a maximum length of 1024 characters. |
| `↳ email` | `string` Optional. The email for the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). This value has a maximum length of 128 characters. |
| `↳ fax` | `string` Optional. The fax number for the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). This value has a maximum length of 63 characters. |
| `↳ phone` | `string` Optional. The phone number for the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). This value has a maximum length of 63 characters. |
| `↳ external_id` | `string` Optional. The external ID for the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). This value has a maximum length of 255 characters. |
| `↳ comment` | `string` Optional. Comments about the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). This value has a maximum length of 1024 characters. |
| `↳ applied_labels` | `array<https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.AppliedLabel>` Optional. The labels that are directly applied to the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). |
| `↳ primary_contact` | `string` Optional. The resource names of primary Contact of the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). Format: "networks/{network_code}/contacts/{contact_id}" |
| `↳ applied_teams` | `string[]` Optional. The resource names of Teams that are directly associated with the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). Format: "networks/{network_code}/teams/{team_id}" |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. The time the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner) was last updated. |
| `↳ credit_status` | `int` Optional. The credit status of the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). This attribute defaults to [CompanyCreditStatusEnum.CompanyCreditStatus.ACTIVE](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.CompanyCreditStatusEnum.CompanyCreditStatus#_Google_Ads_AdManager_V1_CompanyCreditStatusEnum_CompanyCreditStatus__ACTIVE) if basic settings are enabled and [CompanyCreditStatusEnum.CompanyCreditStatus.ON_HOLD](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.CompanyCreditStatusEnum.CompanyCreditStatus#_Google_Ads_AdManager_V1_CompanyCreditStatusEnum_CompanyCreditStatus__ON_HOLD) if advance settings are enabled. |

### getName

Identifier. The resource name of the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). Format:
`networks/{network_code}/partners/{partner_id}`

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

### setName

Identifier. The resource name of the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). Format:
`networks/{network_code}/partners/{partner_id}`

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

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

### getDisplayName

Required. The display name of the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

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

### hasDisplayName

### clearDisplayName

### setDisplayName

Required. The display name of the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

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

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

### getAddress

Optional. The address for the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This value has a maximum length of 1024 characters.

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

### hasAddress

### clearAddress

### setAddress

Optional. The address for the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This value has a maximum length of 1024 characters.

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

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

### getEmail

Optional. The email for the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This value has a maximum length of 128 characters.

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

### hasEmail

### clearEmail

### setEmail

Optional. The email for the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This value has a maximum length of 128 characters.

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

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

### getFax

Optional. The fax number for the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This value has a maximum length of 63 characters.

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

### hasFax

### clearFax

### setFax

Optional. The fax number for the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This value has a maximum length of 63 characters.

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

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

### getPhone

Optional. The phone number for the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This value has a maximum length of 63 characters.

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

### hasPhone

### clearPhone

### setPhone

Optional. The phone number for the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This value has a maximum length of 63 characters.

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

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

### getExternalId

Optional. The external ID for the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This value has a maximum length of 255 characters.

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

### hasExternalId

### clearExternalId

### setExternalId

Optional. The external ID for the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This value has a maximum length of 255 characters.

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

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

### getComment

Optional. Comments about the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This value has a maximum length of 1024 characters.

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

### hasComment

### clearComment

### setComment

Optional. Comments about the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This value has a maximum length of 1024 characters.

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

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

### getAppliedLabels

Optional. The labels that are directly applied to the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.AppliedLabel>` |   |

### setAppliedLabels

Optional. The labels that are directly applied to the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

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

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

### getPrimaryContact

Optional. The resource names of primary Contact of the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). Format:
"networks/{network_code}/contacts/{contact_id}"

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

### hasPrimaryContact

### clearPrimaryContact

### setPrimaryContact

Optional. The resource names of primary Contact of the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner). Format:
"networks/{network_code}/contacts/{contact_id}"

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

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

### getAppliedTeams

Optional. The resource names of Teams that are directly associated with the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

Format: "networks/{network_code}/teams/{team_id}"

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

### setAppliedTeams

Optional. The resource names of Teams that are directly associated with the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

Format: "networks/{network_code}/teams/{team_id}"

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

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

### getUpdateTime

Output only. The time the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner) was
last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time the [Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner) was
last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getCreditStatus

Optional. The credit status of the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This attribute defaults to
[CompanyCreditStatusEnum.CompanyCreditStatus.ACTIVE](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.CompanyCreditStatusEnum.CompanyCreditStatus#_Google_Ads_AdManager_V1_CompanyCreditStatusEnum_CompanyCreditStatus__ACTIVE)
if basic settings are enabled and
[CompanyCreditStatusEnum.CompanyCreditStatus.ON_HOLD](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.CompanyCreditStatusEnum.CompanyCreditStatus#_Google_Ads_AdManager_V1_CompanyCreditStatusEnum_CompanyCreditStatus__ON_HOLD)
if advance settings are enabled.

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

### hasCreditStatus

### clearCreditStatus

### setCreditStatus

Optional. The credit status of the
[Partner](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Partner).

This attribute defaults to
[CompanyCreditStatusEnum.CompanyCreditStatus.ACTIVE](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.CompanyCreditStatusEnum.CompanyCreditStatus#_Google_Ads_AdManager_V1_CompanyCreditStatusEnum_CompanyCreditStatus__ACTIVE)
if basic settings are enabled and
[CompanyCreditStatusEnum.CompanyCreditStatus.ON_HOLD](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.CompanyCreditStatusEnum.CompanyCreditStatus#_Google_Ads_AdManager_V1_CompanyCreditStatusEnum_CompanyCreditStatus__ON_HOLD)
if advance settings are enabled.

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

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