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
200OKnoneCustom Adv

Example responses

{
"id": 0,
"position": "BELOW_TOPBAR",
"title": "string",
"link": "http://example.com",
"image": "string",
"embed_code": "string",
"active": true,
"created_at": "2019-08-24T14:15:22Z",
"lastmod_datetime": "2019-08-24T14:15:22Z",
"category": 0,
"created_by": 0
}