public interface UserServiceInterface
User
objects.
A user is assigned one of several different roles. Each Role type has
a unique ID that is used to identify that role in an organization. Role types
and their IDs can be retrieved by invoking getAllRoles().
| Modifier and Type | Method and Description |
|---|---|
List<User> |
createUsers(List<User> users)
Creates new
User objects. |
List<Role> |
getAllRoles()
Returns the
Role objects that are defined for the users of the
network. |
User |
getCurrentUser()
Returns the current
User. |
UserPage |
getUsersByStatement(Statement filterStatement)
|
UpdateResult |
performUserAction(UserAction userAction,
Statement filterStatement)
Performs actions on
User objects that match the given
Statement.query. |
List<User> |
updateUsers(List<User> users)
Updates the specified
User objects. |
@RequestWrapper(localName="createUsers", targetNamespace="https://www.google.com/apis/ads/publisher/v201711", className="com.google.api.ads.dfp.jaxws.v201711.UserServiceInterfacecreateUsers") @ResponseWrapper(localName="createUsersResponse", targetNamespace="https://www.google.com/apis/ads/publisher/v201711", className="com.google.api.ads.dfp.jaxws.v201711.UserServiceInterfacecreateUsersResponse") List<User> createUsers(List<User> users) throws ApiException_Exception
User objects.users - the users to createusers - ApiException_Exception@RequestWrapper(localName="getAllRoles", targetNamespace="https://www.google.com/apis/ads/publisher/v201711", className="com.google.api.ads.dfp.jaxws.v201711.UserServiceInterfacegetAllRoles") @ResponseWrapper(localName="getAllRolesResponse", targetNamespace="https://www.google.com/apis/ads/publisher/v201711", className="com.google.api.ads.dfp.jaxws.v201711.UserServiceInterfacegetAllRolesResponse") List<Role> getAllRoles() throws ApiException_Exception
Role objects that are defined for the users of the
network.ApiException_Exception@RequestWrapper(localName="getCurrentUser", targetNamespace="https://www.google.com/apis/ads/publisher/v201711", className="com.google.api.ads.dfp.jaxws.v201711.UserServiceInterfacegetCurrentUser") @ResponseWrapper(localName="getCurrentUserResponse", targetNamespace="https://www.google.com/apis/ads/publisher/v201711", className="com.google.api.ads.dfp.jaxws.v201711.UserServiceInterfacegetCurrentUserResponse") User getCurrentUser() throws ApiException_Exception
User.ApiException_Exception@RequestWrapper(localName="getUsersByStatement", targetNamespace="https://www.google.com/apis/ads/publisher/v201711", className="com.google.api.ads.dfp.jaxws.v201711.UserServiceInterfacegetUsersByStatement") @ResponseWrapper(localName="getUsersByStatementResponse", targetNamespace="https://www.google.com/apis/ads/publisher/v201711", className="com.google.api.ads.dfp.jaxws.v201711.UserServiceInterfacegetUsersByStatementResponse") UserPage getUsersByStatement(Statement filterStatement) throws ApiException_Exception
UserPage of User objects that satisfy the given
Statement.query. The following fields are supported for filtering:
| PQL Property | Object Property |
|---|---|
email |
UserRecord.email |
id |
UserRecord.id |
name |
UserRecord.name |
roleId |
UserRecord.roleId
|
rolename |
UserRecord.roleName
|
status |
ACTIVE if User.isActive is true; INACTIVE
otherwise |
filterStatement - a Publisher Query Language statement used to filter
a set of usersfilterStatement - ApiException_Exception@RequestWrapper(localName="performUserAction", targetNamespace="https://www.google.com/apis/ads/publisher/v201711", className="com.google.api.ads.dfp.jaxws.v201711.UserServiceInterfaceperformUserAction") @ResponseWrapper(localName="performUserActionResponse", targetNamespace="https://www.google.com/apis/ads/publisher/v201711", className="com.google.api.ads.dfp.jaxws.v201711.UserServiceInterfaceperformUserActionResponse") UpdateResult performUserAction(UserAction userAction, Statement filterStatement) throws ApiException_Exception
User objects that match the given
Statement.query.userAction - the action to performfilterStatement - a Publisher Query Language statement used to filter
a set of usersuserAction - filterStatement - ApiException_Exception@RequestWrapper(localName="updateUsers", targetNamespace="https://www.google.com/apis/ads/publisher/v201711", className="com.google.api.ads.dfp.jaxws.v201711.UserServiceInterfaceupdateUsers") @ResponseWrapper(localName="updateUsersResponse", targetNamespace="https://www.google.com/apis/ads/publisher/v201711", className="com.google.api.ads.dfp.jaxws.v201711.UserServiceInterfaceupdateUsersResponse") List<User> updateUsers(List<User> users) throws ApiException_Exception
User objects.users - the users to updateusers - ApiException_ExceptionCopyright © 2018. All Rights Reserved.