Reference documentation and code samples for the Google Ads Ad Manager V1 Client class Company.
The Company
resource.
Generated from protobuf message google.ads.admanager.v1.Company
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The resource name of the Company
. Format: networks/{network_code}/companies/{company_id}
↳ company_id
int|string
Output only. Company
ID.
↳ display_name
string
Required. The display name of the Company
. This value has a maximum length of 127 characters.
↳ type
int
Required. The type of the Company
.
↳ address
string
Optional. The address for the Company
. This value has a maximum length of 1024 characters.
↳ email
string
Optional. The email for the Company
. This value has a maximum length of 128 characters.
↳ fax
string
Optional. The fax number for the Company
. This value has a maximum length of 63 characters.
↳ phone
string
Optional. The phone number for the Company
. This value has a maximum length of 63 characters.
↳ external_id
string
Optional. The external ID for the Company
. This value has a maximum length of 255 characters.
↳ comment
string
Optional. Comments about the Company
. This value has a maximum length of 1024 characters.
↳ credit_status
int
Optional. The credit status of the Company
. This attribute defaults to ACTIVE
if basic settings are enabled and ON_HOLD
if advance settings are enabled.
↳ applied_labels
array< Google\Ads\AdManager\V1\AppliedLabel
>
Optional. The labels that are directly applied to the Company
.
↳ primary_contact
string
Optional. The resource names of primary Contact of the Company
. Format: "networks/{network_code}/contacts/{contact_id}"
↳ applied_teams
array
Optional. The resource names of Teams that are directly associated with the Company
. Format: "networks/{network_code}/teams/{team_id}"
↳ update_time
↳ third_party_company_id
int|string
Optional. The ID of the Google-recognized canonicalized form of the Company
.
getName
Identifier. The resource name of the Company
.
Format: networks/{network_code}/companies/{company_id}
string
setName
Identifier. The resource name of the Company
.
Format: networks/{network_code}/companies/{company_id}
var
string
$this
getCompanyId
Output only. Company
ID.
int|string
setCompanyId
Output only. Company
ID.
var
int|string
$this
getDisplayName
Required. The display name of the Company
.
This value has a maximum length of 127 characters.
string
setDisplayName
Required. The display name of the Company
.
This value has a maximum length of 127 characters.
var
string
$this
getType
Required. The type of the Company
.
int
setType
Required. The type of the Company
.
var
int
$this
getAddress
Optional. The address for the Company
.
This value has a maximum length of 1024 characters.
string
setAddress
Optional. The address for the Company
.
This value has a maximum length of 1024 characters.
var
string
$this
getEmail
Optional. The email for the Company
.
This value has a maximum length of 128 characters.
string
setEmail
Optional. The email for the Company
.
This value has a maximum length of 128 characters.
var
string
$this
getFax
Optional. The fax number for the Company
.
This value has a maximum length of 63 characters.
string
setFax
Optional. The fax number for the Company
.
This value has a maximum length of 63 characters.
var
string
$this
getPhone
Optional. The phone number for the Company
.
This value has a maximum length of 63 characters.
string
setPhone
Optional. The phone number for the Company
.
This value has a maximum length of 63 characters.
var
string
$this
getExternalId
Optional. The external ID for the Company
.
This value has a maximum length of 255 characters.
string
setExternalId
Optional. The external ID for the Company
.
This value has a maximum length of 255 characters.
var
string
$this
getComment
Optional. Comments about the Company
.
This value has a maximum length of 1024 characters.
string
setComment
Optional. Comments about the Company
.
This value has a maximum length of 1024 characters.
var
string
$this
getCreditStatus
Optional. The credit status of the Company
.
This attribute defaults to ACTIVE
if basic settings are enabled and ON_HOLD
if advance settings are enabled.
int
setCreditStatus
Optional. The credit status of the Company
.
This attribute defaults to ACTIVE
if basic settings are enabled and ON_HOLD
if advance settings are enabled.
var
int
$this
getAppliedLabels
Optional. The labels that are directly applied to the Company
.
setAppliedLabels
Optional. The labels that are directly applied to the Company
.
$this
getPrimaryContact
Optional. The resource names of primary Contact of the Company
.
Format: "networks/{network_code}/contacts/{contact_id}"
string
hasPrimaryContact
clearPrimaryContact
setPrimaryContact
Optional. The resource names of primary Contact of the Company
.
Format: "networks/{network_code}/contacts/{contact_id}"
var
string
$this
getAppliedTeams
Optional. The resource names of Teams that are directly associated with the Company
. Format: "networks/{network_code}/teams/{team_id}"
setAppliedTeams
Optional. The resource names of Teams that are directly associated with the Company
. Format: "networks/{network_code}/teams/{team_id}"
var
string[]
$this
getUpdateTime
Output only. The time the Company
was last modified.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time the Company
was last modified.
$this
getThirdPartyCompanyId
Optional. The ID of the Google-recognized canonicalized form of the Company
.
int|string
setThirdPartyCompanyId
Optional. The ID of the Google-recognized canonicalized form of the Company
.
var
int|string
$this