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

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

Represents a third-party company used to measure creative viewability.

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

## 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 [ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider). Format: `networks/{network_code}/viewabilityProviders/{viewability_provider}` |
| `↳ display_name` | `string` Required. The display name of the [ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider). |
| `↳ vendor_key` | `string` Required. The key for the [ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider). |
| `↳ verification_script_url` | `string` Required. The URL that hosts the verification script for the [ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider). |
| `↳ verification_script_url_parameters` | `string` Optional. The URL parameters that will be passed to the verification script. |
| `↳ rejection_tracker_url` | `string` Optional. The URL that should be pinged if the verification script cannot be run. |
| `↳ address` | `string` Optional. The address of the [ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider). |
| `↳ email` | `string` Optional. The email of the [ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider). |
| `↳ fax` | `string` Optional. The fax number of the [ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider). |
| `↳ phone` | `string` Optional. The phone number of the [ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider). |
| `↳ external_id` | `string` Optional. The external ID of the [ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider). |
| `↳ comment` | `string` Optional. Comment about the [ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider). |
| `↳ primary_contact` | `string` Optional. The resource name of primary Contact of the [ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider). Format: "networks/{network_code}/contacts/{contact_id}" |
| `↳ applied_teams` | `string[]` Optional. The resource names of Teams that are directly associated with the [ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider). Format: "networks/{network_code}/teams/{team_id}" |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. The time the [ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider) was last updated. |

### getName

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

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

### setName

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

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

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

### getDisplayName

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

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

### hasDisplayName

### clearDisplayName

### setDisplayName

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

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

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

### getVendorKey

Required. The key for the
[ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider).

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

### hasVendorKey

### clearVendorKey

### setVendorKey

Required. The key for the
[ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider).

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

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

### getVerificationScriptUrl

Required. The URL that hosts the verification script for the
[ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider).

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

### hasVerificationScriptUrl

### clearVerificationScriptUrl

### setVerificationScriptUrl

Required. The URL that hosts the verification script for the
[ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider).

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

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

### getVerificationScriptUrlParameters

Optional. The URL parameters that will be passed to the verification
script.

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

### hasVerificationScriptUrlParameters

### clearVerificationScriptUrlParameters

### setVerificationScriptUrlParameters

Optional. The URL parameters that will be passed to the verification
script.

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

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

### getRejectionTrackerUrl

Optional. The URL that should be pinged if the verification script cannot
be run.

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

### hasRejectionTrackerUrl

### clearRejectionTrackerUrl

### setRejectionTrackerUrl

Optional. The URL that should be pinged if the verification script cannot
be run.

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

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

### getAddress

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

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

### hasAddress

### clearAddress

### setAddress

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

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

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

### getEmail

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

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

### hasEmail

### clearEmail

### setEmail

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

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

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

### getFax

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

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

### hasFax

### clearFax

### setFax

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

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

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

### getPhone

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

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

### hasPhone

### clearPhone

### setPhone

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

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

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

### getExternalId

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

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

### hasExternalId

### clearExternalId

### setExternalId

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

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

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

### getComment

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

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

### hasComment

### clearComment

### setComment

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

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

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

### getPrimaryContact

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

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

### hasPrimaryContact

### clearPrimaryContact

### setPrimaryContact

Optional. The resource name of primary Contact of the
[ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider). 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
[ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider).

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
[ViewabilityProvider](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ViewabilityProvider).

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

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

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

### getUpdateTime

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

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

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

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

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