Update Campaign
Copied
https://api.ocamba.com/v2/adex/campaigns/{id}
Copied
https://api.ocamba.com/v2/adex/campaigns/{id}
Updates the specific campaign by setting the values of the parameters passed. Any parameters not provided will be left unchanged
Name
Descriptionidstringrequired
Unique identifier for the object defined as a path parameter.Example: 12345
Name
Descriptiondescriptionstring
Additional description of campaign, maximum 2000 characters.Example: Description goes here
frequency_capobject
Name
Descriptionclickobject
Name
Descriptionexpiry_timenumber
Time frame for frequency capping, expressed in hours.Example: 10
max_countnumber
Max number of times a user sees ads for a given time frame.Example: 2
conversionobject
Name
Descriptionexpiry_timenumber
Time frame for frequency capping, expressed in hours.Example: 10
max_countnumber
Max number of times a user sees ads for a given time frame.Example: 2
impressionobject
Name
Descriptionexpiry_timenumber
Time frame for frequency capping, expressed in hours.Example: 10
max_countnumber
Max number of times a user sees ads for a given time frame.Example: 2
iab_categories[ string ]
Array of unique iab category ids, supported by Ocamba. Maximum number of elements is 3.Example: IAB1,IAB2
metadataobject
Name
Descriptionkeystring
Key for the metadata.Each key must be unique within the metadata object. Maximum 100 characters.
Example: key1
valuestring
Value for the metadata. Maximum 500 characters.Example: value1
namestring
Name of the campaign, max 200 characters.Example: DemoCampaign
statusstring
The status of the campaign set by the user. May differ from the actual status of the campaign.Example: active
Possible values: active | verification | rejected | paused | inactive | archived
targetingcampaign-targeting
Targeting object.Campaign Targeting
Name
Descriptionbrowsersobject
Name
Descriptionitems[ object ]
Array of browser items, maximum length limited by subscription plan.categoriesobject
Name
Descriptionitemsarray
Array of strings containing category ids.opstring
String describing operation. Possible values are eq and neqconnectionsobject
Name
Descriptionitems[ string ]
Array of valid connection types supported by Ocamba.opstring
Example: nin
Possible values: in | nin
containersobject
Name
Descriptionitems[ string ]
Array of strings containing containers ids. Maximum length limited by subscription plan.opstring
String describing operation.Example: in
Possible values: in
countriesobject
Name
Descriptionitems[ string ]
Array of country codes supported by ocamba (ISO 3166-1, 2 letter country codes), maximum length limited by subscription plan. Required if lists is not present.lists[ string ]
Array of list ids created by the Ocamba platform. Lists must be of type country, maximum length limited by subscription plan. Required if items is not present.opstring
Example: in
Possible values: in | nin
device_manufacturersobject
Name
Descriptionitems[ string ]
Array of device manufacturer ids, maximum length limited by subscription plan.opstring
Example: in
Possible values: in | nin
device_trackingnumber (integer)
Describes the status of device tracking.Example: 1
Possible values: 0 | 1
device_typesobject
Name
Descriptionitems[ string ]
Array of device types, maximum length limited by subscription plan.opstring
Example: in
Possible values: in | nin
has_user_datanumber (integer)
Describes the availability of user dataExample: 1
Possible values: 0 | 1
ipobject
Name
Descriptionitems[ string ]
Array of ips, each element must be a valid ipv4/cidr, maximum length limited by subscription plan. Required if lists is not present.lists[ string ]
Array of list ids created by the Ocamba platform. Lists must be of type ip, maximum length limited by subscription plan. Required if items is not present.opstring
Example: in
Possible values: in | nin
keywordsobject
Name
Descriptionitemsarray
Array of unique strings containing keywords. One item can be a string with minimum length of 3 and maximum of 150, containing max 20 groups separated by \|. Each group can be made up of these characters: a-zA-Z0-9_%!Example: keyword01!\|keyword02_%
languagesobject
Name
Descriptionitems[ string ]
Array of unique strings. Each element must be a valid 2-letter language code supported by Ocamba platform, maximum number of items limited by subscription plan.opstring
Example: nin
Possible values: in | nin
osobject
Name
Descriptionitems[ object ]
Array of os items, maximum length limited by subscription plan.pagesobject
Name
Descriptionitems[ string ]
Array of domains, maximum length limited by subscription plan. Required if lists is not present.lists[ string ]
Array of list ids created by the Ocamba platform. Lists must be of type domain, maximum length limited by subscription plan. Required if items is not present.opstring
Example: in
Possible values: in | nin
regionsobject
Name
Descriptionitems[ string ]
Array of region ids generated by the Ocamba platform, maximum length limited by subscription plan. Required if lists is not present.lists[ string ]
Array of list ids created by the Ocamba platform. Lists must be of type region, maximum length limited by subscription plan. Required if items is not present.opstring
Example: in
Possible values: in | nin
subidsobject
Name
Descriptionitems[ string ]
Array of subids, maximum length limited by subscription plan. Required if lists is not present.lists[ string ]
Array of list ids created by the Ocamba platform. Lists must be of type subid, maximum length limited by subscription plan. Required if items is not present.opstring
Example: in
Possible values: in | nin
tagsobject
Name
Descriptionitems[ string ]
Array of tag ids, maximum length limited by subscription plan. This field is deprecated and will be removed in future. Please use container as a replacement.opstring
Example: in
Possible values: in | nin
timeobject
Name
Descriptionitems[ string ]
Array of valid cron expressions, maximum length limited by subscription plan.opstring
Example: in
Possible values: in | nin
user_ageobject
Name
Descriptionfromnumber (integer)
Example: 20
time_unitstring
Example: hour
Possible values: hour | day
tonumber (integer)
Example: 30
204 - No Content
note
1 At least one of the updatable fields should be sent via HTTP body in order to change the current state of the campaign.
2 We recommend using containers instead of tags, as tags are deprecated. If both parameters are sent, containers will take priority.
tip
1 If you don't know the campaign id, list the campaigns to find it.