Represents a ContactService
Inheritance
$protobuf.rpc.Service > protos.google.ads.admanager.v1.ContactServicePackage
@google-ads/admanagerConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new ContactService service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
batchCreateContacts(request, callback)
public batchCreateContacts(request: google.ads.admanager.v1.IBatchCreateContactsRequest, callback: google.ads.admanager.v1.ContactService.BatchCreateContactsCallback): void;Calls BatchCreateContacts.
| Parameters | |
|---|---|
| Name | Description |
request |
IBatchCreateContactsRequest
BatchCreateContactsRequest message or plain object |
callback |
BatchCreateContactsCallback
Node-style callback called with the error, if any, and BatchCreateContactsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
batchCreateContacts(request)
public batchCreateContacts(request: google.ads.admanager.v1.IBatchCreateContactsRequest): Promise<google.ads.admanager.v1.BatchCreateContactsResponse>;Calls BatchCreateContacts.
| Parameter | |
|---|---|
| Name | Description |
request |
IBatchCreateContactsRequest
BatchCreateContactsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.BatchCreateContactsResponse> |
Promise |
batchUpdateContacts(request, callback)
public batchUpdateContacts(request: google.ads.admanager.v1.IBatchUpdateContactsRequest, callback: google.ads.admanager.v1.ContactService.BatchUpdateContactsCallback): void;Calls BatchUpdateContacts.
| Parameters | |
|---|---|
| Name | Description |
request |
IBatchUpdateContactsRequest
BatchUpdateContactsRequest message or plain object |
callback |
BatchUpdateContactsCallback
Node-style callback called with the error, if any, and BatchUpdateContactsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
batchUpdateContacts(request)
public batchUpdateContacts(request: google.ads.admanager.v1.IBatchUpdateContactsRequest): Promise<google.ads.admanager.v1.BatchUpdateContactsResponse>;Calls BatchUpdateContacts.
| Parameter | |
|---|---|
| Name | Description |
request |
IBatchUpdateContactsRequest
BatchUpdateContactsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.BatchUpdateContactsResponse> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ContactService;Creates new ContactService service using the specified rpc implementation.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
ContactService |
RPC service. Useful where requests and/or responses are streamed. |
createContact(request, callback)
public createContact(request: google.ads.admanager.v1.ICreateContactRequest, callback: google.ads.admanager.v1.ContactService.CreateContactCallback): void;Calls CreateContact.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateContactRequest
CreateContactRequest message or plain object |
callback |
CreateContactCallback
Node-style callback called with the error, if any, and Contact |
| Returns | |
|---|---|
| Type | Description |
void |
|
createContact(request)
public createContact(request: google.ads.admanager.v1.ICreateContactRequest): Promise<google.ads.admanager.v1.Contact>;Calls CreateContact.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateContactRequest
CreateContactRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.Contact> |
Promise |
getContact(request, callback)
public getContact(request: google.ads.admanager.v1.IGetContactRequest, callback: google.ads.admanager.v1.ContactService.GetContactCallback): void;Calls GetContact.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetContactRequest
GetContactRequest message or plain object |
callback |
GetContactCallback
Node-style callback called with the error, if any, and Contact |
| Returns | |
|---|---|
| Type | Description |
void |
|
getContact(request)
public getContact(request: google.ads.admanager.v1.IGetContactRequest): Promise<google.ads.admanager.v1.Contact>;Calls GetContact.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetContactRequest
GetContactRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.Contact> |
Promise |
listContacts(request, callback)
public listContacts(request: google.ads.admanager.v1.IListContactsRequest, callback: google.ads.admanager.v1.ContactService.ListContactsCallback): void;Calls ListContacts.
| Parameters | |
|---|---|
| Name | Description |
request |
IListContactsRequest
ListContactsRequest message or plain object |
callback |
ListContactsCallback
Node-style callback called with the error, if any, and ListContactsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listContacts(request)
public listContacts(request: google.ads.admanager.v1.IListContactsRequest): Promise<google.ads.admanager.v1.ListContactsResponse>;Calls ListContacts.
| Parameter | |
|---|---|
| Name | Description |
request |
IListContactsRequest
ListContactsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.ListContactsResponse> |
Promise |
updateContact(request, callback)
public updateContact(request: google.ads.admanager.v1.IUpdateContactRequest, callback: google.ads.admanager.v1.ContactService.UpdateContactCallback): void;Calls UpdateContact.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateContactRequest
UpdateContactRequest message or plain object |
callback |
UpdateContactCallback
Node-style callback called with the error, if any, and Contact |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateContact(request)
public updateContact(request: google.ads.admanager.v1.IUpdateContactRequest): Promise<google.ads.admanager.v1.Contact>;Calls UpdateContact.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateContactRequest
UpdateContactRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.Contact> |
Promise |