public final class CampaignDelegate extends AbstractGetMutateDelegate<com.google.api.ads.adwords.axis.v201409.cm.Campaign,com.google.api.ads.adwords.axis.v201409.cm.CampaignOperation,com.google.api.ads.adwords.axis.v201409.cm.CampaignServiceInterface>
Campaign
.
Implementation is not thread-safe, because AdWordsSession and Apache Axis service objects are not thread-safe.
Constructor and Description |
---|
CampaignDelegate(AdWordsSession adWordsSession)
Default Constructor.
|
CampaignDelegate(AdWordsSession adWordsSession,
com.google.api.ads.adwords.axis.v201409.cm.CampaignServiceInterface service)
Constructor with custom service.
|
CampaignDelegate(AdWordsSession adWordsSession,
List<SelectorFields.Campaign> selectorFields)
Constructor with custom fields.
|
Modifier and Type | Method and Description |
---|---|
List<com.google.api.ads.adwords.axis.v201409.cm.Campaign> |
getByCampaignId(List<Long> campaignIds)
Retrieves Campaigns by campaignIds.
|
com.google.api.ads.adwords.axis.v201409.cm.Campaign |
getByCampaignId(Long campaignId)
Retrieves a Campaign by campaignId.
|
List<com.google.api.ads.adwords.axis.v201409.cm.Campaign> |
getByLabelIds(List<Long> labelIds)
Retrieves Campaigns by labelIds.
|
List<com.google.api.ads.adwords.axis.v201409.cm.Campaign> |
getByStatus(com.google.api.ads.adwords.axis.v201409.cm.CampaignStatus campaignStatus)
Retrieves Campaigns by campaignStatus.
|
com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel |
insertCampaignLabel(com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel campaignLabel)
Creates a link (CampaignLabel) between Campaigns and Labels.
|
List<com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel> |
insertCampaignLabel(List<com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel> campaignLabels)
Creates a link (CampaignLabel) between Campaigns and Labels.
|
com.google.api.ads.adwords.axis.v201409.cm.Campaign |
remove(com.google.api.ads.adwords.axis.v201409.cm.Campaign campaign)
Removes Campaign.
|
List<com.google.api.ads.adwords.axis.v201409.cm.Campaign> |
remove(List<com.google.api.ads.adwords.axis.v201409.cm.Campaign> list)
Removes Campaign.
|
com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel |
removeCampaignLabel(com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel campaignLabel)
Removes a link (CampaignLabel) between Campaigns and Labels.
|
List<com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel> |
removeCampaignLabel(List<com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel> campaignLabels)
Removes a link (CampaignLabel) between Campaigns and Labels.
|
insert, insert, mutate, update, update
createSelectorBuilder, get, get, get, getByField, getByField, getByField, getByField, getByFieldContainsAny, getClassT, getOneByField, getPage, setGetMethodName
getAdWordsSession, getService
public CampaignDelegate(AdWordsSession adWordsSession)
adWordsSession
- the adWordsSession
to use with the delegate/servicepublic CampaignDelegate(AdWordsSession adWordsSession, com.google.api.ads.adwords.axis.v201409.cm.CampaignServiceInterface service)
adWordsSession
- the adWordsSession
to use with the delegate/serviceservice
- the custom service class for the SOAP servicepublic CampaignDelegate(AdWordsSession adWordsSession, List<SelectorFields.Campaign> 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.cm.Campaign> getByCampaignId(List<Long> campaignIds) throws RemoteException
campaignIds
- the Ids of the CampaignsRemoteException
- for communication-related exceptionspublic com.google.api.ads.adwords.axis.v201409.cm.Campaign getByCampaignId(Long campaignId) throws RemoteException
campaignId
- the Id of the CampaignRemoteException
- for communication-related exceptionspublic List<com.google.api.ads.adwords.axis.v201409.cm.Campaign> getByStatus(com.google.api.ads.adwords.axis.v201409.cm.CampaignStatus campaignStatus) throws RemoteException
campaignStatus
- the Status of the CampaignRemoteException
- for communication-related exceptionspublic List<com.google.api.ads.adwords.axis.v201409.cm.Campaign> getByLabelIds(List<Long> labelIds) throws RemoteException
labelIds
- the Ids of the Labels to retrieve the CampaignsRemoteException
- for communication-related exceptionspublic List<com.google.api.ads.adwords.axis.v201409.cm.Campaign> remove(List<com.google.api.ads.adwords.axis.v201409.cm.Campaign> list) throws RemoteException
remove
in class AbstractGetMutateDelegate<com.google.api.ads.adwords.axis.v201409.cm.Campaign,com.google.api.ads.adwords.axis.v201409.cm.CampaignOperation,com.google.api.ads.adwords.axis.v201409.cm.CampaignServiceInterface>
list
- the list of Campaigns to removeRemoteException
- for communication-related exceptionspublic com.google.api.ads.adwords.axis.v201409.cm.Campaign remove(com.google.api.ads.adwords.axis.v201409.cm.Campaign campaign) throws RemoteException
remove
in class AbstractGetMutateDelegate<com.google.api.ads.adwords.axis.v201409.cm.Campaign,com.google.api.ads.adwords.axis.v201409.cm.CampaignOperation,com.google.api.ads.adwords.axis.v201409.cm.CampaignServiceInterface>
campaign
- the Campaign to removeRemoteException
- for communication-related exceptionspublic List<com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel> insertCampaignLabel(List<com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel> campaignLabels) throws RemoteException
campaignLabels
- the CampaignLabels to addRemoteException
- for communication-related exceptionspublic com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel insertCampaignLabel(com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel campaignLabel) throws RemoteException
campaignLabel
- the CampaignLabel to addRemoteException
- for communication-related exceptionspublic List<com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel> removeCampaignLabel(List<com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel> campaignLabels) throws RemoteException
campaignLabels
- the CampaignLabels to removeRemoteException
- for communication-related exceptionspublic com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel removeCampaignLabel(com.google.api.ads.adwords.axis.v201409.cm.CampaignLabel campaignLabel) throws RemoteException
campaignLabel
- the CampaignLabel to removeRemoteException
- for communication-related exceptionsCopyright © 2015. All Rights Reserved.