Рекламная кампания
curl --request GET \
--url https://api.erlcrussia.com/v3/ads/campaigns/{id} \
--cookie erlc_auth=import requests
url = "https://api.erlcrussia.com/v3/ads/campaigns/{id}"
headers = {"cookie": "erlc_auth="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'erlc_auth='}};
fetch('https://api.erlcrussia.com/v3/ads/campaigns/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.erlcrussia.com/v3/ads/campaigns/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "erlc_auth=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.erlcrussia.com/v3/ads/campaigns/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "erlc_auth=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.erlcrussia.com/v3/ads/campaigns/{id}")
.header("cookie", "erlc_auth=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erlcrussia.com/v3/ads/campaigns/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'erlc_auth='
response = http.request(request)
puts response.read_body{
"id": "ad_7Kq2Zp",
"userId": "123456789012345678",
"title": "Сервер Moscow RP",
"bannerUrl": "https://images.erlcrussia.com/ads/banners/0123456789abcdef.png",
"targetUrl": "https://example.com",
"buttonText": "Перейти",
"placement": "all",
"status": "active",
"purchasedImpressions": 1500,
"remainingImpressions": 1320,
"deliveredImpressions": 180,
"clicksCount": 12,
"createdAt": "2026-10-19T12:00:00Z",
"updatedAt": "2026-10-21T12:00:00Z"
}Реклама
Рекламная кампания
Кампания по ID.
GET
/
ads
/
campaigns
/
{id}
Рекламная кампания
curl --request GET \
--url https://api.erlcrussia.com/v3/ads/campaigns/{id} \
--cookie erlc_auth=import requests
url = "https://api.erlcrussia.com/v3/ads/campaigns/{id}"
headers = {"cookie": "erlc_auth="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'erlc_auth='}};
fetch('https://api.erlcrussia.com/v3/ads/campaigns/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.erlcrussia.com/v3/ads/campaigns/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "erlc_auth=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.erlcrussia.com/v3/ads/campaigns/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "erlc_auth=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.erlcrussia.com/v3/ads/campaigns/{id}")
.header("cookie", "erlc_auth=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erlcrussia.com/v3/ads/campaigns/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'erlc_auth='
response = http.request(request)
puts response.read_body{
"id": "ad_7Kq2Zp",
"userId": "123456789012345678",
"title": "Сервер Moscow RP",
"bannerUrl": "https://images.erlcrussia.com/ads/banners/0123456789abcdef.png",
"targetUrl": "https://example.com",
"buttonText": "Перейти",
"placement": "all",
"status": "active",
"purchasedImpressions": 1500,
"remainingImpressions": 1320,
"deliveredImpressions": 180,
"clicksCount": 12,
"createdAt": "2026-10-19T12:00:00Z",
"updatedAt": "2026-10-21T12:00:00Z"
}Авторизации
CookieAuthBearerAuth
Сессионная HTTP-Only кука авторизации на портале.
Параметры пути
Была ли эта страница полезной?