Skip to main content
PUT
/
preview
/
campaigns
/
{campaignId}
/
targeting
/
domain-rules
/preview/campaigns/{campaignId}/targeting/domain-rules
curl --request PUT \
  --url https://api.criteo.com/preview/campaigns/{campaignId}/targeting/domain-rules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "attributes": {
      "data": [
        {
          "active": true,
          "readOnly": true,
          "value": "<string>"
        }
      ]
    },
    "type": "<string>"
  }
}
'
{
  "data": {
    "attributes": {
      "data": [
        {
          "active": true,
          "readOnly": true,
          "value": "<string>"
        }
      ]
    },
    "type": "<string>"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

campaignId
string<int32>
required

The campaign id

Body

application/json

Contains the list of items to add to the existing list

Root object containing the API request

data
object

Standard envelope for an entity

Response

200 - application/json

Success

Root object for the API response

data
object

Standard envelope for an entity