Google Ads Ad Manager V1 Client - Class Proposal (0.17.0)

Reference documentation and code samples for the Google Ads Ad Manager V1 Client class Proposal.

A Proposal represents an agreement between an interactive advertising seller and a buyer that specifies the details of an advertising campaign.

Generated from protobuf message google.ads.admanager.v1.Proposal

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. The resource name of the Proposal. Format: networks/{network_code}/proposals/{proposal_id}

↳ order string

Output only. The resource name of the corresponding Order. This will not be set if the Proposal has not been pushed to Ad Manager. Format: networks/{network_code}/orders/{order_id}

↳ display_name string

Required. The display name of the Proposal. This value has a maximum length of 255 characters. This value is copied to Order.displayName when the proposal turns into an order.

↳ start_time Google\Protobuf\Timestamp

Output only. The time at which the Order and LineItems associated with the Proposal are eligible to begin serving. This attribute is derived from the ProposalLineItem with the earliest startTime. This attribute will be empty if this Proposal has no associated ProposalLineItems or if none of its ProposalLineItems have a start time.

↳ end_time Google\Protobuf\Timestamp

Output only. The time at which the Order and LineItems associated with the Proposal stop serving. This attribute is derived from the ProposalLineItem with the latest endTime. This attribute will be empty if this Proposal has no associated ProposalLineItems or if none of its ProposalLineItems have an end time.

↳ archived bool

Output only. Whether the Proposal is archived or not.

↳ advertiser string

Required. The resource name of the Company of type ADVERTISER to which this Proposal belongs. This attribute is required when the proposal turns into an order, and will be copied to Order.advertiser. This attribute becomes read-only once the Proposal has been pushed. Format: networks/{network_code}/companies/{company_id}

↳ agencies array<ProposalCompanyAssociation>

Optional. List of agencies and the set of Contacts associated with each agency. A Proposal can have at most one Company with PRIMARY_AGENCY type, but a Company can appear more than once with different ProposalCompanyAssociationType values. If a primary agency exists, its ProposalCompanyAssociation.company will be copied to Order.agency when the proposal turns into an order.

↳ notes string

Optional. Provides any additional notes that may annotate the Proposal. This attribute has a maximum length of 65,535 characters.

↳ primary_salesperson string

Optional. The resource name of the User representing the primary salesperson who brokered the transaction with the advertiser. This attribute is required when the proposal turns into an order. Format: networks/{network_code}/users/{user_id}

↳ sales_planner_users string[]

Optional. The resource names of the Users representing the sales planners of the Proposal. A Proposal can have at most 8 sales planners. Format: networks/{network_code}/users/{user_id}

↳ trafficker string

Optional. The resource name of the User who is the primary trafficker and is responsible for trafficking the Proposal. This attribute is required when the proposal turns into an order, and will be copied to Order.trafficker. Format: networks/{network_code}/users/{user_id}

↳ seller_contact_users string[]

Optional. The resource names of the Users who are the seller's contacts. Format: networks/{network_code}/users/{user_id}

↳ applied_teams string[]

Optional. The resource names of the teams directly applied to the Proposal. Format: networks/{network_code}/teams/{team_id}

↳ custom_field_values array<CustomFieldValue>

Optional. The values of the custom fields associated with the Proposal.

↳ applied_labels array<AppliedLabel>

Optional. The set of labels applied directly to the Proposal.

↳ effective_applied_labels array<AppliedLabel>

Output only. The set of labels applied to the Proposal including inherited values. Only labels that directly affect the entity are listed here. If they are negated, only the negated version is visible.

↳ currency_code string

Optional. The currency code of this Proposal. If not directly set, the currency code will be the network's currency code.

↳ sold bool

Output only. Indicates whether the proposal has been sold, i.e., corresponds to whether the status of an Order is APPROVED or PAUSED.

↳ update_time Google\Protobuf\Timestamp

Output only. The time this Proposal was last modified.

↳ marketplace_info ProposalMarketplaceInfo

Optional. The marketplace info of this Proposal if it has a corresponding Order in Marketplace.

↳ buyer_rfp BuyerRfp

Output only. The buyer RFP associated with this Proposal. This field will be unset if the proposal is not initiated from an RFP.

↳ delivery_pausing_enabled bool

Optional. Non-empty default. Whether delivery of the Proposal can be paused. Defaults to true. If false, the buyer and the seller agree that the Proposal should not be paused.

↳ supply_path int

Optional. Non-empty default. The supply path type of this Proposal. If no value is provided on creation, defaults to DEMAND_SIDE_PLATFORM.

getName

Identifier. The resource name of the Proposal.

Format: networks/{network_code}/proposals/{proposal_id}

Returns
Type Description
string

setName

Identifier. The resource name of the Proposal.

Format: networks/{network_code}/proposals/{proposal_id}

Parameter
Name Description
var string
Returns
Type Description
$this

getOrder

Output only. The resource name of the corresponding Order. This will not be set if the Proposal has not been pushed to Ad Manager. Format: networks/{network_code}/orders/{order_id}

