AI-generated Key Takeaways
-
The Contacts service is deprecated and users should instead use the People API advanced service.
-
This service allows scripts to access and modify Google Contacts for both individuals and groups.
-
The documentation lists various classes related to contacts and their fields, such as AddressField, CompanyField, Contact, and ContactGroup.
-
Several methods are documented for accessing and modifying information within these contact field classes, such as
getAddress(),getLabel(),setAddress(), andsetLabel().
Deprecated.Instead, use the People API advanced service
This service allows scripts to access and modify Google Contacts, both for individual contacts and for groups.
Classes
| Name | Brief description |
|---|---|
|
Address field in a contact. |
|
Company field in a Contact. |
|
A Contact contains the name, address, and various contact details of a contact. |
|
A ContactGroup is is a group of contacts. |
|
This class allows users to access their own Google Contacts and create, remove, and update contacts listed therein. |
|
A custom field in a Contact. |
|
A date field in a Contact. |
|
An email field in a Contact. |
|
An enum for extended contacts fields. |
|
An enum for contacts fields. |
|
An enum for contact gender. |
|
An instant messaging field in a Contact. |
|
A phone number field in a Contact. |
|
An enum for contact priority. |
|
An enum for contact sensitivity. |
|
A URL field in a Contact. |
Address
Field
Address
Field
Methods
| Method | Return type | Brief description |
|---|---|---|
String
|
Get the address for this field. | |
Object
|
Gets the label for this field. | |
Boolean
|
Gets whether this is the primary field value. | |
|
Sets the address of this field. | |
|
Sets this field to primary. | |
|
Sets the label of this field. | |
|
Sets the label of this field. |
Company
Field
Company
Field
Contact
Contact
Contact
Group
Contact
Group
Contacts
App
Contacts
App
Custom
Field
Custom
Field
Methods
| Method | Return type | Brief description |
|---|---|---|
Object
|
Gets the label for this field. | |
|
Sets the label of this field. |
Date
Field
Date
Field
Methods
| Method | Return type | Brief description |
|---|---|---|
Object
|
Gets the label for this field. | |
|
Sets the label of this field. |
Email
Field
Email
Field
Methods
| Method | Return type | Brief description |
|---|---|---|
String
|
Get the address for this field. | |
Object
|
Gets the label for this field. | |
Boolean
|
Gets whether this is the primary field value. | |
|
Sets the address of this field. | |
|
Sets this field to primary. | |
|
Sets the label of this field. | |
|
Sets the label of this field. |
Extended
Field
Extended
Field
Field
Field
Gender
Gender
IMField
IMField
Methods
| Method | Return type | Brief description |
|---|---|---|
String
|
Get the address for this field. | |
Object
|
Gets the label for this field. | |
Boolean
|
Gets whether this is the primary field value. | |
|
Sets the address of this field. | |
|
Sets this field to primary. | |
|
Sets the label of this field. | |
|
Sets the label of this field. |
Phone
Field
Phone
Field
Methods
| Method | Return type | Brief description |
|---|---|---|
Object
|
Gets the label for this field. | |
Boolean
|
Gets whether this is the primary field value. | |
|
Sets this field to primary. | |
|
Sets the label of this field. | |
|
Sets the label of this field. |
Priority
Priority
Sensitivity
Sensitivity
Url
Field
Url
Field
Methods
| Method | Return type | Brief description |
|---|---|---|
String
|
Get the address for this field. | |
Object
|
Gets the label for this field. | |
Boolean
|
Gets whether this is the primary field value. | |
|
Sets the address of this field. | |
|
Sets this field to primary. | |
|
Sets the label of this field. | |
|
Sets the label of this field. |

