@ProviderType public interface TestandtargetCommandService
This service is able to perform operations on Adobe Target entry points via REST only. This service doesn't interpret the commands at all, it simply acts like a proxy. The onus of creating the correct body of the request lies with the caller. Similarly, wherever mentioned, this command doesn't interpret the data returned by Target server and simply returns it to the caller.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createCampaign(Configuration configuration,
java.lang.String campaignName,
java.lang.String campaignJson)
Creates the campaign from the requestBody provided by the caller.
|
java.lang.String |
createSegment(Configuration configuration,
java.lang.String segmentName,
java.lang.String segmentJson,
boolean isReusable,
java.lang.String modifiedByUser)
Creates the segment from the requestBody provided by the caller
|
java.lang.String |
createVisualOffer(Configuration configuration,
java.lang.String offerName,
java.lang.String content)
Creates the visual offer
|
void |
deleteCampaign(Configuration configuration,
long campaignID)
Deletes the campaign and the offers it is referring to.
|
void |
deleteOffer(Configuration configuration,
long offerId)
Deletes the offer
|
void |
deleteSegment(Configuration configuration,
long segmentID)
Deletes the segment
|
java.util.List<TestandtargetAudience> |
getAudienceList(Configuration configuration)
Fetches the list of audiences from Target server
|
java.lang.String |
getCampaignDetails(Configuration configuration,
long campaignId)
Fetches the details of the campaign
|
java.lang.String |
getReportSummary(Configuration configuration,
long campaignId)
Given a campaign ID, fetches the summary report from Target server
|
java.lang.String |
updateCampaign(Configuration configuration,
long campaignId,
java.lang.String campaignJson)
Updates the campaign to the new requestBody provided by the caller
|
java.util.List<TestandtargetAudience> getAudienceList(Configuration configuration) throws TestandtargetException
configuration
- a reference to the Cloud Service configurationTestandtargetException
- TestandtargetException
on all errorsvoid deleteCampaign(Configuration configuration, long campaignID) throws TestandtargetException
configuration
- a reference to the Cloud Service configurationcampaignID
- campaign ID of the campaignTestandtargetException
- TestandtargetException
on all errorsjava.lang.String createVisualOffer(Configuration configuration, java.lang.String offerName, java.lang.String content) throws TestandtargetException
configuration
- a reference to the Cloud Service configurationofferName
- the name of the offercontent
- The content that is to be deliveredTestandtargetException
- TestandtargetException
on all errorsjava.lang.String createSegment(Configuration configuration, java.lang.String segmentName, java.lang.String segmentJson, boolean isReusable, java.lang.String modifiedByUser) throws TestandtargetException
configuration
- a reference to the Cloud Service configurationsegmentName
- The name of the offersegmentJson
- the request body for the creation of the segmentisReusable
- Boolean
true if the audience is to be reusedmodifiedByUser
- User creating the audienceTestandtargetException
- TestandtargetException
on all errorsjava.lang.String createCampaign(Configuration configuration, java.lang.String campaignName, java.lang.String campaignJson) throws TestandtargetException
configuration
- a reference to the Cloud Service configurationcampaignName
- The name of the campaign. Target doesn't fail in case of duplicate campaign name.campaignJson
- the body of the campaign creation commandTestandtargetException
- TestandtargetException
on all errorsvoid deleteSegment(Configuration configuration, long segmentID) throws TestandtargetException
configuration
- a reference to the Cloud Service configurationsegmentID
- The segment ID to be deletedTestandtargetException
- TestandtargetException
on all errorsvoid deleteOffer(Configuration configuration, long offerId) throws TestandtargetException
configuration
- a reference to the Cloud Service configurationofferId
- The offer to be deletedTestandtargetException
- TestandtargetException
on all errorsjava.lang.String updateCampaign(Configuration configuration, long campaignId, java.lang.String campaignJson) throws TestandtargetException
configuration
- a reference to the Cloud Service configurationcampaignId
- The id of the campaign to be updatedcampaignJson
- The updated campaignTestandtargetException
- TestandtargetException
on all errorsjava.lang.String getCampaignDetails(Configuration configuration, long campaignId) throws TestandtargetException
configuration
- a reference to the Cloud Service configurationcampaignId
- The id of the campaign to be updatedTestandtargetException
- TestandtargetException
on all errorsjava.lang.String getReportSummary(Configuration configuration, long campaignId) throws TestandtargetException
configuration
- a reference to the Cloud Service configurationcampaignId
- campaign ID of the campaignTestandtargetException
- TestandtargetException
on all errorsCopyright © 2010 - 2020 Adobe. All Rights Reserved