Returns
Type Description
string

hasOrder

clearOrder

setOrder

Output only. The resource name of the corresponding Order. This will not be set if the Proposal has not been pushed to Ad Manager. Format: networks/{network_code}/orders/{order_id}

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

Required. The display name of the Proposal. This value has a maximum length of 255 characters. This value is copied to Order.displayName when the proposal turns into an order.

Returns
Type Description
string

hasDisplayName

clearDisplayName

setDisplayName

Required. The display name of the Proposal. This value has a maximum length of 255 characters. This value is copied to Order.displayName when the proposal turns into an order.

Parameter
Name Description
var string
Returns
Type Description
$this

getStartTime

Output only. The time at which the Order and LineItems associated with the Proposal are eligible to begin serving. This attribute is derived from the ProposalLineItem with the earliest startTime. This attribute will be empty if this Proposal has no associated ProposalLineItems or if none of its ProposalLineItems have a start time.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Output only. The time at which the Order and LineItems associated with the Proposal are eligible to begin serving. This attribute is derived from the ProposalLineItem with the earliest startTime. This attribute will be empty if this Proposal has no associated ProposalLineItems or if none of its ProposalLineItems have a start time.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getEndTime

Output only. The time at which the Order and LineItems associated with the Proposal stop serving. This attribute is derived from the ProposalLineItem with the latest endTime.

This attribute will be empty if this Proposal has no associated ProposalLineItems or if none of its ProposalLineItems have an end time.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

Output only. The time at which the Order and LineItems associated with the Proposal stop serving. This attribute is derived from the ProposalLineItem with the latest endTime.

This attribute will be empty if this Proposal has no associated ProposalLineItems or if none of its ProposalLineItems have an end time.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getArchived

Output only. Whether the Proposal is archived or not.

Returns
Type Description
bool

hasArchived

clearArchived

setArchived

Output only. Whether the Proposal is archived or not.

Parameter
Name Description
var bool
Returns
Type Description
$this

getAdvertiser

Required. The resource name of the Company of type ADVERTISER to which this Proposal belongs. This attribute is required when the proposal turns into an order, and will be copied to Order.advertiser. This attribute becomes read-only once the Proposal has been pushed. Format: networks/{network_code}/companies/{company_id}

Returns
Type Description
string

hasAdvertiser

clearAdvertiser

setAdvertiser

Required. The resource name of the Company of type ADVERTISER to which this Proposal belongs. This attribute is required when the proposal turns into an order, and will be copied to Order.advertiser. This attribute becomes read-only once the Proposal has been pushed. Format: networks/{network_code}/companies/{company_id}

Parameter
Name Description
var string
Returns
Type Description
$this

getAgencies

Optional. List of agencies and the set of Contacts associated with each agency. A Proposal can have at most one Company with PRIMARY_AGENCY type, but a Company can appear more than once with different ProposalCompanyAssociationType values. If a primary agency exists, its ProposalCompanyAssociation.company will be copied to Order.agency when the proposal turns into an order.

Returns
Type Description
Google\Protobuf\RepeatedField<ProposalCompanyAssociation>

setAgencies

Optional. List of agencies and the set of Contacts associated with each agency. A Proposal can have at most one Company with PRIMARY_AGENCY type, but a Company can appear more than once with different ProposalCompanyAssociationType values. If a primary agency exists, its ProposalCompanyAssociation.company will be copied to Order.agency when the proposal turns into an order.

Parameter
Name Description
var array<ProposalCompanyAssociation>
Returns
Type Description
$this

getNotes

Optional. Provides any additional notes that may annotate the Proposal.

This attribute has a maximum length of 65,535 characters.

Returns
Type Description
string

hasNotes

clearNotes

setNotes

Optional. Provides any additional notes that may annotate the Proposal.

This attribute has a maximum length of 65,535 characters.

Parameter
Name Description
var string
Returns
Type Description
$this

getPrimarySalesperson

Optional. The resource name of the User representing the primary salesperson who brokered the transaction with the advertiser. This attribute is required when the proposal turns into an order. Format: networks/{network_code}/users/{user_id}

Returns
Type Description
string

hasPrimarySalesperson

clearPrimarySalesperson

setPrimarySalesperson

Optional. The resource name of the User representing the primary salesperson who brokered the transaction with the advertiser. This attribute is required when the proposal turns into an order. Format: networks/{network_code}/users/{user_id}

Parameter
Name Description
var string
Returns
Type Description
$this

getSalesPlannerUsers

Optional. The resource names of the Users representing the sales planners of the Proposal. A Proposal can have at most 8 sales planners. Format: networks/{network_code}/users/{user_id}

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setSalesPlannerUsers

Optional. The resource names of the Users representing the sales planners of the Proposal. A Proposal can have at most 8 sales planners. Format: networks/{network_code}/users/{user_id}

Parameter
Name Description
var string[]
Returns
Type Description
$this

getTrafficker

