List Campaign groups
Copied



https://api.ocamba.com/api/v1/adex/campaign-groups
Copied

https://api.ocamba.com/api/v1/adex/campaign-groups
Returns a list of Campaign groups
Name
Descriptioncampaign_idstringrequired
Unique campaign identifier defined as a path parameter.Example: campaign_id=102
sortstring
Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix "-" for descending).Examples:
GET /VERSION/adex/RESOURCE_NAME?sort=name → sorts per name, ascending
GET /VERSION/adex/RESOURCE_NAME?sort=-id → sorts per id descending
GET /VERSION/adex/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending
See tips for the list of sortable fields.
Example: sort=-field1,field2
q_fieldsstring
Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field.Examples:
GET /VERSION/adex/RESOURCE_NAME?q=sou&q_fields=lname → API retuns a certain resource whose lname contains string 'sou'.
GET /VERSION/adex/RESOURCE_NAME?q=sou&q_fields=fname,lname,email → API returns a certain resource that contain string 'sou' in any of the specified fields.
See tips for the list of searchable parameters.
qstring
Set the q parameter value to search for a keyword or search term.Example:
GET /VERSION/adex/RESOURCE_NAME?q=sou → returns a certain resource that contain string 'sou'
See tips for the list of searchable parameters.
200 - OK
Name
Descriptionitems[ campaign-groups ]
An array of all created items.Campaign Group
Name
Descriptioncampaign_countstring
Number of campaigns in group.Example: 8
colorstring
Valid hex color code.Example: #00efa7
create_timedateTime
Timezone: GMT.Example: 2021-09-29 15:40:10
idstring
A unique identifier generated by the Ocamba platform.Example: 103
namestring
Max 30 chars. Name may only contain letters, numbers, dashes and underscores.Example: My-group
totalinteger
A total number of items.Example: 2
1 If you don't know the campaign group id, list the campaign groups to find it.
2 Searchable fields are name and id.
3 Sortable fields are name and id.