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 |
|---|---|
String |
createCampaign(Configuration configuration,
String campaignName,
String campaignJson)
Creates the campaign from the requestBody provided by the caller.
|
String |
createSegment(Configuration configuration,
String segmentName,
String segmentJson,
boolean isReusable,
String modifiedByUser)
Creates the segment from the requestBody provided by the caller
|
String |
createVisualOffer(Configuration configuration,
String offerName,
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
|
List<TestandtargetAudience> |
getAudienceList(Configuration configuration)
Fetches the list of audiences from Target server
|
String |
getCampaignDetails(Configuration configuration,
long campaignId)
Fetches the details of the campaign
|
String |
getReportSummary(Configuration configuration,
long campaignId)
Given a campaign ID, fetches the summary report from Target server
|
String |
updateCampaign(Configuration configuration,
long campaignId,
String campaignJson)
Updates the campaign to the new requestBody provided by the caller
|
List<TestandtargetAudience> getAudienceList(Configuration configuration) throws TestandtargetException
configuration - a reference to the Cloud Service configurationTestandtargetException - TestandtargetExceptionvoid deleteCampaign(Configuration configuration, long campaignID) throws TestandtargetException
configuration - a reference to the Cloud Service configurationcampaignID - campaign ID of the campaignTestandtargetException - TestandtargetExceptionString createVisualOffer(Configuration configuration, String offerName, String content) throws TestandtargetException
configuration - a reference to the Cloud Service configurationofferName - the name of the offercontent - The content that is to be deliveredTestandtargetException - TestandtargetExceptionString createSegment(Configuration configuration, String segmentName, String segmentJson, boolean isReusable, 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 - TestandtargetExceptionString createCampaign(Configuration configuration, String campaignName, 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 - TestandtargetExceptionvoid deleteSegment(Configuration configuration, long segmentID) throws TestandtargetException
configuration - a reference to the Cloud Service configurationsegmentID - The segment ID to be deletedTestandtargetException - TestandtargetExceptionvoid deleteOffer(Configuration configuration, long offerId) throws TestandtargetException
configuration - a reference to the Cloud Service configurationofferId - The offer to be deletedTestandtargetException - TestandtargetExceptionString updateCampaign(Configuration configuration, long campaignId, String campaignJson) throws TestandtargetException
configuration - a reference to the Cloud Service configurationcampaignId - The id of the campaign to be updatedcampaignJson - The updated campaignTestandtargetException - TestandtargetExceptionString getCampaignDetails(Configuration configuration, long campaignId) throws TestandtargetException
configuration - a reference to the Cloud Service configurationcampaignId - The id of the campaign to be updatedTestandtargetException - TestandtargetExceptionString getReportSummary(Configuration configuration, long campaignId) throws TestandtargetException
configuration - a reference to the Cloud Service configurationcampaignId - campaign ID of the campaignTestandtargetException - TestandtargetException"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"