Class Contact
A contact represents a person who is affiliated with a single company. A contact can have a variety of contact information associated to it, and can be invited to view their company's orders, line items, creatives, and reports.
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class Contact : IMessage<Contact>, IEquatable<Contact>, IDeepCloneable<Contact>, IBufferMessage, IMessage
Constructors
Contact()
Declaration
public Contact()
Contact(Contact)
Declaration
public Contact(Contact other)
Parameters
| Type | Name | Description |
|---|---|---|
| Contact | other |
Properties
Address
Optional. The address of the contact. This attribute has a maximum length of 1024 characters.
Declaration
public string Address { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CellPhone
Optional. The cell phone number where the contact can be reached.
Declaration
public string CellPhone { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Comment
Optional. A free-form text comment for the contact. This attribute has a maximum length of 1024 characters.
Declaration
public string Comment { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Company
Required. Immutable. The resource name of the Company. Format: "networks/{network_code}/companies/{company_id}"
Declaration
public string Company { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CompanyAsCompanyName
CompanyName-typed view over the Company resource name property.
Declaration
public CompanyName CompanyAsCompanyName { get; set; }
Property Value
| Type | Description |
|---|---|
| CompanyName |
ContactName
ContactName-typed view over the Name resource name property.
Declaration
public ContactName ContactName { get; set; }
Property Value
| Type | Description |
|---|---|
| ContactName |
DisplayName
Required. The name of the contact. This attribute has a maximum length of 127 characters.
Declaration
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Optional. The e-mail address where the contact can be reached. This attribute has a maximum length of 128 characters.
Declaration
public string Email { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Fax
Optional. The fax number where the contact can be reached. This attribute has a maximum length of 1024 characters.
Declaration
public string Fax { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HasAddress
Gets whether the "address" field is set
Declaration
public bool HasAddress { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasCellPhone
Gets whether the "cell_phone" field is set
Declaration
public bool HasCellPhone { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasComment
Gets whether the "comment" field is set
Declaration
public bool HasComment { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasCompany
Gets whether the "company" field is set
Declaration
public bool HasCompany { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasDisplayName
Gets whether the "display_name" field is set
Declaration
public bool HasDisplayName { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasEmail
Gets whether the "email" field is set
Declaration
public bool HasEmail { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasFax
Gets whether the "fax" field is set
Declaration
public bool HasFax { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasStatus
Gets whether the "status" field is set
Declaration
public bool HasStatus { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasTitle
Gets whether the "title" field is set
Declaration
public bool HasTitle { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasWorkPhone
Gets whether the "work_phone" field is set
Declaration
public bool HasWorkPhone { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Identifier. The resource name of the Contact.
Format: networks/{network_code}/contacts/{contact_id}
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Status
Output only. The status of the contact. This attribute is assigned by Google.
Declaration
public ContactStatusEnum.Types.ContactStatus Status { get; set; }
Property Value
| Type | Description |
|---|---|
| ContactStatusEnum.Types.ContactStatus |
Title
Optional. The job title of the contact. This attribute has a maximum length of 1024 characters.
Declaration
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
WorkPhone
Optional. The work phone number where the contact can be reached. This attribute has a maximum length of 1024 characters.
Declaration
public string WorkPhone { get; set; }
Property Value
| Type | Description |
|---|---|
| string |