public final class ManagedCustomerDelegate extends AbstractGetMutateDelegate<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer,com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerOperation,com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerServiceInterface>
ManagedCustomer
.
Implementation is not thread-safe, because AdWordsSession and Apache Axis service objects are not thread-safe.
Constructor and Description |
---|
ManagedCustomerDelegate(AdWordsSession adWordsSession)
Default Constructor.
|
ManagedCustomerDelegate(AdWordsSession adWordsSession,
List<SelectorFields.ManagedCustomer> selectorFields)
Constructor with custom fields.
|
Modifier and Type | Method and Description |
---|---|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> |
getByCanManageClients(boolean canManageClients)
Retrieves ManagedCustomers by canManageClients.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> |
getByCustomerId(List<Long> customerIds)
Retrieves ManagedCustomers by customerIds.
|
com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer |
getByCustomerId(Long customerId)
Retrieves ManagedCustomers by customerId.
|
com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer |
getByCustomerId(String customerId)
Retrieves ManagedCustomers by customerId.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> |
getByCustomerIdCanManageClients(List<Long> customerIds,
boolean canManageClients)
Retrieves ManagedCustomers by customerIds and canManageClients.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.PendingInvitation> |
getPendingInvitations()
Retrieves PendingInvitations for the account.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.PendingInvitation> |
getPendingInvitations(com.google.api.ads.adwords.axis.v201409.mcm.PendingInvitationSelector selector)
Retrieves PendingInvitations for the account.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> |
invitationAccept(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> managedCustomerLinks)
Accepts Invitations.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> |
invitationDecline(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> managedCustomerLinks)
Declines Invitations.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> |
invitationExtend(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> managedCustomerLinks)
Extends Invitations.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> |
invitationRescind(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> managedCustomerLinks)
Rescinds Invitations.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> |
moveManager(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> managedCustomerLinks,
Long oldManagerCustomerId)
Moves client customers to new managers (moving links).
|
com.google.api.ads.adwords.axis.v201409.mcm.MutateLinkResults |
mutateLink(com.google.api.ads.adwords.axis.v201409.mcm.LinkOperation[] operations)
Modifies the ManagedCustomer forest.
|
com.google.api.ads.adwords.axis.v201409.mcm.MutateManagerResults |
mutateManager(com.google.api.ads.adwords.axis.v201409.mcm.MoveOperation[] operations)
Moves client customers to new managers (moving links).
|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> |
terminateLink(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> managedCustomerLinks)
Terminates Links.
|
insert, insert, mutate, remove, remove, update, update
createSelectorBuilder, get, get, get, getByField, getByField, getByField, getByField, getByFieldContainsAny, getClassT, getOneByField, getPage, setGetMethodName
getAdWordsSession, getService
public ManagedCustomerDelegate(AdWordsSession adWordsSession)
adWordsSession
- the adWordsSession
to use with the delegate/servicepublic ManagedCustomerDelegate(AdWordsSession adWordsSession, List<SelectorFields.ManagedCustomer> selectorFields)
adWordsSession
- the adWordsSession
to use with the delegate/serviceselectorFields
- for the Generic Selectors using the SelectorField classpublic List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> getByCustomerId(List<Long> customerIds) throws RemoteException
customerIds
- RemoteException
- for communication-related exceptionspublic com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer getByCustomerId(Long customerId) throws RemoteException
customerId
- RemoteException
- for communication-related exceptionspublic com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer getByCustomerId(String customerId) throws RemoteException
customerId
- this String parameter is for support for the format 123-123-1234RemoteException
- for communication-related exceptionsNullPointerException
- if customerId is nullpublic List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> getByCanManageClients(boolean canManageClients) throws RemoteException
canManageClients
- RemoteException
- for communication-related exceptionspublic List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> getByCustomerIdCanManageClients(List<Long> customerIds, boolean canManageClients) throws RemoteException
customerIds
- canManageClients
- RemoteException
- for communication-related exceptionspublic List<com.google.api.ads.adwords.axis.v201409.mcm.PendingInvitation> getPendingInvitations(com.google.api.ads.adwords.axis.v201409.mcm.PendingInvitationSelector selector) throws com.google.api.ads.adwords.axis.v201409.cm.ApiException, RemoteException
selector
- the manager customer id (inviter)
or the client customer id (invitee)RemoteException
- for communication-related exceptionscom.google.api.ads.adwords.axis.v201409.cm.ApiException
- holding a list of service errorspublic List<com.google.api.ads.adwords.axis.v201409.mcm.PendingInvitation> getPendingInvitations() throws com.google.api.ads.adwords.axis.v201409.cm.ApiException, RemoteException
RemoteException
- for communication-related exceptionscom.google.api.ads.adwords.axis.v201409.cm.ApiException
- holding a list of service errorspublic com.google.api.ads.adwords.axis.v201409.mcm.MutateLinkResults mutateLink(com.google.api.ads.adwords.axis.v201409.mcm.LinkOperation[] operations) throws com.google.api.ads.adwords.axis.v201409.cm.ApiException, RemoteException
RemoteException
- for communication-related exceptionscom.google.api.ads.adwords.axis.v201409.cm.ApiException
- holding a list of service errorspublic List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> invitationExtend(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> managedCustomerLinks) throws com.google.api.ads.adwords.axis.v201409.cm.ApiException, RemoteException
managedCustomerLinks
- a list of ManagedCustomerLinkRemoteException
- for communication-related exceptionscom.google.api.ads.adwords.axis.v201409.cm.ApiException
- holding a list of service errorspublic List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> invitationRescind(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> managedCustomerLinks) throws com.google.api.ads.adwords.axis.v201409.cm.ApiException, RemoteException
managedCustomerLinks
- a list of ManagedCustomerLinkRemoteException
- for communication-related exceptionscom.google.api.ads.adwords.axis.v201409.cm.ApiException
- holding a list of service errorspublic List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> invitationAccept(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> managedCustomerLinks) throws com.google.api.ads.adwords.axis.v201409.cm.ApiException, RemoteException
managedCustomerLinks
- a list of ManagedCustomerLinkRemoteException
- for communication-related exceptionscom.google.api.ads.adwords.axis.v201409.cm.ApiException
- holding a list of service errorspublic List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> invitationDecline(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> managedCustomerLinks) throws com.google.api.ads.adwords.axis.v201409.cm.ApiException, RemoteException
managedCustomerLinks
- a list of ManagedCustomerLinkRemoteException
- for communication-related exceptionscom.google.api.ads.adwords.axis.v201409.cm.ApiException
- holding a list of service errorspublic List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> terminateLink(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> managedCustomerLinks) throws com.google.api.ads.adwords.axis.v201409.cm.ApiException, RemoteException
managedCustomerLinks
- a list of ManagedCustomerLinkRemoteException
- for communication-related exceptionscom.google.api.ads.adwords.axis.v201409.cm.ApiException
- holding a list of service errorspublic com.google.api.ads.adwords.axis.v201409.mcm.MutateManagerResults mutateManager(com.google.api.ads.adwords.axis.v201409.mcm.MoveOperation[] operations) throws com.google.api.ads.adwords.axis.v201409.cm.ApiException, RemoteException
RemoteException
- for communication-related exceptionscom.google.api.ads.adwords.axis.v201409.cm.ApiException
- holding a list of service errorspublic List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> moveManager(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomerLink> managedCustomerLinks, Long oldManagerCustomerId) throws com.google.api.ads.adwords.axis.v201409.cm.ApiException, RemoteException
oldManagerCustomerId
- from where the accounts are being movedRemoteException
- for communication-related exceptionscom.google.api.ads.adwords.axis.v201409.cm.ApiException
- holding a list of service errorsCopyright © 2015. All Rights Reserved.