Delete

Deletes a retargeting condition.

Attention.

Disabled method. Use version 5 of the API.

For information about the compatibility of methods between versions Live 4 and 5, see the Migration guide.

Input data

The input data structure in JSON is shown below.

{
   "method": "RetargetingCondition",
   "param": {
      /* RetargetingConditionRequest */
      "Action": (string),
      "SelectionCriteria": {
         /* RetargetingConditionSelectionCriteria */
         "RetargetingConditionIDS": [
            (int)
            ...
         ],
         "Logins": [
            (string)
            ...
         ]
      }
   }
}

Parameters are described below.

Parameter Description Required
RetargetingConditionRequest object
Action Action: Delete. Yes
SelectionCriteria The SelectionCriteria object, which contains criteria for selecting retargeting conditions to delete. Yes
RetargetingConditionSelectionCriteria object
RetargetingConditionIDS Array containing the IDs of retargeting conditions to perform the operation for. No
Logins

Array containing usernames of clients to perform the operation for.

For direct advertisers, this parameter is ignored.

No
Notes
Attention.
  1. For advertisers: If the SelectionCriteria structure is empty, the operation will be performed for all the retargeting conditions.
  2. For agencies: At least one of the RetargetingConditionIDS or Logins parameters must be set. If both parameters are set, the operation will be performed for retargeting conditions that simultaneously meet both criteria: a condition ID set in the RetargetingConditionIDS array, and a username of the condition's owner that is set in the Logins array.

Output data

Returns an empty structure:

{ }

Examples of input data

Python

{
   'Action': 'Delete',
   'SelectionCriteria': {
      'Logins': ['agrom','larry']
   }
}

PHP

array(
   'Action' => 'Delete',
   'SelectionCriteria' => array(
      'Logins' => array('agrom','larry')
   )
)

Perl

{
   'Action' => 'Delete',
   'SelectionCriteria' => {
      'Logins' => ['agrom','larry']
   }
}