public final class ExtendedMcc extends Object
| Constructor and Description |
|---|
ExtendedMcc(AdWordsSession adWordsSession)
Constructs an ExtendedMcc from a AdWordsSession.
|
ExtendedMcc(AdWordsSession adWordsSession,
com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer managedCustomer)
Constructs an ExtendedMcc from a AdWordsSession and a ManagedCustomer.
|
ExtendedMcc(AdWordsSession adWordsSession,
String clientCustomerId)
Constructs an ExtendedMcc from a AdWordsSession and a clientCustomerId.
|
ExtendedMcc(DelegateLocator delegateLocator)
Constructs an ExtendedMcc from a AdWordsSession.
|
| Modifier and Type | Method and Description |
|---|---|
static List<ExtendedMcc> |
as(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> managedCustomers,
AdWordsSession adWordsSession)
Transforms a regular list of (MCC) ManagedCustomer into a list of ExtendedManagedCustomers.
|
AdWordsSession |
getAdWordsSession()
Retrieves the AdWordsSession for MCC.
|
List<com.google.api.ads.adwords.axis.v201409.billing.BillingAccount> |
getBillingAccounts()
Gets all the BillingAccounts for the ExtendedMcc.
|
String |
getClientCustomerId()
Retrieves the clientCustomerId for the MCC.
|
DelegateLocator |
getDelegateLocator()
Retrieves the DelegateLocator for the MCC.
|
ExtendedManagedCustomer |
getExtendedManagedCustomer(Long customerId)
Gets the ManagedCustomers for the ExtendedMcc in the customerIds list.
|
List<ExtendedManagedCustomer> |
getExtendedManagedCustomers()
Gets the ManagedCustomers for the ExtendedMcc in the customerIds list.
|
List<ExtendedManagedCustomer> |
getExtendedManagedCustomers(int startIndex,
int numberResults)
Gets the ManagedCustomers for the ExtendedMcc between startIndex and numberResults.
|
List<ExtendedManagedCustomer> |
getExtendedManagedCustomers(List<Long> customerIds)
Gets the ManagedCustomers for the ExtendedMcc in the customerIds list.
|
ExtendedMcc |
getExtendedMcc(Long customerId)
Gets the (sub)MCCs for the ExtendedMcc for a list of customerIds.
|
List<ExtendedMcc> |
getExtendedMccs()
Gets the (sub)MCCs for the ExtendedMcc.
|
List<ExtendedMcc> |
getExtendedMccs(List<Long> customerIds)
Gets the (sub)MCCs for the ExtendedMcc for a list of customerIds.
|
com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer |
getManagedCustomer(Long customerId)
Gets the ManagedCustomers for the ExtendedMcc in the customerIds list.
|
com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer |
getManagedCustomer(String customerId)
Gets the ManagedCustomers for the ExtendedMcc in the customerIds list.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> |
getManagedCustomers()
Gets the ManagedCustomers for the ExtendedMcc in the customerIds list.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> |
getManagedCustomers(int startIndex,
int numberResults)
Gets the ManagedCustomers for the ExtendedMcc between startIndex and numberResults.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> |
getManagedCustomers(List<Long> customerIds)
Gets the ManagedCustomers for the ExtendedMcc in the customerIds list.
|
com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer |
getMcc(Long customerId)
Gets the (sub)MCCs for the ExtendedMcc for a list of customerIds.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> |
getMccs()
Gets the (sub)MCCs for the ExtendedMcc.
|
List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> |
getMccs(List<Long> customerIds)
Gets the (sub)MCCs for the ExtendedMcc for a list of customerIds.
|
ExtendedManagedCustomer |
insertManagedCustomer(com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer apiManagedCustomer)
Inserts a ManagedCustomer into the ExtendedMcc.
|
ExtendedManagedCustomer |
insertManagedCustomer(String name,
String companyName,
String dateTimeZone,
String currencyCode)
Inserts a ManagedCustomer into the ExtendedMcc.
|
List<ExtendedManagedCustomer> |
insertManagedCustomers(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> apiManagedCustomers)
Inserts ManagedCustomers into the ExtendedMcc.
|
static ExtendedMcc |
withOAuth2FromFile()
Creates a new ExtendedMcc using the ads.properties file and using OAuth2.
|
public ExtendedMcc(AdWordsSession adWordsSession)
adWordsSession - the AdWordsSession for the MCCpublic ExtendedMcc(DelegateLocator delegateLocator)
delegateLocator - the DelegateLocator for the MCCpublic ExtendedMcc(AdWordsSession adWordsSession, String clientCustomerId)
adWordsSession - the AdWordsSession for the MCCclientCustomerId - the clientCustomerId as Stringpublic ExtendedMcc(AdWordsSession adWordsSession, com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer managedCustomer)
adWordsSession - the AdWordsSession for the MCCmanagedCustomer - the ManagedCustomer to use in the sessionpublic static ExtendedMcc withOAuth2FromFile() throws OAuthException, ValidationException, com.google.api.ads.common.lib.conf.ConfigurationLoadException
OAuthException - if problem with OAuth2com.google.api.ads.common.lib.conf.ConfigurationLoadException - if problems loading the ad.properties fileValidationException - if the AdWordsSession did not validatepublic static List<ExtendedMcc> as(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> managedCustomers, AdWordsSession adWordsSession)
Note: managedCustomer needs to be a MCC.
managedCustomers - a list of (MCC) ManagedCustomers to convertpublic AdWordsSession getAdWordsSession()
public DelegateLocator getDelegateLocator()
public String getClientCustomerId()
public List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> getMccs(List<Long> customerIds) throws RemoteException
customerIds - the list of MCCs to retrieveUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic List<ExtendedMcc> getExtendedMccs(List<Long> customerIds) throws RemoteException
customerIds - the list of MCCs to retrieveUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> getMccs() throws RemoteException
UtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic List<ExtendedMcc> getExtendedMccs() throws RemoteException
UtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer getMcc(Long customerId) throws RemoteException
customerId - the id of the MCC to retrieveUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic ExtendedMcc getExtendedMcc(Long customerId) throws RemoteException
customerId - the id of the MCC to retrieveUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> getManagedCustomers(List<Long> customerIds) throws RemoteException
customerIds - the list of ids of the ManagedCustomers to retrieveUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic List<ExtendedManagedCustomer> getExtendedManagedCustomers(List<Long> customerIds) throws RemoteException
customerIds - the list of ids of the ManagedCustomers to retrieveUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> getManagedCustomers() throws RemoteException
Note: returns subMccs' ManagedCustomers as well.
UtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> getManagedCustomers(int startIndex, int numberResults) throws RemoteException
Note: returns subMccs' ManagedCustomers as well.
startIndex - index of the first result to retrievenumberResults - total number of result to retrieveUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic List<ExtendedManagedCustomer> getExtendedManagedCustomers() throws RemoteException
Note: returns subMccs' ManagedCustomers as well.
UtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic List<ExtendedManagedCustomer> getExtendedManagedCustomers(int startIndex, int numberResults) throws RemoteException
Note: returns subMccs' ManagedCustomers as well.
startIndex - index of the first result to retrievenumberResults - total number of result to retrieveUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer getManagedCustomer(Long customerId) throws RemoteException
customerId - the customerId of the ManagedCustomer to retrieveUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer getManagedCustomer(String customerId) throws RemoteException
customerId - the customerId of the ManagedCustomer to retrieveUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic ExtendedManagedCustomer getExtendedManagedCustomer(Long customerId) throws RemoteException
customerId - the customerId of the ManagedCustomer to retrieveUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic List<ExtendedManagedCustomer> insertManagedCustomers(List<com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer> apiManagedCustomers) throws RemoteException
Note: ManagedCustomers cannot be updated/removed.
apiManagedCustomers - the list of ManagedCustomers to be insertedUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic ExtendedManagedCustomer insertManagedCustomer(com.google.api.ads.adwords.axis.v201409.mcm.ManagedCustomer apiManagedCustomer) throws RemoteException
Note: ManagedCustomers cannot be updated/removed.
apiManagedCustomer - the ManagedCustomer to be insertedUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic ExtendedManagedCustomer insertManagedCustomer(String name, String companyName, String dateTimeZone, String currencyCode) throws RemoteException
Note: ManagedCustomers cannot be updated/removed.
name - the ManagedCustomer's namecompanyName - the ManagedCustomer's company namedateTimeZone - the ManagedCustomer's time zone in POSIX:
https://developers.google.com/adwords/api/docs/appendix/timezonescurrencyCode - the ManagedCustomer's currency in ISO 4217 format:
https://developers.google.com/adwords/api/docs/appendix/currencycodesUtilityLibraryException - if there is an error in the reflection callRemoteException - for communication-related exceptionspublic List<com.google.api.ads.adwords.axis.v201409.billing.BillingAccount> getBillingAccounts() throws RemoteException
RemoteException - for communication-related exceptionsCopyright © 2015. All Rights Reserved.