Configure Creative distribution


                https://api.ocamba.com/v2/adex/campaigns/{campaign_id}/distribute
            

Configures the distribution for Creatives


Name
Description
campaign_idstringrequired
Unique campaign identifier.


Example: campaign_id=1000001

Name
Description
creatives[ creative-distribute ]
Array of creative distribution objects.
Creative distribute
Name
Description
distribution_ratenumber (int)
Describes the distribution rate of a creative. Minimum value is 0, maximum value is 100.


Example: 33

idstring
Creative id.


Example: 1233144

statusstring
Describes the status of a creative. Possible values are active and inactive.


Example: active

Possible values: active | inactive

statusnumber (int)
Describes the status of distribution on a campaign, 0 - distribution is off 1 - distribution is on.


Example: 1

Possible values: 0 | 1

204 - No Content
Arrow

tip
1 If you don't know the campaign id, list the campaigns to find it.

2 If you don't know the creative id, list the creative to find it.
note
1 All creative ids must belong to the same campaign.

2 Sum of distribution rates across all active creatives on a campaign must be 100.

200 Arrow
{
  "status": 1,
  "creatives": [
    {
      "id": "1223141",
      "distribution_rate": 23,
      "status": "active",
    },
    {
      "id": "1223142",
      "distribution_rate": 77,
      "status": "active"
    }
  ]
}