Get an advertiser with their ads and revenue totals
curl --request GET \
--url https://api.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}import requests
url = "https://api.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}', 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.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}"
req, _ := http.NewRequest("GET", url, nil)
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.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"email": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"totals": {
"ads": 0,
"activeAds": 0,
"activeSubscriptions": 0,
"impressions": 0,
"clicks": 0,
"monthlyAmount": 0,
"lifetimeAmount": 0,
"currency": "<string>",
"nextRenewalAt": "2023-11-07T05:31:56Z",
"churnedAt": "2023-11-07T05:31:56Z"
},
"latestAd": {
"id": "<string>",
"status": "Pending",
"name": "<string>",
"websiteUrl": "<string>",
"faviconUrl": "<string>",
"reviewedAt": "2023-11-07T05:31:56Z",
"rejectionNote": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"stats": {
"impressions": 0,
"clicks": 0
},
"subscription": {
"id": "<string>",
"status": "Trialing",
"cancelAtPeriodEnd": true,
"currentPeriodStart": "2023-11-07T05:31:56Z",
"currentPeriodEnd": "2023-11-07T05:31:56Z",
"paidAmount": 0,
"tier": {
"id": "<string>",
"name": "<string>",
"weight": 123
},
"tierPrice": {
"id": "<string>",
"interval": "Day",
"intervalCount": 0,
"amount": 0,
"currency": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
},
"ads": [
{
"id": "<string>",
"status": "Pending",
"name": "<string>",
"websiteUrl": "<string>",
"faviconUrl": "<string>",
"reviewedAt": "2023-11-07T05:31:56Z",
"rejectionNote": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"stats": {
"impressions": 0,
"clicks": 0
},
"subscription": {
"id": "<string>",
"status": "Trialing",
"cancelAtPeriodEnd": true,
"currentPeriodStart": "2023-11-07T05:31:56Z",
"currentPeriodEnd": "2023-11-07T05:31:56Z",
"paidAmount": 0,
"tier": {
"id": "<string>",
"name": "<string>",
"weight": 123
},
"tierPrice": {
"id": "<string>",
"interval": "Day",
"intervalCount": 0,
"amount": 0,
"currency": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
]
}{
"defined": true,
"code": "CONFLICT_FIELD",
"status": 409,
"message": "CONFLICT_FIELD",
"data": {
"formErrors": [
"<string>"
],
"fieldErrors": {}
}
}{
"defined": true,
"code": "INPUT_VALIDATION_FAILED",
"status": 422,
"message": "INPUT_VALIDATION_FAILED",
"data": {
"formErrors": [
"<string>"
],
"fieldErrors": {}
}
}Advertisers (Beta)
Get an advertiser with their ads and revenue totals
GET
/
workspaces
/
{workspaceId}
/
advertisers
/
{advertiserId}
Get an advertiser with their ads and revenue totals
curl --request GET \
--url https://api.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}import requests
url = "https://api.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}', 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.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}"
req, _ := http.NewRequest("GET", url, nil)
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.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.revinel.com/v1/workspaces/{workspaceId}/advertisers/{advertiserId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"email": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"totals": {
"ads": 0,
"activeAds": 0,
"activeSubscriptions": 0,
"impressions": 0,
"clicks": 0,
"monthlyAmount": 0,
"lifetimeAmount": 0,
"currency": "<string>",
"nextRenewalAt": "2023-11-07T05:31:56Z",
"churnedAt": "2023-11-07T05:31:56Z"
},
"latestAd": {
"id": "<string>",
"status": "Pending",
"name": "<string>",
"websiteUrl": "<string>",
"faviconUrl": "<string>",
"reviewedAt": "2023-11-07T05:31:56Z",
"rejectionNote": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"stats": {
"impressions": 0,
"clicks": 0
},
"subscription": {
"id": "<string>",
"status": "Trialing",
"cancelAtPeriodEnd": true,
"currentPeriodStart": "2023-11-07T05:31:56Z",
"currentPeriodEnd": "2023-11-07T05:31:56Z",
"paidAmount": 0,
"tier": {
"id": "<string>",
"name": "<string>",
"weight": 123
},
"tierPrice": {
"id": "<string>",
"interval": "Day",
"intervalCount": 0,
"amount": 0,
"currency": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
},
"ads": [
{
"id": "<string>",
"status": "Pending",
"name": "<string>",
"websiteUrl": "<string>",
"faviconUrl": "<string>",
"reviewedAt": "2023-11-07T05:31:56Z",
"rejectionNote": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"stats": {
"impressions": 0,
"clicks": 0
},
"subscription": {
"id": "<string>",
"status": "Trialing",
"cancelAtPeriodEnd": true,
"currentPeriodStart": "2023-11-07T05:31:56Z",
"currentPeriodEnd": "2023-11-07T05:31:56Z",
"paidAmount": 0,
"tier": {
"id": "<string>",
"name": "<string>",
"weight": 123
},
"tierPrice": {
"id": "<string>",
"interval": "Day",
"intervalCount": 0,
"amount": 0,
"currency": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
]
}{
"defined": true,
"code": "CONFLICT_FIELD",
"status": 409,
"message": "CONFLICT_FIELD",
"data": {
"formErrors": [
"<string>"
],
"fieldErrors": {}
}
}{
"defined": true,
"code": "INPUT_VALIDATION_FAILED",
"status": 422,
"message": "INPUT_VALIDATION_FAILED",
"data": {
"formErrors": [
"<string>"
],
"fieldErrors": {}
}
}⌘I