Reactivate a Campaign
Makes a campaign that has been previously deactivated active again.
The data to be submitted to the API is composed of the following fields:
|
|
field |
|
Example |
|
Note |
|
|
|
user_id |
|
john1970 |
|
Required |
|
|
|
user_password |
|
1959caadac9b13dcb3 |
|
Required |
|
|
|
type |
|
campaign_reactivate |
|
Required |
|
|
|
account_id |
|
greatwidgets |
|
Required |
|
|
|
campaign_id |
|
1234567890123456 |
|
Required |
|
|
|
|
|
|
|
|
|
|
|
Output Format: |
|
|
|
output |
|
JSON or XML |
|
Optional. If not provided, defaults to XML |
|
|
|
callback |
|
someFunctionName |
|
Optional: JSONP format |
|
|
|
condensed |
|
yes |
|
Optional (No white space) Applies only to JSON(P) output |
|
|
|
|
|
|
|
|
|
Notes:
- The ability to deactivate and reactivate campaigns is based on the permissions of the user_id that is making the call.
- Only one campaign can be reactivated at a time. Loop this call in your program to reactivate multiple campaigns.
- When reactivated a campaign will have retained any of its settings, customer transactions, etc. as when it was deactivated.
Example PHP Request:
If you are using PHP, the $data array would look like this:
- $data['user_id'] = 'john1970';
- $data['user_password'] = '1959caadac9b13dcb3';
- $data['type'] = 'campaign_reactivate';
- $data['account_id'] = 'greatwidgets';
- $data['campaign_id'] = '1234567890123456';
Success XML Response:
- <response status="success">
- <campaign>
- <id>1234567890123456</id>
- </campaign>
- </response>
Error XML Response:
- <response status="error">
- <error>Error message</error>
- </response>
|