Skip to main content

Get a Specific Custom Adv

This endpoint retrieves a specific custom adv.

info

This operation requires authentication only if content_availability community option is false.

This operation requires custom_adv_enabled community option set to true.

If custom_adv_only_for_anonymous_users_enabled community option is set to true the results will be returned only for anonymous users.

HTTP Request

GET /api/v2/custom_adv/{id}/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this custom adv

Example Request

const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/custom_adv/{id}/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeCustom Adv

Example responses

{
"id": "integer",
"position": "string",
"title": "string",
"link": "string(uri)",
"image": "string",
"embed_code": "string",
"active": "boolean",
"created_at": "string",
"lastmod_datetime": "string",
"category": "integer",
"created_by": "integer"
}