Optional. The resource name of the User who is the primary trafficker and is responsible for trafficking the Proposal.

This attribute is required when the proposal turns into an order, and will be copied to Order.trafficker. Format: networks/{network_code}/users/{user_id}

Returns
Type Description
string

hasTrafficker

clearTrafficker

setTrafficker

Optional. The resource name of the User who is the primary trafficker and is responsible for trafficking the Proposal.

This attribute is required when the proposal turns into an order, and will be copied to Order.trafficker. Format: networks/{network_code}/users/{user_id}

Parameter
Name Description
var string
Returns
Type Description
$this

getSellerContactUsers

Optional. The resource names of the Users who are the seller's contacts. Format: networks/{network_code}/users/{user_id}

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setSellerContactUsers

Optional. The resource names of the Users who are the seller's contacts. Format: networks/{network_code}/users/{user_id}

Parameter
Name Description
var string[]
Returns
Type Description
$this

getAppliedTeams

Optional. The resource names of the teams directly applied to the Proposal.

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

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setAppliedTeams

Optional. The resource names of the teams directly applied to the Proposal.

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

Parameter
Name Description
var string[]
Returns
Type Description
$this

getCustomFieldValues

Optional. The values of the custom fields associated with the Proposal.

Returns
Type Description
Google\Protobuf\RepeatedField<CustomFieldValue>

setCustomFieldValues

Optional. The values of the custom fields associated with the Proposal.

Parameter
Name Description
var array<CustomFieldValue>
Returns
Type Description
$this

getAppliedLabels

Optional. The set of labels applied directly to the Proposal.

Returns
Type Description
Google\Protobuf\RepeatedField<AppliedLabel>

setAppliedLabels

Optional. The set of labels applied directly to the Proposal.

Parameter
Name Description
var array<AppliedLabel>
Returns
Type Description
$this

getEffectiveAppliedLabels

Output only. The set of labels applied to the Proposal including inherited values. Only labels that directly affect the entity are listed here. If they are negated, only the negated version is visible.

Returns
Type Description
Google\Protobuf\RepeatedField<AppliedLabel>

setEffectiveAppliedLabels

Output only. The set of labels applied to the Proposal including inherited values. Only labels that directly affect the entity are listed here. If they are negated, only the negated version is visible.

Parameter
Name Description
var array<AppliedLabel>
Returns
Type Description
$this

getCurrencyCode

Optional. The currency code of this Proposal. If not directly set, the currency code will be the network's currency code.

Returns
Type Description
string

setCurrencyCode

Optional. The currency code of this Proposal. If not directly set, the currency code will be the network's currency code.

Parameter
Name Description
var string
Returns
Type Description
$this

getSold

Output only. Indicates whether the proposal has been sold, i.e., corresponds to whether the status of an Order is APPROVED or PAUSED.

Returns
Type Description
bool

hasSold

clearSold

setSold

Output only. Indicates whether the proposal has been sold, i.e., corresponds to whether the status of an Order is APPROVED or PAUSED.

Parameter
Name Description
var bool
Returns
Type Description
$this

getUpdateTime

Output only. The time this Proposal was last modified.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time this Proposal was last modified.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getMarketplaceInfo

Optional. The marketplace info of this Proposal if it has a corresponding Order in Marketplace.

Returns
Type Description
ProposalMarketplaceInfo|null

hasMarketplaceInfo

clearMarketplaceInfo

setMarketplaceInfo

Optional. The marketplace info of this Proposal if it has a corresponding Order in Marketplace.

Parameter
Name Description
var ProposalMarketplaceInfo
Returns
Type Description
$this

getBuyerRfp

Output only. The buyer RFP associated with this Proposal. This field will be unset if the proposal is not initiated from an RFP.

Returns
Type Description
BuyerRfp|null

hasBuyerRfp

clearBuyerRfp

setBuyerRfp

Output only. The buyer RFP associated with this Proposal. This field will be unset if the proposal is not initiated from an RFP.

Parameter
Name Description
var BuyerRfp
Returns
Type Description
$this

getDeliveryPausingEnabled

Optional. Non-empty default. Whether delivery of the Proposal can be paused. Defaults to true. If false, the buyer and the seller agree that the Proposal should not be paused.

Returns
Type Description
bool

hasDeliveryPausingEnabled

clearDeliveryPausingEnabled

setDeliveryPausingEnabled

Optional. Non-empty default. Whether delivery of the Proposal can be paused. Defaults to true. If false, the buyer and the seller agree that the Proposal should not be paused.

Parameter
Name Description
var bool
Returns
Type Description
$this

getSupplyPath

Optional. Non-empty default. The supply path type of this Proposal. If no value is provided on creation, defaults to DEMAND_SIDE_PLATFORM.

Returns
Type Description
int

hasSupplyPath

clearSupplyPath

setSupplyPath

Optional. Non-empty default. The supply path type of this Proposal. If no value is provided on creation, defaults to DEMAND_SIDE_PLATFORM.

Parameter
Name Description
var int
Returns
Type Description
$this