0.15.1 (latest) 0.15.0 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 ThirdPartyDataDeclaration.

Represents a set of declarations about what (if any) third party companies
are associated with a given creative. This can also be set on the Network to
serve as a default for those creatives that don't have such field set.

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ declaration_type` | `int` Optional. The declaration about third party data usage on the associated entity. |
| `↳ third_party_companies` | `string[]` Optional. A list of ThirdPartyCompanies associated with this entity. Format: "networks/{network_code}/thirdPartyCompanies/{third_party_company}" |

### getDeclarationType

Optional. The declaration about third party data usage on the associated
entity.

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

### setDeclarationType

Optional. The declaration about third party data usage on the associated
entity.

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

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

### getThirdPartyCompanies

Optional. A list of ThirdPartyCompanies associated with this entity.

Format: "networks/{network_code}/thirdPartyCompanies/{third_party_company}"

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

### setThirdPartyCompanies

Optional. A list of ThirdPartyCompanies associated with this entity.

Format: "networks/{network_code}/thirdPartyCompanies/{third_party_company}"

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

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