public class UserService extends Object
| Constructor and Description |
|---|
UserService() |
| Modifier and Type | Method and Description |
|---|---|
List<Long> |
createUsers(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.User> usersToCreate)
Creates the specified Users.
|
protected com.google.api.ads.admanager.axis.v201902.UserServiceInterface |
createUserService(com.google.api.ads.admanager.lib.client.AdManagerSession session) |
List<com.google.api.ads.admanager.axis.v201902.Role> |
getAllRoles(com.google.api.ads.admanager.lib.client.AdManagerSession session)
Retrieves all Roles.
|
com.google.api.ads.admanager.axis.v201902.User |
getCurrentUser(com.google.api.ads.admanager.lib.client.AdManagerSession session)
Retrieves the current user.
|
List<com.google.api.ads.admanager.axis.v201902.User> |
getUsers(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String queryString,
Map<String,Object> queryParams,
String queryUser,
Integer queryOffset)
Retrieves the specified Users.
|
Integer |
performUsers(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String userActionString,
String queryString,
Map<String,Object> queryParams)
Perform the selected Users action.
|
List<Long> |
updateUsers(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.User> usersToUpdate)
Updates the specified Users.
|
protected com.google.api.ads.admanager.axis.v201902.UserServiceInterface createUserService(com.google.api.ads.admanager.lib.client.AdManagerSession session)
public List<com.google.api.ads.admanager.axis.v201902.User> getUsers(com.google.api.ads.admanager.lib.client.AdManagerSession session, String queryString, Map<String,Object> queryParams, String queryUser, Integer queryOffset) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessionqueryString - the queryqueryParams - the query parametersqueryUser - the query userqueryOffset - the offsetList<User> a list of UsersAdManagerApiException - 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 Integer performUsers(com.google.api.ads.admanager.lib.client.AdManagerSession session, String userActionString, String queryString, Map<String,Object> queryParams) throws AdManagerException
session - the API sessionuserActionString - the action to performqueryString - the queryqueryParams - the query parametersInteger the number of affected usersAdManagerException - AdManagerApiException 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> createUsers(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.User> usersToCreate) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessionusersToCreate - the list of Users to createList<Long> list of created User 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> updateUsers(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.User> usersToUpdate) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessionusersToUpdate - list of users to updateList<Long> list of updated user 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.Role> getAllRoles(com.google.api.ads.admanager.lib.client.AdManagerSession session) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessionList<Role> the list of rolesAdManagerApiException - 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 com.google.api.ads.admanager.axis.v201902.User getCurrentUser(com.google.api.ads.admanager.lib.client.AdManagerSession session)
throws AdManagerApiException,
AdManagerCommunicationException
session - the API sessionUser the current user accountAdManagerApiException - 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.