Class ContactService.ContactServiceBase
Base class for server-side implementations of ContactService
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
[BindServiceMethod(typeof(ContactService), "BindService")]
public abstract class ContactService.ContactServiceBase
Methods
BatchCreateContacts(BatchCreateContactsRequest, ServerCallContext)
API to batch create Contact objects.
Declaration
public virtual Task<BatchCreateContactsResponse> BatchCreateContacts(BatchCreateContactsRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateContactsRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<BatchCreateContactsResponse> | The response to send back to the client (wrapped by a task). |
BatchUpdateContacts(BatchUpdateContactsRequest, ServerCallContext)
API to batch update Contact objects.
Declaration
public virtual Task<BatchUpdateContactsResponse> BatchUpdateContacts(BatchUpdateContactsRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateContactsRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<BatchUpdateContactsResponse> | The response to send back to the client (wrapped by a task). |
CreateContact(CreateContactRequest, ServerCallContext)
API to create a Contact object.
Declaration
public virtual Task<Contact> CreateContact(CreateContactRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateContactRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Contact> | The response to send back to the client (wrapped by a task). |
GetContact(GetContactRequest, ServerCallContext)
API to retrieve a Contact object.
Declaration
public virtual Task<Contact> GetContact(GetContactRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| GetContactRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Contact> | The response to send back to the client (wrapped by a task). |
ListContacts(ListContactsRequest, ServerCallContext)
API to retrieve a list of Contact objects.
Declaration
public virtual Task<ListContactsResponse> ListContacts(ListContactsRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ListContactsRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<ListContactsResponse> | The response to send back to the client (wrapped by a task). |
UpdateContact(UpdateContactRequest, ServerCallContext)
API to update a Contact object.
Declaration
public virtual Task<Contact> UpdateContact(UpdateContactRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateContactRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Contact> | The response to send back to the client (wrapped by a task). |