public class ContactService extends Object
| Constructor and Description |
|---|
ContactService() |
| Modifier and Type | Method and Description |
|---|---|
List<Long> |
createContacts(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.Contact> contactsToCreate)
Creates the specified contacts.
|
protected com.google.api.ads.admanager.axis.v201902.ContactServiceInterface |
createContactService(com.google.api.ads.admanager.lib.client.AdManagerSession session) |
List<com.google.api.ads.admanager.axis.v201902.Contact> |
getContacts(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String queryString,
Map<String,Object> queryParams,
String queryOrder,
Integer queryOffset)
Retrieve a filtered list of contacts.
|
List<Long> |
updateContacts(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.Contact> contactsToUpdate)
Updates the specified contacts.
|
protected com.google.api.ads.admanager.axis.v201902.ContactServiceInterface createContactService(com.google.api.ads.admanager.lib.client.AdManagerSession session)
public List<Long> createContacts(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.Contact> contactsToCreate) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessioncontactsToCreate - list of contacts to createList<Long> list of created companies IDsAdManagerApiException - if there is a problem with the request made to the API.AdManagerCommunicationException - if there is a communication problem with the API (such as
timeouts etc.)public List<Long> updateContacts(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.Contact> contactsToUpdate) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessioncontactsToUpdate - list of contacts to updateList<Long> list of updated contact IDsAdManagerApiException - if there is a problem with the request made to the API.AdManagerCommunicationException - if there is a communication problem with the API (such as
timeouts etc.)public List<com.google.api.ads.admanager.axis.v201902.Contact> getContacts(com.google.api.ads.admanager.lib.client.AdManagerSession session, String queryString, Map<String,Object> queryParams, String queryOrder, Integer queryOffset) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessionqueryString - the queryqueryParams - the query parametersqueryOrder - the orderqueryOffset - the offsetList<Contact> list of created contactsAdManagerApiException - if there is a problem with the request made to the API.AdManagerCommunicationException - if there is a communication problem with the API (such as
timeouts etc.)Copyright © 2010–2019. All rights reserved.