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

Service Description: Provides methods for handling `Proposal` objects.

This class provides the ability to make remote calls to the backing service through method
calls that map to API methods.

Many parameters require resource names to be formatted in a particular way. To
assist with these names, this class includes a format method for each type of
name, and additionally a parseName method to extract the individual identifiers
contained within formatted names that are returned by the API.

## Namespace

Google \\ Ads \\ AdManager \\ V1 \\ Client

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `options` | `array|Google\ApiCore\Options\ClientOptions` Optional. Options for configuring the service API wrapper. |
| `↳ apiEndpoint` | `string` The address of the API remote host. May optionally include the port, formatted as " |
| `↳ credentials` | `Google\Auth\FetchAuthTokenInterface|Google\ApiCore\CredentialsWrapper` This option should only be used with a pre-constructed [Google\\Auth\\FetchAuthTokenInterface](https://docs.cloud.google.com/php/docs/reference/auth/latest/FetchAuthTokenInterface.md.txt) or [Google\\ApiCore\\CredentialsWrapper](https://docs.cloud.google.com/php/docs/reference/gax/latest/CredentialsWrapper.md.txt) object. Note that when one of these objects are provided, any settings in $credentialsConfig will be ignored. **Important** : If you are providing a path to a credentials file, or a decoded credentials file as a PHP array, this usage is now DEPRECATED. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. It is recommended to create the credentials explicitly `use Google\Auth\Credentials\ServiceAccountCredentials; use Google\Ads\AdManager\V1\ProposalServiceClient; $creds = new ServiceAccountCredentials($scopes, $json); $options = new ProposalServiceClient(['credentials' => $creds]);` <https://cloud.google.com/docs/authentication/external/externally-sourced-credentials> |
| `↳ credentialsConfig` | `array` Options used to configure credentials, including auth token caching, for the client. For a full list of supporting configuration options, see [Google\\ApiCore\\CredentialsWrapper::build()](https://docs.cloud.google.com/php/docs/reference/gax/latest/CredentialsWrapper.md.txt#_Google_ApiCore_CredentialsWrapper__build__) . |
| `↳ disableRetries` | `bool` Determines whether or not retries defined by the client configuration should be disabled. Defaults to `false`. |
| `↳ clientConfig` | `string|array` Client method configuration, including retry settings. This option can be either a path to a JSON file, or a PHP array containing the decoded JSON data. By default this settings points to the default client config file, which is provided in the resources folder. |
| `↳ transport` | `string|Google\ApiCore\Transport\TransportInterface` The transport used for executing network requests. At the moment, supports only `rest`. *Advanced usage* : Additionally, it is possible to pass in an already instantiated [Google\\ApiCore\\Transport\\TransportInterface](https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.TransportInterface.md.txt) object. Note that when this object is provided, any settings in $transportConfig, and any $apiEndpoint setting, will be ignored. |
| `↳ transportConfig` | `array` Configuration options that will be used to construct the transport. Options for each supported transport type should be passed in a key for that transport. For example: $transportConfig = \[ 'rest' =\> \[...\], \]; See the [Google\\ApiCore\\Transport\\RestTransport::build()](https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.RestTransport.md.txt#_Google_ApiCore_Transport_RestTransport__build__) method for the supported options. |
| `↳ clientCertSource` | `callable` A callable which returns the client cert as a string. This can be used to provide a certificate and private key to the transport layer for mTLS. |
| `↳ logger` | `false|Psr\Log\LoggerInterface` A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the 'GOOGLE_SDK_PHP_LOGGING' environment flag |
| `↳ universeDomain` | `string` The service domain for the client. Defaults to 'googleapis.com'. |

### batchArchiveProposals

Archives `Proposal` objects.

The async variant is [ProposalServiceClient::batchArchiveProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__batchArchiveProposalsAsync__)
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchArchiveProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\BatchArchiveProposalsResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\BatchArchiveProposalsRequest;
use Google\Ads\AdManager\V1\BatchArchiveProposalsResponse;
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent       The parent resource where proposals will be archived.
 *                                      Format: `networks/{network_code}`
 *                                      Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $formattedNamesElement The resource names of the Proposals to archive.
 *                                      Format: `networks/{network_code}/proposals/{proposal_id}`
 *                                      Please see {@see ProposalServiceClient::proposalName()} for help formatting this field.
 */
function batch_archive_proposals_sample(
    string $formattedParent,
    string $formattedNamesElement
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $formattedNames = [$formattedNamesElement];
    $request = (new BatchArchiveProposalsRequest())
        ->setParent($formattedParent)
        ->setNames($formattedNames);

    // Call the API and handle any network failures.
    try {
        /** @var BatchArchiveProposalsResponse $response */
        $response = $proposalServiceClient->batchArchiveProposals($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $formattedNamesElement = ProposalServiceClient::proposalName('[NETWORK_CODE]', '[PROPOSAL]');

    batch_archive_proposals_sample($formattedParent, $formattedNamesElement);
}
```

### batchCreateProposals

Creates `Proposal` objects.

The async variant is [ProposalServiceClient::batchCreateProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__batchCreateProposalsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchCreateProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\BatchCreateProposalsResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\BatchCreateProposalsRequest;
use Google\Ads\AdManager\V1\BatchCreateProposalsResponse;
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\Ads\AdManager\V1\CreateProposalRequest;
use Google\Ads\AdManager\V1\Proposal;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent                     The parent resource where `Proposals` will be created.
 *                                                    Format: `networks/{network_code}`
 *                                                    The parent field in the CreateProposalRequest must match this
 *                                                    field. Please see
 *                                                    {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $formattedRequestsParent             The parent resource where this `Proposal` will be created.
 *                                                    Format: `networks/{network_code}`
 *                                                    Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $requestsProposalDisplayName         The display name of the Proposal. This value has a maximum length
 *                                                    of 255 characters. This value is copied to
 *                                                    [Order.displayName][google.ads.admanager.v1.Order.display_name] when the
 *                                                    proposal turns into an order.
 * @param string $formattedRequestsProposalAdvertiser The resource name of the
 *                                                    [Company][google.ads.admanager.v1.Company] of type
 *                                                    [ADVERTISER][google.ads.admanager.v1.CompanyTypeEnum.CompanyType.ADVERTISER]
 *                                                    to which this Proposal belongs. This attribute is required when the
 *                                                    proposal turns into an order, and will be copied to
 *                                                    [Order.advertiser][google.ads.admanager.v1.Order.advertiser].  This
 *                                                    attribute becomes read-only once the Proposal has been pushed. Format:
 *                                                    `networks/{network_code}/companies/{company_id}`
 *                                                    Please see {@see ProposalServiceClient::companyName()} for help formatting this field.
 */
function batch_create_proposals_sample(
    string $formattedParent,
    string $formattedRequestsParent,
    string $requestsProposalDisplayName,
    string $formattedRequestsProposalAdvertiser
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $requestsProposal = (new Proposal())
        ->setDisplayName($requestsProposalDisplayName)
        ->setAdvertiser($formattedRequestsProposalAdvertiser);
    $createProposalRequest = (new CreateProposalRequest())
        ->setParent($formattedRequestsParent)
        ->setProposal($requestsProposal);
    $requests = [$createProposalRequest];
    $request = (new BatchCreateProposalsRequest())
        ->setParent($formattedParent)
        ->setRequests($requests);

    // Call the API and handle any network failures.
    try {
        /** @var BatchCreateProposalsResponse $response */
        $response = $proposalServiceClient->batchCreateProposals($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $formattedRequestsParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $requestsProposalDisplayName = '[DISPLAY_NAME]';
    $formattedRequestsProposalAdvertiser = ProposalServiceClient::companyName(
        '[NETWORK_CODE]',
        '[COMPANY]'
    );

    batch_create_proposals_sample(
        $formattedParent,
        $formattedRequestsParent,
        $requestsProposalDisplayName,
        $formattedRequestsProposalAdvertiser
    );
}
```

### batchDiscardDraftProposals

Discards drafts, or revert local modifications, of `Proposal` objects.

The async variant is
[ProposalServiceClient::batchDiscardDraftProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__batchDiscardDraftProposalsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchDiscardDraftProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\BatchDiscardDraftProposalsResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\BatchDiscardDraftProposalsRequest;
use Google\Ads\AdManager\V1\BatchDiscardDraftProposalsResponse;
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent       The parent resource where proposals will be discarded.
 *                                      Format: `networks/{network_code}`
 *                                      Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $formattedNamesElement The resource names of the Proposals to discard.
 *                                      Format: `networks/{network_code}/proposals/{proposal_id}`
 *                                      Please see {@see ProposalServiceClient::proposalName()} for help formatting this field.
 */
function batch_discard_draft_proposals_sample(
    string $formattedParent,
    string $formattedNamesElement
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $formattedNames = [$formattedNamesElement];
    $request = (new BatchDiscardDraftProposalsRequest())
        ->setParent($formattedParent)
        ->setNames($formattedNames);

    // Call the API and handle any network failures.
    try {
        /** @var BatchDiscardDraftProposalsResponse $response */
        $response = $proposalServiceClient->batchDiscardDraftProposals($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $formattedNamesElement = ProposalServiceClient::proposalName('[NETWORK_CODE]', '[PROPOSAL]');

    batch_discard_draft_proposals_sample($formattedParent, $formattedNamesElement);
}
```

### batchPauseProposals

Pauses `Proposal` objects.

The async variant is [ProposalServiceClient::batchPauseProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__batchPauseProposalsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchPauseProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\BatchPauseProposalsResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\BatchPauseProposalsRequest;
use Google\Ads\AdManager\V1\BatchPauseProposalsResponse;
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent       The parent resource where proposals will be paused.
 *                                      Format: `networks/{network_code}`
 *                                      Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $formattedNamesElement The resource names of the Proposals to pause.
 *                                      Format: `networks/{network_code}/proposals/{proposal_id}`
 *                                      Please see {@see ProposalServiceClient::proposalName()} for help formatting this field.
 * @param string $reason                The reason for pausing the Proposals.
 */
function batch_pause_proposals_sample(
    string $formattedParent,
    string $formattedNamesElement,
    string $reason
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $formattedNames = [$formattedNamesElement];
    $request = (new BatchPauseProposalsRequest())
        ->setParent($formattedParent)
        ->setNames($formattedNames)
        ->setReason($reason);

    // Call the API and handle any network failures.
    try {
        /** @var BatchPauseProposalsResponse $response */
        $response = $proposalServiceClient->batchPauseProposals($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $formattedNamesElement = ProposalServiceClient::proposalName('[NETWORK_CODE]', '[PROPOSAL]');
    $reason = '[REASON]';

    batch_pause_proposals_sample($formattedParent, $formattedNamesElement, $reason);
}
```

### batchPushToOrderProposals

Push changes on `Proposal`s to corresponding `Order`s, after negotiations
have been finalized.

The async variant is
[ProposalServiceClient::batchPushToOrderProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__batchPushToOrderProposalsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchPushToOrderProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\BatchPushToOrderProposalsResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\BatchPushToOrderProposalsRequest;
use Google\Ads\AdManager\V1\BatchPushToOrderProposalsResponse;
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent       The parent resource where proposals will be pushed to order.
 *                                      Format: `networks/{network_code}`
 *                                      Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $formattedNamesElement The resource names of the Proposals to push to order.
 *                                      Format: `networks/{network_code}/proposals/{proposal_id}`
 *                                      Please see {@see ProposalServiceClient::proposalName()} for help formatting this field.
 */
function batch_push_to_order_proposals_sample(
    string $formattedParent,
    string $formattedNamesElement
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $formattedNames = [$formattedNamesElement];
    $request = (new BatchPushToOrderProposalsRequest())
        ->setParent($formattedParent)
        ->setNames($formattedNames);

    // Call the API and handle any network failures.
    try {
        /** @var BatchPushToOrderProposalsResponse $response */
        $response = $proposalServiceClient->batchPushToOrderProposals($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $formattedNamesElement = ProposalServiceClient::proposalName('[NETWORK_CODE]', '[PROPOSAL]');

    batch_push_to_order_proposals_sample($formattedParent, $formattedNamesElement);
}
```

### batchRedraftProposals

Redrafts `Proposal` objects for negotiation.

The async variant is [ProposalServiceClient::batchRedraftProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__batchRedraftProposalsAsync__)
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchRedraftProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\BatchRedraftProposalsResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\BatchRedraftProposalsRequest;
use Google\Ads\AdManager\V1\BatchRedraftProposalsResponse;
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent       The parent resource where proposals will be redrafted.
 *                                      Format: `networks/{network_code}`
 *                                      Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $formattedNamesElement The resource names of the Proposals to redraft.
 *                                      Format: `networks/{network_code}/proposals/{proposal_id}`
 *                                      Please see {@see ProposalServiceClient::proposalName()} for help formatting this field.
 */
function batch_redraft_proposals_sample(
    string $formattedParent,
    string $formattedNamesElement
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $formattedNames = [$formattedNamesElement];
    $request = (new BatchRedraftProposalsRequest())
        ->setParent($formattedParent)
        ->setNames($formattedNames);

    // Call the API and handle any network failures.
    try {
        /** @var BatchRedraftProposalsResponse $response */
        $response = $proposalServiceClient->batchRedraftProposals($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $formattedNamesElement = ProposalServiceClient::proposalName('[NETWORK_CODE]', '[PROPOSAL]');

    batch_redraft_proposals_sample($formattedParent, $formattedNamesElement);
}
```

### batchRequestBuyerAcceptProposals

Requests buyer acceptance for `Proposal` objects.

The async variant is
[ProposalServiceClient::batchRequestBuyerAcceptProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__batchRequestBuyerAcceptProposalsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchRequestBuyerAcceptProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\BatchRequestBuyerAcceptProposalsResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\BatchRequestBuyerAcceptProposalsRequest;
use Google\Ads\AdManager\V1\BatchRequestBuyerAcceptProposalsResponse;
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent       The parent resource where proposals will be accepted.
 *                                      Format: `networks/{network_code}`
 *                                      Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $formattedNamesElement The resource names of the Proposals to request buyer accept.
 *                                      Format: `networks/{network_code}/proposals/{proposal_id}`
 *                                      Please see {@see ProposalServiceClient::proposalName()} for help formatting this field.
 */
function batch_request_buyer_accept_proposals_sample(
    string $formattedParent,
    string $formattedNamesElement
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $formattedNames = [$formattedNamesElement];
    $request = (new BatchRequestBuyerAcceptProposalsRequest())
        ->setParent($formattedParent)
        ->setNames($formattedNames);

    // Call the API and handle any network failures.
    try {
        /** @var BatchRequestBuyerAcceptProposalsResponse $response */
        $response = $proposalServiceClient->batchRequestBuyerAcceptProposals($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $formattedNamesElement = ProposalServiceClient::proposalName('[NETWORK_CODE]', '[PROPOSAL]');

    batch_request_buyer_accept_proposals_sample($formattedParent, $formattedNamesElement);
}
```

### batchRequestBuyerReviewProposals

Requests buyer review for `Proposal` objects.

The async variant is
[ProposalServiceClient::batchRequestBuyerReviewProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__batchRequestBuyerReviewProposalsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchRequestBuyerReviewProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\BatchRequestBuyerReviewProposalsResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\BatchRequestBuyerReviewProposalsRequest;
use Google\Ads\AdManager\V1\BatchRequestBuyerReviewProposalsResponse;
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent       The parent resource where proposals will be reviewed.
 *                                      Format: `networks/{network_code}`
 *                                      Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $formattedNamesElement The resource names of the Proposals to request buyer review.
 *                                      Format: `networks/{network_code}/proposals/{proposal_id}`
 *                                      Please see {@see ProposalServiceClient::proposalName()} for help formatting this field.
 */
function batch_request_buyer_review_proposals_sample(
    string $formattedParent,
    string $formattedNamesElement
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $formattedNames = [$formattedNamesElement];
    $request = (new BatchRequestBuyerReviewProposalsRequest())
        ->setParent($formattedParent)
        ->setNames($formattedNames);

    // Call the API and handle any network failures.
    try {
        /** @var BatchRequestBuyerReviewProposalsResponse $response */
        $response = $proposalServiceClient->batchRequestBuyerReviewProposals($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $formattedNamesElement = ProposalServiceClient::proposalName('[NETWORK_CODE]', '[PROPOSAL]');

    batch_request_buyer_review_proposals_sample($formattedParent, $formattedNamesElement);
}
```

### batchReserveProposals

Reserves inventory for `Proposal` objects.

The async variant is [ProposalServiceClient::batchReserveProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__batchReserveProposalsAsync__)
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchReserveProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\BatchReserveProposalsResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\BatchReserveProposalsRequest;
use Google\Ads\AdManager\V1\BatchReserveProposalsResponse;
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent       The parent resource where proposals will be reserved.
 *                                      Format: `networks/{network_code}`
 *                                      Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $formattedNamesElement The resource names of the Proposals to reserve.
 *                                      Format: `networks/{network_code}/proposals/{proposal_id}`
 *                                      Please see {@see ProposalServiceClient::proposalName()} for help formatting this field.
 */
function batch_reserve_proposals_sample(
    string $formattedParent,
    string $formattedNamesElement
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $formattedNames = [$formattedNamesElement];
    $request = (new BatchReserveProposalsRequest())
        ->setParent($formattedParent)
        ->setNames($formattedNames);

    // Call the API and handle any network failures.
    try {
        /** @var BatchReserveProposalsResponse $response */
        $response = $proposalServiceClient->batchReserveProposals($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $formattedNamesElement = ProposalServiceClient::proposalName('[NETWORK_CODE]', '[PROPOSAL]');

    batch_reserve_proposals_sample($formattedParent, $formattedNamesElement);
}
```

### batchResumeProposals

Resumes `Proposal` objects.

The async variant is [ProposalServiceClient::batchResumeProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__batchResumeProposalsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchResumeProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\BatchResumeProposalsResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\BatchResumeProposalsRequest;
use Google\Ads\AdManager\V1\BatchResumeProposalsResponse;
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent       The parent resource where proposals will be resumed.
 *                                      Format: `networks/{network_code}`
 *                                      Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $formattedNamesElement The resource names of the Proposals to resume.
 *                                      Format: `networks/{network_code}/proposals/{proposal_id}`
 *                                      Please see {@see ProposalServiceClient::proposalName()} for help formatting this field.
 */
function batch_resume_proposals_sample(
    string $formattedParent,
    string $formattedNamesElement
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $formattedNames = [$formattedNamesElement];
    $request = (new BatchResumeProposalsRequest())
        ->setParent($formattedParent)
        ->setNames($formattedNames);

    // Call the API and handle any network failures.
    try {
        /** @var BatchResumeProposalsResponse $response */
        $response = $proposalServiceClient->batchResumeProposals($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $formattedNamesElement = ProposalServiceClient::proposalName('[NETWORK_CODE]', '[PROPOSAL]');

    batch_resume_proposals_sample($formattedParent, $formattedNamesElement);
}
```

### batchTerminateProposals

Terminates negotiation on `Proposal` objects.

The async variant is
[ProposalServiceClient::batchTerminateProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__batchTerminateProposalsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchTerminateProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\BatchTerminateProposalsResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\BatchTerminateProposalsRequest;
use Google\Ads\AdManager\V1\BatchTerminateProposalsResponse;
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent       The parent resource where proposals will be terminated.
 *                                      Format: `networks/{network_code}`
 *                                      Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $formattedNamesElement The resource names of the Proposals to terminate.
 *                                      Format: `networks/{network_code}/proposals/{proposal_id}`
 *                                      Please see {@see ProposalServiceClient::proposalName()} for help formatting this field.
 */
function batch_terminate_proposals_sample(
    string $formattedParent,
    string $formattedNamesElement
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $formattedNames = [$formattedNamesElement];
    $request = (new BatchTerminateProposalsRequest())
        ->setParent($formattedParent)
        ->setNames($formattedNames);

    // Call the API and handle any network failures.
    try {
        /** @var BatchTerminateProposalsResponse $response */
        $response = $proposalServiceClient->batchTerminateProposals($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $formattedNamesElement = ProposalServiceClient::proposalName('[NETWORK_CODE]', '[PROPOSAL]');

    batch_terminate_proposals_sample($formattedParent, $formattedNamesElement);
}
```

### batchUnarchiveProposals

Unarchives `Proposal` objects.

The async variant is
[ProposalServiceClient::batchUnarchiveProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__batchUnarchiveProposalsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchUnarchiveProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\BatchUnarchiveProposalsResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\BatchUnarchiveProposalsRequest;
use Google\Ads\AdManager\V1\BatchUnarchiveProposalsResponse;
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent       The parent resource where proposals will be unarchived.
 *                                      Format: `networks/{network_code}`
 *                                      Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $formattedNamesElement The resource names of the Proposals to unarchive.
 *                                      Format: `networks/{network_code}/proposals/{proposal_id}`
 *                                      Please see {@see ProposalServiceClient::proposalName()} for help formatting this field.
 */
function batch_unarchive_proposals_sample(
    string $formattedParent,
    string $formattedNamesElement
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $formattedNames = [$formattedNamesElement];
    $request = (new BatchUnarchiveProposalsRequest())
        ->setParent($formattedParent)
        ->setNames($formattedNames);

    // Call the API and handle any network failures.
    try {
        /** @var BatchUnarchiveProposalsResponse $response */
        $response = $proposalServiceClient->batchUnarchiveProposals($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $formattedNamesElement = ProposalServiceClient::proposalName('[NETWORK_CODE]', '[PROPOSAL]');

    batch_unarchive_proposals_sample($formattedParent, $formattedNamesElement);
}
```

### batchUpdateProposals

Batch updates `Proposal` objects.

The async variant is [ProposalServiceClient::batchUpdateProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__batchUpdateProposalsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchUpdateProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\BatchUpdateProposalsResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\BatchUpdateProposalsRequest;
use Google\Ads\AdManager\V1\BatchUpdateProposalsResponse;
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\Ads\AdManager\V1\Proposal;
use Google\Ads\AdManager\V1\UpdateProposalRequest;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent                     The parent resource where `Proposals` will be updated.
 *                                                    Format: `networks/{network_code}`
 *                                                    The parent field in the UpdateProposalRequest must match this
 *                                                    field. Please see
 *                                                    {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $requestsProposalDisplayName         The display name of the Proposal. This value has a maximum length
 *                                                    of 255 characters. This value is copied to
 *                                                    [Order.displayName][google.ads.admanager.v1.Order.display_name] when the
 *                                                    proposal turns into an order.
 * @param string $formattedRequestsProposalAdvertiser The resource name of the
 *                                                    [Company][google.ads.admanager.v1.Company] of type
 *                                                    [ADVERTISER][google.ads.admanager.v1.CompanyTypeEnum.CompanyType.ADVERTISER]
 *                                                    to which this Proposal belongs. This attribute is required when the
 *                                                    proposal turns into an order, and will be copied to
 *                                                    [Order.advertiser][google.ads.admanager.v1.Order.advertiser].  This
 *                                                    attribute becomes read-only once the Proposal has been pushed. Format:
 *                                                    `networks/{network_code}/companies/{company_id}`
 *                                                    Please see {@see ProposalServiceClient::companyName()} for help formatting this field.
 */
function batch_update_proposals_sample(
    string $formattedParent,
    string $requestsProposalDisplayName,
    string $formattedRequestsProposalAdvertiser
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $requestsProposal = (new Proposal())
        ->setDisplayName($requestsProposalDisplayName)
        ->setAdvertiser($formattedRequestsProposalAdvertiser);
    $updateProposalRequest = (new UpdateProposalRequest())
        ->setProposal($requestsProposal);
    $requests = [$updateProposalRequest];
    $request = (new BatchUpdateProposalsRequest())
        ->setParent($formattedParent)
        ->setRequests($requests);

    // Call the API and handle any network failures.
    try {
        /** @var BatchUpdateProposalsResponse $response */
        $response = $proposalServiceClient->batchUpdateProposals($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $requestsProposalDisplayName = '[DISPLAY_NAME]';
    $formattedRequestsProposalAdvertiser = ProposalServiceClient::companyName(
        '[NETWORK_CODE]',
        '[COMPANY]'
    );

    batch_update_proposals_sample(
        $formattedParent,
        $requestsProposalDisplayName,
        $formattedRequestsProposalAdvertiser
    );
}
```

### createProposal

Creates a `Proposal` object.

The async variant is [ProposalServiceClient::createProposalAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__createProposalAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\CreateProposalRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\Proposal` |   |

**Example**

```php
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\Ads\AdManager\V1\CreateProposalRequest;
use Google\Ads\AdManager\V1\Proposal;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedParent             The parent resource where this `Proposal` will be created.
 *                                            Format: `networks/{network_code}`
 *                                            Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $proposalDisplayName         The display name of the Proposal. This value has a maximum length
 *                                            of 255 characters. This value is copied to
 *                                            [Order.displayName][google.ads.admanager.v1.Order.display_name] when the
 *                                            proposal turns into an order.
 * @param string $formattedProposalAdvertiser The resource name of the
 *                                            [Company][google.ads.admanager.v1.Company] of type
 *                                            [ADVERTISER][google.ads.admanager.v1.CompanyTypeEnum.CompanyType.ADVERTISER]
 *                                            to which this Proposal belongs. This attribute is required when the
 *                                            proposal turns into an order, and will be copied to
 *                                            [Order.advertiser][google.ads.admanager.v1.Order.advertiser].  This
 *                                            attribute becomes read-only once the Proposal has been pushed. Format:
 *                                            `networks/{network_code}/companies/{company_id}`
 *                                            Please see {@see ProposalServiceClient::companyName()} for help formatting this field.
 */
function create_proposal_sample(
    string $formattedParent,
    string $proposalDisplayName,
    string $formattedProposalAdvertiser
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $proposal = (new Proposal())
        ->setDisplayName($proposalDisplayName)
        ->setAdvertiser($formattedProposalAdvertiser);
    $request = (new CreateProposalRequest())
        ->setParent($formattedParent)
        ->setProposal($proposal);

    // Call the API and handle any network failures.
    try {
        /** @var Proposal $response */
        $response = $proposalServiceClient->createProposal($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $proposalDisplayName = '[DISPLAY_NAME]';
    $formattedProposalAdvertiser = ProposalServiceClient::companyName('[NETWORK_CODE]', '[COMPANY]');

    create_proposal_sample($formattedParent, $proposalDisplayName, $formattedProposalAdvertiser);
}
```

### fetchMarketplaceComments

Fetches MarketplaceComments made on `Proposal`s.

The async variant is
[ProposalServiceClient::fetchMarketplaceCommentsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__fetchMarketplaceCommentsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\FetchMarketplaceCommentsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\ApiCore\PagedListResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\Ads\AdManager\V1\FetchMarketplaceCommentsRequest;
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;

/**
 * @param string $formattedParent       The parent resource where MarketplaceComments will be fetched
 *                                      from. Format: `networks/{network_code}`
 *                                      Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 * @param string $formattedNamesElement The resource names of the Proposals for which to fetch
 *                                      marketplace comments. A maximum of 50 proposal names can be specified.
 *                                      Format: `networks/{network_code}/proposals/{proposal_id}`
 *                                      Please see {@see ProposalServiceClient::proposalName()} for help formatting this field.
 */
function fetch_marketplace_comments_sample(
    string $formattedParent,
    string $formattedNamesElement
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $formattedNames = [$formattedNamesElement];
    $request = (new FetchMarketplaceCommentsRequest())
        ->setParent($formattedParent)
        ->setNames($formattedNames);

    // Call the API and handle any network failures.
    try {
        /** @var PagedListResponse $response */
        $response = $proposalServiceClient->fetchMarketplaceComments($request);

        foreach ($response as $element) {
            printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
        }
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');
    $formattedNamesElement = ProposalServiceClient::proposalName('[NETWORK_CODE]', '[PROPOSAL]');

    fetch_marketplace_comments_sample($formattedParent, $formattedNamesElement);
}
```

### getProposal

Retrieves a `Proposal` object.

The async variant is [ProposalServiceClient::getProposalAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__getProposalAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\GetProposalRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\Proposal` |   |

**Example**

```php
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\Ads\AdManager\V1\GetProposalRequest;
use Google\Ads\AdManager\V1\Proposal;
use Google\ApiCore\ApiException;

/**
 * @param string $formattedName The resource name of the Proposal.
 *                              Format: `networks/{network_code}/proposals/{proposal_id}`
 *                              Please see {@see ProposalServiceClient::proposalName()} for help formatting this field.
 */
function get_proposal_sample(string $formattedName): void
{
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $request = (new GetProposalRequest())
        ->setName($formattedName);

    // Call the API and handle any network failures.
    try {
        /** @var Proposal $response */
        $response = $proposalServiceClient->getProposal($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedName = ProposalServiceClient::proposalName('[NETWORK_CODE]', '[PROPOSAL]');

    get_proposal_sample($formattedName);
}
```

### listProposals

Lists `Proposal` objects.

The async variant is [ProposalServiceClient::listProposalsAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__listProposalsAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\ListProposalsRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\ApiCore\PagedListResponse` |   |

**Example**

```php
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\Ads\AdManager\V1\ListProposalsRequest;
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;

/**
 * @param string $formattedParent The parent, which owns this collection of Proposals.
 *                                Format: `networks/{network_code}`
 *                                Please see {@see ProposalServiceClient::networkName()} for help formatting this field.
 */
function list_proposals_sample(string $formattedParent): void
{
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $request = (new ListProposalsRequest())
        ->setParent($formattedParent);

    // Call the API and handle any network failures.
    try {
        /** @var PagedListResponse $response */
        $response = $proposalServiceClient->listProposals($request);

        foreach ($response as $element) {
            printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
        }
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $formattedParent = ProposalServiceClient::networkName('[NETWORK_CODE]');

    list_proposals_sample($formattedParent);
}
```

### updateProposal

Updates a `Proposal` object.

The async variant is [ProposalServiceClient::updateProposalAsync()](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Client.ProposalServiceClient.md.txt#_Google_Ads_AdManager_V1_Client_ProposalServiceClient__updateProposalAsync__) .

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\UpdateProposalRequest` A request to house fields associated with the call. |
| `callOptions` | `array` Optional. |
| `↳ retrySettings` | `Google\ApiCore\RetrySettings|array` Retry settings to use for this call. Can be a [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) object, or an associative array of retry settings parameters. See the documentation on [Google\\ApiCore\\RetrySettings](https://docs.cloud.google.com/php/docs/reference/gax/latest/RetrySettings.md.txt) for example usage. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Ads\AdManager\V1\Proposal` |   |

**Example**

```php
use Google\Ads\AdManager\V1\Client\ProposalServiceClient;
use Google\Ads\AdManager\V1\Proposal;
use Google\Ads\AdManager\V1\UpdateProposalRequest;
use Google\ApiCore\ApiException;

/**
 * @param string $proposalDisplayName         The display name of the Proposal. This value has a maximum length
 *                                            of 255 characters. This value is copied to
 *                                            [Order.displayName][google.ads.admanager.v1.Order.display_name] when the
 *                                            proposal turns into an order.
 * @param string $formattedProposalAdvertiser The resource name of the
 *                                            [Company][google.ads.admanager.v1.Company] of type
 *                                            [ADVERTISER][google.ads.admanager.v1.CompanyTypeEnum.CompanyType.ADVERTISER]
 *                                            to which this Proposal belongs. This attribute is required when the
 *                                            proposal turns into an order, and will be copied to
 *                                            [Order.advertiser][google.ads.admanager.v1.Order.advertiser].  This
 *                                            attribute becomes read-only once the Proposal has been pushed. Format:
 *                                            `networks/{network_code}/companies/{company_id}`
 *                                            Please see {@see ProposalServiceClient::companyName()} for help formatting this field.
 */
function update_proposal_sample(
    string $proposalDisplayName,
    string $formattedProposalAdvertiser
): void {
    // Create a client.
    $proposalServiceClient = new ProposalServiceClient();

    // Prepare the request message.
    $proposal = (new Proposal())
        ->setDisplayName($proposalDisplayName)
        ->setAdvertiser($formattedProposalAdvertiser);
    $request = (new UpdateProposalRequest())
        ->setProposal($proposal);

    // Call the API and handle any network failures.
    try {
        /** @var Proposal $response */
        $response = $proposalServiceClient->updateProposal($request);
        printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
    } catch (ApiException $ex) {
        printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
    }
}

/**
 * Helper to execute the sample.
 *
 * This sample has been automatically generated and should be regarded as a code
 * template only. It will require modifications to work:
 *  - It may require correct/in-range values for request initialization.
 *  - It may require specifying regional endpoints when creating the service client,
 *    please see the apiEndpoint client configuration option for more details.
 */
function callSample(): void
{
    $proposalDisplayName = '[DISPLAY_NAME]';
    $formattedProposalAdvertiser = ProposalServiceClient::companyName('[NETWORK_CODE]', '[COMPANY]');

    update_proposal_sample($proposalDisplayName, $formattedProposalAdvertiser);
}
```

### batchArchiveProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchArchiveProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\BatchArchiveProposalsResponse>` |   |

### batchCreateProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchCreateProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\BatchCreateProposalsResponse>` |   |

### batchDiscardDraftProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchDiscardDraftProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\BatchDiscardDraftProposalsResponse>` |   |

### batchPauseProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchPauseProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\BatchPauseProposalsResponse>` |   |

### batchPushToOrderProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchPushToOrderProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\BatchPushToOrderProposalsResponse>` |   |

### batchRedraftProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchRedraftProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\BatchRedraftProposalsResponse>` |   |

### batchRequestBuyerAcceptProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchRequestBuyerAcceptProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\BatchRequestBuyerAcceptProposalsResponse>` |   |

### batchRequestBuyerReviewProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchRequestBuyerReviewProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\BatchRequestBuyerReviewProposalsResponse>` |   |

### batchReserveProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchReserveProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\BatchReserveProposalsResponse>` |   |

### batchResumeProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchResumeProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\BatchResumeProposalsResponse>` |   |

### batchTerminateProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchTerminateProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\BatchTerminateProposalsResponse>` |   |

### batchUnarchiveProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchUnarchiveProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\BatchUnarchiveProposalsResponse>` |   |

### batchUpdateProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\BatchUpdateProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\BatchUpdateProposalsResponse>` |   |

### createProposalAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\CreateProposalRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\Proposal>` |   |

### fetchMarketplaceCommentsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\FetchMarketplaceCommentsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\ApiCore\PagedListResponse>` |   |

### getProposalAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\GetProposalRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\Proposal>` |   |

### listProposalsAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\ListProposalsRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\ApiCore\PagedListResponse>` |   |

### updateProposalAsync

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Google\Ads\AdManager\V1\UpdateProposalRequest` |
| `optionalArgs` | `array` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GuzzleHttp\Promise\PromiseInterface<Google\Ads\AdManager\V1\Proposal>` |   |

### static::adCategoryName

Formats a string containing the fully-qualified path to represent a ad_category
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `adCategory` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted ad_category resource. |

### static::adSpotName

Formats a string containing the fully-qualified path to represent a ad_spot
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `adSpot` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted ad_spot resource. |

### static::adUnitName

Formats a string containing the fully-qualified path to represent a ad_unit
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `adUnit` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted ad_unit resource. |

### static::applicationName

Formats a string containing the fully-qualified path to represent a application
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `application` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted application resource. |

### static::audienceSegmentName

Formats a string containing the fully-qualified path to represent a
audience_segment resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `audienceSegment` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted audience_segment resource. |

### static::bandwidthGroupName

Formats a string containing the fully-qualified path to represent a
bandwidth_group resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `bandwidthGroup` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted bandwidth_group resource. |

### static::browserName

Formats a string containing the fully-qualified path to represent a browser
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `browser` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted browser resource. |

### static::browserLanguageName

Formats a string containing the fully-qualified path to represent a
browser_language resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `browserLanguage` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted browser_language resource. |

### static::cmsMetadataValueName

Formats a string containing the fully-qualified path to represent a
cms_metadata_value resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `cmsMetadataValue` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted cms_metadata_value resource. |

### static::companyName

Formats a string containing the fully-qualified path to represent a company
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `company` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted company resource. |

### static::contactName

Formats a string containing the fully-qualified path to represent a contact
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `contact` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted contact resource. |

### static::contentName

Formats a string containing the fully-qualified path to represent a content
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `content` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted content resource. |

### static::contentBundleName

Formats a string containing the fully-qualified path to represent a
content_bundle resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `contentBundle` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted content_bundle resource. |

### static::contentLabelName

Formats a string containing the fully-qualified path to represent a
content_label resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `contentLabel` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted content_label resource. |

### static::customFieldName

Formats a string containing the fully-qualified path to represent a custom_field
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `customField` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted custom_field resource. |

### static::customTargetingKeyName

Formats a string containing the fully-qualified path to represent a
custom_targeting_key resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `customTargetingKey` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted custom_targeting_key resource. |

### static::customTargetingValueName

Formats a string containing the fully-qualified path to represent a
custom_targeting_value resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `customTargetingValue` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted custom_targeting_value resource. |

### static::deviceCapabilityName

Formats a string containing the fully-qualified path to represent a
device_capability resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `deviceCapability` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted device_capability resource. |

### static::deviceCategoryName

Formats a string containing the fully-qualified path to represent a
device_category resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `deviceCategory` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted device_category resource. |

### static::deviceManufacturerName

Formats a string containing the fully-qualified path to represent a
device_manufacturer resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `deviceManufacturer` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted device_manufacturer resource. |

### static::geoTargetName

Formats a string containing the fully-qualified path to represent a geo_target
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `geoTarget` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted geo_target resource. |

### static::inventoryUrlName

Formats a string containing the fully-qualified path to represent a
inventory_url resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `inventoryUrl` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted inventory_url resource. |

### static::labelName

Formats a string containing the fully-qualified path to represent a label
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `label` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted label resource. |

### static::mobileCarrierName

Formats a string containing the fully-qualified path to represent a
mobile_carrier resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `mobileCarrier` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted mobile_carrier resource. |

### static::mobileDeviceName

Formats a string containing the fully-qualified path to represent a
mobile_device resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `mobileDevice` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted mobile_device resource. |

### static::mobileDeviceSubmodelName

Formats a string containing the fully-qualified path to represent a
mobile_device_submodel resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `mobileDeviceSubmodel` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted mobile_device_submodel resource. |

### static::networkName

Formats a string containing the fully-qualified path to represent a network
resource.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted network resource. |

### static::operatingSystemName

Formats a string containing the fully-qualified path to represent a
operating_system resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `operatingSystem` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted operating_system resource. |

### static::operatingSystemVersionName

Formats a string containing the fully-qualified path to represent a
operating_system_version resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `operatingSystemVersion` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted operating_system_version resource. |

### static::orderName

Formats a string containing the fully-qualified path to represent a order
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `order` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted order resource. |

### static::placementName

Formats a string containing the fully-qualified path to represent a placement
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `placement` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted placement resource. |

### static::proposalName

Formats a string containing the fully-qualified path to represent a proposal
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `proposal` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted proposal resource. |

### static::taxonomyCategoryName

Formats a string containing the fully-qualified path to represent a
taxonomy_category resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `taxonomyCategory` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted taxonomy_category resource. |

### static::teamName

Formats a string containing the fully-qualified path to represent a team
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `team` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted team resource. |

### static::userName

Formats a string containing the fully-qualified path to represent a user
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `networkCode` | `string` |
| `user` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The formatted user resource. |

### static::parseName

Parses a formatted name string and returns an associative array of the components in the name.

The following name formats are supported:
Template: Pattern

- adCategory: networks/{network_code}/adCategories/{ad_category}
- adSpot: networks/{network_code}/adSpots/{ad_spot}
- adUnit: networks/{network_code}/adUnits/{ad_unit}
- application: networks/{network_code}/applications/{application}
- audienceSegment: networks/{network_code}/audienceSegments/{audience_segment}
- bandwidthGroup: networks/{network_code}/bandwidthGroups/{bandwidth_group}
- browser: networks/{network_code}/browsers/{browser}
- browserLanguage: networks/{network_code}/browserLanguages/{browser_language}
- cmsMetadataValue: networks/{network_code}/cmsMetadataValues/{cms_metadata_value}
- company: networks/{network_code}/companies/{company}
- contact: networks/{network_code}/contacts/{contact}
- content: networks/{network_code}/content/{content}
- contentBundle: networks/{network_code}/contentBundles/{content_bundle}
- contentLabel: networks/{network_code}/contentLabels/{content_label}
- customField: networks/{network_code}/customFields/{custom_field}
- customTargetingKey: networks/{network_code}/customTargetingKeys/{custom_targeting_key}
- customTargetingValue: networks/{network_code}/customTargetingValues/{custom_targeting_value}
- deviceCapability: networks/{network_code}/deviceCapabilities/{device_capability}
- deviceCategory: networks/{network_code}/deviceCategories/{device_category}
- deviceManufacturer: networks/{network_code}/deviceManufacturers/{device_manufacturer}
- geoTarget: networks/{network_code}/geoTargets/{geo_target}
- inventoryUrl: networks/{network_code}/inventoryUrls/{inventory_url}
- label: networks/{network_code}/labels/{label}
- mobileCarrier: networks/{network_code}/mobileCarriers/{mobile_carrier}
- mobileDevice: networks/{network_code}/mobileDevices/{mobile_device}
- mobileDeviceSubmodel: networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}
- network: networks/{network_code}
- operatingSystem: networks/{network_code}/operatingSystems/{operating_system}
- operatingSystemVersion: networks/{network_code}/operatingSystemVersions/{operating_system_version}
- order: networks/{network_code}/orders/{order}
- placement: networks/{network_code}/placements/{placement}
- proposal: networks/{network_code}/proposals/{proposal}
- taxonomyCategory: networks/{network_code}/taxonomyCategories/{taxonomy_category}
- team: networks/{network_code}/teams/{team}
- user: networks/{network_code}/users/{user}

The optional $template argument can be supplied to specify a particular pattern,
and must match one of the templates listed above. If no $template argument is
provided, or if the $template argument does not match one of the templates
listed, then parseName will check each of the supported templates, and return
the first match.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `formattedName` | `string` The formatted name string |
| `template` | `?string` Optional name of template to match |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `array` | An associative array from name component IDs to component values. |