Campaign State API

The Campaign State API lets you change the state of an existing T&T campaign.

Create the Base URL

For example:
 https://testandtarget.omniture.com/api?client=user&company=Corp1&email=user@corp1.com&password=pword
Parameter Description
client (Optional) The T&T client code. You must provide a value for either the client parameter or the company parameter to perform the operation.
company (Optional) The Online Marketing Suite company ID. You must provide a value for either the client parameter or the company parameter to perform the operation.
email (Required) The Email address associated with the T&T client.
password (Required) The T&T client password.

Parameters and values are case sensitive.

Add the Query Parameters

For each operation add the parameters and values necessary to set the state of the T&T campaign. For example:
https://testandtarget.omniture.com/api?client=user&company=Corp1&email=user@corp.com&password=pword&operation=setCampaignState&state=Deactivated&campaignId=cam29034&thirdPartyId=extID501>
Parameter Description
operation (Required) Identifies the type of T&T action to execute. To change a T&T campaign state, this value is always setCampaignState.
state (Required) The campaign state. Supported values include Approved and Deactivated.
campaignId (Optional) The campaign ID of the campaign you want to modify. You must provide either campaignId or thirdPartyId.
thirdpartyId (Optional) The third-party identifier associated with the campaign you want to modify. You must provide either campaignId or thirdPartyId
The response to the request alerts you to the success of the operation. For example:
<success>Campaign [7] state set to [Saved]</success>

Comments (0)

Must be logged in to comment. or register now to comment!