@ProviderType @Deprecated public interface TestandtargetService
This service is able to perform operations on both Adobe Target entry points - XML and REST. While care has been taken to make the API backend transparent, to the caller, there are some methods where there are small differences, usually due the XML API providing less information than the REST API. These limitations are clearly documented in the method-level javadocs.
As such, clients of this service are encouraged to use the REST API rather than XML API. This setting is a property on the cloud service configuration and is properly saved by the cloud configuration UI.
TestandtargetCampaignMediator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CAMPAIGN_STATE_APPROVED
Deprecated.
|
static java.lang.String |
CAMPAIGN_STATE_DEACTIVATED
Deprecated.
|
static java.lang.String |
OPERATION_CAMPAIGN_LIST
Deprecated.
campaign list operation
|
static java.lang.String |
OPERATION_DELETE
Deprecated.
Widget offer deletion operation
|
static java.lang.String |
OPERATION_FOLDER_LIST
Deprecated.
folder list operation
|
static java.lang.String |
OPERATION_GET_HTML_OFFER
Deprecated.
HTML offer get operation
|
static java.lang.String |
OPERATION_HTML_OFFER_LIST
Deprecated.
HTML offer list operation
|
static java.lang.String |
OPERATION_REPORT
Deprecated.
|
static java.lang.String |
OPERATION_SAVE
Deprecated.
Widget offer save operation
|
static java.lang.String |
OPERATION_SAVE_CAMPAIGN
Deprecated.
Campaign create operation
|
static java.lang.String |
OPERATION_SAVE_HTML_OFFER
Deprecated.
HTML offer save operation
|
static java.lang.String |
OPERATION_SET_CAMPAIGN_STATE
Deprecated.
save operation
|
static java.lang.String |
PN_CLIENTCODE
Deprecated.
Property name client code
|
static java.lang.String |
PN_EMAIL
Deprecated.
Property name E-Mail
|
static java.lang.String |
PN_PASSWORD
Deprecated.
Property name password
|
Modifier and Type | Method and Description |
---|---|
void |
checkCredentials(java.lang.String clientcode,
java.lang.String email,
java.lang.String password)
Deprecated.
Checks the provided
email , password and
clientcode by issuing an API call on the method campaignList
with a dummy search string. |
long |
createHTMLOffer(Configuration configuration,
SaveOfferRequest request)
Deprecated.
Creates a HTML offer
|
void |
createHTMLOffer(Configuration configuration,
java.lang.String offerName,
java.lang.String folderId,
java.lang.String content)
Deprecated.
Creates an HTML offer.
|
java.lang.String |
createWidgetOffer(Configuration configuration,
java.lang.String name,
java.lang.String url,
java.lang.String id)
Deprecated.
|
Campaign |
getCampaignById(Configuration configuration,
long campaignId,
CampaignType campaignType)
Deprecated.
|
Campaign |
getCampaignByThirdPartyId(Configuration configuration,
java.lang.String thirdPartyId,
CampaignType campaignType)
Deprecated.
Retrieves a campaign from Target using the thirdPartyId property
|
HTMLOffer |
getHTMLOffer(Configuration configuration,
java.lang.String offerName)
Deprecated.
Retrieves a HTML offer from Adobe Target
|
java.util.List<java.lang.String> |
getMboxActivityCollisions(Configuration configuration,
java.lang.String mboxName,
java.lang.String mboxUrl)
Deprecated.
|
PerformanceReport |
getPerformanceReport(Configuration configuration,
PerformanceReportRequest request)
Deprecated.
Retrieves the performance report data for a specific campaign
|
Reports |
getPerformanceReport(Configuration configuration,
ReportType reportType,
java.lang.String thirdPartyCampaignId,
java.lang.String campaignId,
java.util.Date start,
java.util.Date end,
Resolution resolution)
Deprecated.
Retrieves the performance report data for a specific campaign
|
ViewOfferResponse |
getReusableOffer(Configuration configuration,
ViewOfferRequest request)
Deprecated.
|
java.util.Map<java.lang.Integer,java.lang.String> |
listCampaigns(Configuration configuration,
java.util.Date before,
java.util.Date after,
java.lang.String environment,
java.lang.String name,
java.lang.String state,
java.lang.String label)
Deprecated.
|
Folder |
listFolders(Configuration configuration)
Deprecated.
Returns a tree of folders available in Adobe Target.
|
java.util.List<java.lang.String> |
listMboxNames(Configuration configuration)
Deprecated.
Get the mboxes list for a given configuration
|
java.util.Collection<ViewOfferResponse> |
listOffers(Configuration configuration,
ListOffersRequest request)
Deprecated.
Returns a list of offers currently registered in Target
|
java.util.Collection<Offer> |
listOffers(Configuration configuration,
java.lang.String folderId)
Deprecated.
|
java.util.List<Segment> |
listSegments(Configuration configuration,
ListSegmentsRequest request)
Deprecated.
Retrieves a list of segments for the specified configuration
|
java.lang.String |
publishOffer(Configuration configuration,
java.lang.String name,
java.lang.String url,
java.lang.String id)
Deprecated.
|
boolean |
setCampaignState(Configuration configuration,
java.lang.String campaignState,
java.lang.String testAndTargetCampaignId,
java.lang.String thirdPartyCampaignId)
Deprecated.
Updates the state of the campaign in Adobe Target.
|
java.lang.String |
unpublishOffer(Configuration configuration,
java.lang.String name,
java.lang.String url,
java.lang.String id)
Deprecated.
Deletes a widget offer on Adobe Target.
|
static final java.lang.String OPERATION_FOLDER_LIST
static final java.lang.String OPERATION_CAMPAIGN_LIST
static final java.lang.String OPERATION_SAVE_HTML_OFFER
static final java.lang.String OPERATION_GET_HTML_OFFER
static final java.lang.String OPERATION_HTML_OFFER_LIST
static final java.lang.String OPERATION_DELETE
static final java.lang.String OPERATION_SAVE
static final java.lang.String OPERATION_SET_CAMPAIGN_STATE
static final java.lang.String OPERATION_SAVE_CAMPAIGN
static final java.lang.String OPERATION_REPORT
static final java.lang.String PN_EMAIL
static final java.lang.String PN_PASSWORD
static final java.lang.String CAMPAIGN_STATE_APPROVED
static final java.lang.String CAMPAIGN_STATE_DEACTIVATED
static final java.lang.String PN_CLIENTCODE
Folder listFolders(Configuration configuration) throws TestandtargetException
configuration
- Service Configuration
TestandtargetException
- TestandtargetException
on all errors@Deprecated java.lang.String publishOffer(Configuration configuration, java.lang.String name, java.lang.String url, java.lang.String id) throws TestandtargetException
configuration
- Service Configuration
name
- Name of the widget offerurl
- The encoded URL of the third-party server that hosts the
dynamically generated responseid
- The third-party ID of the widget offerTestandtargetException
- TestandtargetException
on all errorsjava.lang.String unpublishOffer(Configuration configuration, java.lang.String name, java.lang.String url, java.lang.String id) throws TestandtargetException
configuration
- Service Configuration
name
- Name of the widget offerurl
- The encoded URL of the third-party server that hosts the
dynamically generated responseid
- The third-party ID of the widget offerTestandtargetException
- TestandtargetException
on all errors@Deprecated java.lang.String createWidgetOffer(Configuration configuration, java.lang.String name, java.lang.String url, java.lang.String id) throws TestandtargetException
configuration
- Service Configuration
name
- Name of the widget offerurl
- The encoded URL of the third-party server that hosts the
dynamically generated responseid
- The third-party ID of the widget offerTestandtargetException
- TestandtargetException
on all errorsvoid createHTMLOffer(Configuration configuration, java.lang.String offerName, java.lang.String folderId, java.lang.String content) throws TestandtargetException
configuration
- Service Configuration
offerName
- Name of the offerfolderId
- Folder idcontent
- Offer content as plain HTML.TestandtargetException
- TestandtargetException
on all errorslong createHTMLOffer(Configuration configuration, SaveOfferRequest request) throws TestandtargetException
configuration
- the cloud-service configurationrequest
- a SaveOfferRequest
object containing the operation's details, such as the offer data.
This object may be incomplete, i.e. just contain the essential data for creating an offer - name and contentTestandtargetException
- TestandtargetException
on all errorsHTMLOffer getHTMLOffer(Configuration configuration, java.lang.String offerName) throws TestandtargetException
configuration
- Service Configuration
offerName
- Name of the offerTestandtargetException
- TestandtargetException
on all errors@Deprecated ViewOfferResponse getReusableOffer(Configuration configuration, ViewOfferRequest request) throws TestandtargetException
configuration
- the cloud services configuration for the Adobe Target accountrequest
- a ViewOfferRequest
object containing the request dataViewOfferResponse
object containing the offer's dataTestandtargetException
- TestandtargetException
on all errors@Deprecated java.util.Collection<Offer> listOffers(Configuration configuration, java.lang.String folderId) throws TestandtargetException
configuration
- Service Configuration
folderId
- Folder idCollection
of Offer
objectsTestandtargetException
- TestandtargetException
on all errorsjava.util.Collection<ViewOfferResponse> listOffers(Configuration configuration, ListOffersRequest request) throws TestandtargetException
configuration
- a reference to the service Configuration
request
- a ListOffersRequest
object containing the request detailsViewOfferResponse
objects.TestandtargetException
- TestandtargetException
on all errors@Deprecated java.util.Map<java.lang.Integer,java.lang.String> listCampaigns(Configuration configuration, java.util.Date before, java.util.Date after, java.lang.String environment, java.lang.String name, java.lang.String state, java.lang.String label) throws TestandtargetException
Map
with campaigns. The Map key contains the campaign
ID and the Map value the campaign name.configuration
- Service Configuration
before
- A date value. Includes campaigns that were active at least
once before the specified date. By default, the before
parameter is 2100-01-01T00:00.after
- A date value. Includes campaigns that were active at least
once after the specified date. By default, the after parameter
is 1969-00-00T00:00.environment
- A URL-encoded host group name, as defined in the T&T Tool. By
default, the environment value is Production.name
- The campaign name, or portion of the campaign name, that you
want to match.state
- Comma-separated list of states to match. Supported values
include: saved, activated, library. By default, the filtered
results include all states.label
- Comma-separated list of labels to match. By default, the
filtered results include all labels.TestandtargetException
- TestandtargetException
on all errorsboolean setCampaignState(Configuration configuration, java.lang.String campaignState, java.lang.String testAndTargetCampaignId, java.lang.String thirdPartyCampaignId) throws TestandtargetException
configuration
- Service Configuration
campaignState
- The campaign state , one of CAMPAIGN_STATE_APPROVED
or CAMPAIGN_STATE_DEACTIVATED
testAndTargetCampaignId
- The campaign identifier. You must provide either testAndTargetCampaignId or thirdPartyCampaignIdthirdPartyCampaignId
- The third-party campaign identifier. You must provide either testAndTargetCampaignId or thirdPartyCampaignIdTestandtargetException
- TestandtargetException
on all errorsvoid checkCredentials(java.lang.String clientcode, java.lang.String email, java.lang.String password) throws TestandtargetException
email
, password
and
clientcode
by issuing an API call on the method campaignList
with a dummy search string.email
- emailpassword
- passwordclientcode
- clientcodeTestandtargetException
- TestandtargetException
Reports getPerformanceReport(Configuration configuration, ReportType reportType, java.lang.String thirdPartyCampaignId, java.lang.String campaignId, java.util.Date start, java.util.Date end, Resolution resolution) throws TestandtargetException
All parameters are mandatory, except for campaignId and thirdPartyId , out of which exactly one must be specified.
configuration
- the cloud services configuration associated with the Adobe Target accountreportType
- a ReportType
object representing the type of reportcampaignId
- the id of the campaign, as defined in Adobe TargetthirdPartyCampaignId
- the third party id of the campaignstart
- the start date of the campaign (used as report filter)end
- the end date of the campaign (used as a report filter)resolution
- the campaign's resolution (hour, day etc.)TestandtargetException
- TestandtargetException
on all errorsPerformanceReport getPerformanceReport(Configuration configuration, PerformanceReportRequest request) throws TestandtargetException
The data returned by this method always returns visits for the PerformanceReportItem.getEntryCount()
method
Note that it is recommended that the request is configured with a campaign id rather than a third party id. The reason is that when using the REST API an additional call is performed to map the third party id to a campaign id.
configuration
- the cloud services configuration associated with the Adobe Target accountrequest
- the request object holding all data needed to retrieve the performance datanull
TestandtargetException
- TestandtargetException
on all errorsjava.util.List<Segment> listSegments(Configuration configuration, ListSegmentsRequest request) throws TestandtargetException
Optional filtering parameters may be set in the request parameter.
configuration
- Service Configuration
request
- optional request parameters. May be null.null
TestandtargetException
- TestandtargetException
on all errors@Deprecated java.util.List<java.lang.String> getMboxActivityCollisions(Configuration configuration, java.lang.String mboxName, java.lang.String mboxUrl) throws TestandtargetException
configuration
- a reference to the Cloud Service configurationmboxName
- the name of the mboxmboxUrl
- the URL of the mbox. "http://localhost" is acceptedTestandtargetException
- TestandtargetException
on all errorsjava.util.List<java.lang.String> listMboxNames(Configuration configuration) throws TestandtargetException
configuration
- a reference to the Cloud Service configurationTestandtargetException
- TestandtargetException
on all errorsCampaign getCampaignByThirdPartyId(Configuration configuration, java.lang.String thirdPartyId, CampaignType campaignType) throws TestandtargetException
configuration
- the Configuration
associated with the Target accountthirdPartyId
- the thirdPartyId of the campaigncampaignType
- the type of the campaign - landingPage
or ab
Campaign
object or null
if the campaign cannot be found in TargetTestandtargetException
- TestandtargetException
on all errors@Deprecated Campaign getCampaignById(Configuration configuration, long campaignId, CampaignType campaignType) throws TestandtargetException
configuration
- the Configuration
associated with the Target accountcampaignId
- the id of the campaign, as received from Target during a previous updatecampaignType
- the type of the campaign - landingPage
or ab
Campaign
or null
if the campaign cannot be found in TargetTestandtargetException
- TestandtargetException
on all errorsCopyright © 2010 - 2020 Adobe. All Rights Reserved