GET adsensehost.accounts.adclients.get
{{baseUrl}}/accounts/:accountId/adclients/:adClientId
QUERY PARAMS

accountId
adClientId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:accountId/adclients/:adClientId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts/:accountId/adclients/:adClientId")
require "http/client"

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts/:accountId/adclients/:adClientId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:accountId/adclients/:adClientId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:accountId/adclients/:adClientId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts/:accountId/adclients/:adClientId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:accountId/adclients/:adClientId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:accountId/adclients/:adClientId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:accountId/adclients/:adClientId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:accountId/adclients/:adClientId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:accountId/adclients/:adClientId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:accountId/adclients/:adClientId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:accountId/adclients/:adClientId",
  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;
}
request('GET', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts/:accountId/adclients/:adClientId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:accountId/adclients/:adClientId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:accountId/adclients/:adClientId")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts/:accountId/adclients/:adClientId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts/:accountId/adclients/:adClientId
http GET {{baseUrl}}/accounts/:accountId/adclients/:adClientId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/:accountId/adclients/:adClientId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:accountId/adclients/:adClientId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.accounts.adclients.list
{{baseUrl}}/accounts/:accountId/adclients
QUERY PARAMS

accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:accountId/adclients");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts/:accountId/adclients")
require "http/client"

url = "{{baseUrl}}/accounts/:accountId/adclients"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts/:accountId/adclients"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:accountId/adclients");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:accountId/adclients"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts/:accountId/adclients HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:accountId/adclients")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:accountId/adclients"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:accountId/adclients")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts/:accountId/adclients');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:accountId/adclients';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:accountId/adclients',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:accountId/adclients',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts/:accountId/adclients');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:accountId/adclients';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:accountId/adclients"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:accountId/adclients" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:accountId/adclients",
  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;
}
request('GET', '{{baseUrl}}/accounts/:accountId/adclients');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:accountId/adclients');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:accountId/adclients');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:accountId/adclients' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:accountId/adclients' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts/:accountId/adclients")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:accountId/adclients"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:accountId/adclients"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:accountId/adclients")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts/:accountId/adclients') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:accountId/adclients";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts/:accountId/adclients
http GET {{baseUrl}}/accounts/:accountId/adclients
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/:accountId/adclients
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:accountId/adclients")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE adsensehost.accounts.adunits.delete
{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId
QUERY PARAMS

accountId
adClientId
adUnitId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")
require "http/client"

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId
http DELETE {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.accounts.adunits.get
{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId
QUERY PARAMS

accountId
adClientId
adUnitId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")
require "http/client"

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId",
  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;
}
request('GET', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId
http GET {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.accounts.adunits.getAdCode
{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode
QUERY PARAMS

accountId
adClientId
adUnitId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode")
require "http/client"

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode",
  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;
}
request('GET', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode
http GET {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits/:adUnitId/adcode")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST adsensehost.accounts.adunits.insert
{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits
QUERY PARAMS

accountId
adClientId
BODY json

{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits" {:content-type :json
                                                                                              :form-params {:code ""
                                                                                                            :contentAdsSettings {:backupOption {:color ""
                                                                                                                                                :type ""
                                                                                                                                                :url ""}
                                                                                                                                 :size ""
                                                                                                                                 :type ""}
                                                                                                            :customStyle {:colors {:background ""
                                                                                                                                   :border ""
                                                                                                                                   :text ""
                                                                                                                                   :title ""
                                                                                                                                   :url ""}
                                                                                                                          :corners ""
                                                                                                                          :font {:family ""
                                                                                                                                 :size ""}
                                                                                                                          :kind ""}
                                                                                                            :id ""
                                                                                                            :kind ""
                                                                                                            :mobileContentAdsSettings {:markupLanguage ""
                                                                                                                                       :scriptingLanguage ""
                                                                                                                                       :size ""
                                                                                                                                       :type ""}
                                                                                                            :name ""
                                                                                                            :status ""}})
require "http/client"

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"),
    Content = new StringContent("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"

	payload := strings.NewReader("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/accounts/:accountId/adclients/:adClientId/adunits HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 575

{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")
  .header("content-type", "application/json")
  .body("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  code: '',
  contentAdsSettings: {
    backupOption: {
      color: '',
      type: '',
      url: ''
    },
    size: '',
    type: ''
  },
  customStyle: {
    colors: {
      background: '',
      border: '',
      text: '',
      title: '',
      url: ''
    },
    corners: '',
    font: {
      family: '',
      size: ''
    },
    kind: ''
  },
  id: '',
  kind: '',
  mobileContentAdsSettings: {
    markupLanguage: '',
    scriptingLanguage: '',
    size: '',
    type: ''
  },
  name: '',
  status: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits',
  headers: {'content-type': 'application/json'},
  data: {
    code: '',
    contentAdsSettings: {backupOption: {color: '', type: '', url: ''}, size: '', type: ''},
    customStyle: {
      colors: {background: '', border: '', text: '', title: '', url: ''},
      corners: '',
      font: {family: '', size: ''},
      kind: ''
    },
    id: '',
    kind: '',
    mobileContentAdsSettings: {markupLanguage: '', scriptingLanguage: '', size: '', type: ''},
    name: '',
    status: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"code":"","contentAdsSettings":{"backupOption":{"color":"","type":"","url":""},"size":"","type":""},"customStyle":{"colors":{"background":"","border":"","text":"","title":"","url":""},"corners":"","font":{"family":"","size":""},"kind":""},"id":"","kind":"","mobileContentAdsSettings":{"markupLanguage":"","scriptingLanguage":"","size":"","type":""},"name":"","status":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "code": "",\n  "contentAdsSettings": {\n    "backupOption": {\n      "color": "",\n      "type": "",\n      "url": ""\n    },\n    "size": "",\n    "type": ""\n  },\n  "customStyle": {\n    "colors": {\n      "background": "",\n      "border": "",\n      "text": "",\n      "title": "",\n      "url": ""\n    },\n    "corners": "",\n    "font": {\n      "family": "",\n      "size": ""\n    },\n    "kind": ""\n  },\n  "id": "",\n  "kind": "",\n  "mobileContentAdsSettings": {\n    "markupLanguage": "",\n    "scriptingLanguage": "",\n    "size": "",\n    "type": ""\n  },\n  "name": "",\n  "status": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:accountId/adclients/:adClientId/adunits',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  code: '',
  contentAdsSettings: {backupOption: {color: '', type: '', url: ''}, size: '', type: ''},
  customStyle: {
    colors: {background: '', border: '', text: '', title: '', url: ''},
    corners: '',
    font: {family: '', size: ''},
    kind: ''
  },
  id: '',
  kind: '',
  mobileContentAdsSettings: {markupLanguage: '', scriptingLanguage: '', size: '', type: ''},
  name: '',
  status: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits',
  headers: {'content-type': 'application/json'},
  body: {
    code: '',
    contentAdsSettings: {backupOption: {color: '', type: '', url: ''}, size: '', type: ''},
    customStyle: {
      colors: {background: '', border: '', text: '', title: '', url: ''},
      corners: '',
      font: {family: '', size: ''},
      kind: ''
    },
    id: '',
    kind: '',
    mobileContentAdsSettings: {markupLanguage: '', scriptingLanguage: '', size: '', type: ''},
    name: '',
    status: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  code: '',
  contentAdsSettings: {
    backupOption: {
      color: '',
      type: '',
      url: ''
    },
    size: '',
    type: ''
  },
  customStyle: {
    colors: {
      background: '',
      border: '',
      text: '',
      title: '',
      url: ''
    },
    corners: '',
    font: {
      family: '',
      size: ''
    },
    kind: ''
  },
  id: '',
  kind: '',
  mobileContentAdsSettings: {
    markupLanguage: '',
    scriptingLanguage: '',
    size: '',
    type: ''
  },
  name: '',
  status: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits',
  headers: {'content-type': 'application/json'},
  data: {
    code: '',
    contentAdsSettings: {backupOption: {color: '', type: '', url: ''}, size: '', type: ''},
    customStyle: {
      colors: {background: '', border: '', text: '', title: '', url: ''},
      corners: '',
      font: {family: '', size: ''},
      kind: ''
    },
    id: '',
    kind: '',
    mobileContentAdsSettings: {markupLanguage: '', scriptingLanguage: '', size: '', type: ''},
    name: '',
    status: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"code":"","contentAdsSettings":{"backupOption":{"color":"","type":"","url":""},"size":"","type":""},"customStyle":{"colors":{"background":"","border":"","text":"","title":"","url":""},"corners":"","font":{"family":"","size":""},"kind":""},"id":"","kind":"","mobileContentAdsSettings":{"markupLanguage":"","scriptingLanguage":"","size":"","type":""},"name":"","status":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"code": @"",
                              @"contentAdsSettings": @{ @"backupOption": @{ @"color": @"", @"type": @"", @"url": @"" }, @"size": @"", @"type": @"" },
                              @"customStyle": @{ @"colors": @{ @"background": @"", @"border": @"", @"text": @"", @"title": @"", @"url": @"" }, @"corners": @"", @"font": @{ @"family": @"", @"size": @"" }, @"kind": @"" },
                              @"id": @"",
                              @"kind": @"",
                              @"mobileContentAdsSettings": @{ @"markupLanguage": @"", @"scriptingLanguage": @"", @"size": @"", @"type": @"" },
                              @"name": @"",
                              @"status": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'code' => '',
    'contentAdsSettings' => [
        'backupOption' => [
                'color' => '',
                'type' => '',
                'url' => ''
        ],
        'size' => '',
        'type' => ''
    ],
    'customStyle' => [
        'colors' => [
                'background' => '',
                'border' => '',
                'text' => '',
                'title' => '',
                'url' => ''
        ],
        'corners' => '',
        'font' => [
                'family' => '',
                'size' => ''
        ],
        'kind' => ''
    ],
    'id' => '',
    'kind' => '',
    'mobileContentAdsSettings' => [
        'markupLanguage' => '',
        'scriptingLanguage' => '',
        'size' => '',
        'type' => ''
    ],
    'name' => '',
    'status' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits', [
  'body' => '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'code' => '',
  'contentAdsSettings' => [
    'backupOption' => [
        'color' => '',
        'type' => '',
        'url' => ''
    ],
    'size' => '',
    'type' => ''
  ],
  'customStyle' => [
    'colors' => [
        'background' => '',
        'border' => '',
        'text' => '',
        'title' => '',
        'url' => ''
    ],
    'corners' => '',
    'font' => [
        'family' => '',
        'size' => ''
    ],
    'kind' => ''
  ],
  'id' => '',
  'kind' => '',
  'mobileContentAdsSettings' => [
    'markupLanguage' => '',
    'scriptingLanguage' => '',
    'size' => '',
    'type' => ''
  ],
  'name' => '',
  'status' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'code' => '',
  'contentAdsSettings' => [
    'backupOption' => [
        'color' => '',
        'type' => '',
        'url' => ''
    ],
    'size' => '',
    'type' => ''
  ],
  'customStyle' => [
    'colors' => [
        'background' => '',
        'border' => '',
        'text' => '',
        'title' => '',
        'url' => ''
    ],
    'corners' => '',
    'font' => [
        'family' => '',
        'size' => ''
    ],
    'kind' => ''
  ],
  'id' => '',
  'kind' => '',
  'mobileContentAdsSettings' => [
    'markupLanguage' => '',
    'scriptingLanguage' => '',
    'size' => '',
    'type' => ''
  ],
  'name' => '',
  'status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/accounts/:accountId/adclients/:adClientId/adunits", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"

payload = {
    "code": "",
    "contentAdsSettings": {
        "backupOption": {
            "color": "",
            "type": "",
            "url": ""
        },
        "size": "",
        "type": ""
    },
    "customStyle": {
        "colors": {
            "background": "",
            "border": "",
            "text": "",
            "title": "",
            "url": ""
        },
        "corners": "",
        "font": {
            "family": "",
            "size": ""
        },
        "kind": ""
    },
    "id": "",
    "kind": "",
    "mobileContentAdsSettings": {
        "markupLanguage": "",
        "scriptingLanguage": "",
        "size": "",
        "type": ""
    },
    "name": "",
    "status": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"

payload <- "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/accounts/:accountId/adclients/:adClientId/adunits') do |req|
  req.body = "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits";

    let payload = json!({
        "code": "",
        "contentAdsSettings": json!({
            "backupOption": json!({
                "color": "",
                "type": "",
                "url": ""
            }),
            "size": "",
            "type": ""
        }),
        "customStyle": json!({
            "colors": json!({
                "background": "",
                "border": "",
                "text": "",
                "title": "",
                "url": ""
            }),
            "corners": "",
            "font": json!({
                "family": "",
                "size": ""
            }),
            "kind": ""
        }),
        "id": "",
        "kind": "",
        "mobileContentAdsSettings": json!({
            "markupLanguage": "",
            "scriptingLanguage": "",
            "size": "",
            "type": ""
        }),
        "name": "",
        "status": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits \
  --header 'content-type: application/json' \
  --data '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}'
echo '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}' |  \
  http POST {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "code": "",\n  "contentAdsSettings": {\n    "backupOption": {\n      "color": "",\n      "type": "",\n      "url": ""\n    },\n    "size": "",\n    "type": ""\n  },\n  "customStyle": {\n    "colors": {\n      "background": "",\n      "border": "",\n      "text": "",\n      "title": "",\n      "url": ""\n    },\n    "corners": "",\n    "font": {\n      "family": "",\n      "size": ""\n    },\n    "kind": ""\n  },\n  "id": "",\n  "kind": "",\n  "mobileContentAdsSettings": {\n    "markupLanguage": "",\n    "scriptingLanguage": "",\n    "size": "",\n    "type": ""\n  },\n  "name": "",\n  "status": ""\n}' \
  --output-document \
  - {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "code": "",
  "contentAdsSettings": [
    "backupOption": [
      "color": "",
      "type": "",
      "url": ""
    ],
    "size": "",
    "type": ""
  ],
  "customStyle": [
    "colors": [
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    ],
    "corners": "",
    "font": [
      "family": "",
      "size": ""
    ],
    "kind": ""
  ],
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": [
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  ],
  "name": "",
  "status": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.accounts.adunits.list
{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits
QUERY PARAMS

accountId
adClientId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")
require "http/client"

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts/:accountId/adclients/:adClientId/adunits HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:accountId/adclients/:adClientId/adunits',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits",
  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;
}
request('GET', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts/:accountId/adclients/:adClientId/adunits")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts/:accountId/adclients/:adClientId/adunits') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits
http GET {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PATCH adsensehost.accounts.adunits.patch
{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits
QUERY PARAMS

adUnitId
accountId
adClientId
BODY json

{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits" {:query-params {:adUnitId ""}
                                                                                               :content-type :json
                                                                                               :form-params {:code ""
                                                                                                             :contentAdsSettings {:backupOption {:color ""
                                                                                                                                                 :type ""
                                                                                                                                                 :url ""}
                                                                                                                                  :size ""
                                                                                                                                  :type ""}
                                                                                                             :customStyle {:colors {:background ""
                                                                                                                                    :border ""
                                                                                                                                    :text ""
                                                                                                                                    :title ""
                                                                                                                                    :url ""}
                                                                                                                           :corners ""
                                                                                                                           :font {:family ""
                                                                                                                                  :size ""}
                                                                                                                           :kind ""}
                                                                                                             :id ""
                                                                                                             :kind ""
                                                                                                             :mobileContentAdsSettings {:markupLanguage ""
                                                                                                                                        :scriptingLanguage ""
                                                                                                                                        :size ""
                                                                                                                                        :type ""}
                                                                                                             :name ""
                                                                                                             :status ""}})
require "http/client"

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId="),
    Content = new StringContent("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId="

	payload := strings.NewReader("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PATCH /baseUrl/accounts/:accountId/adclients/:adClientId/adunits?adUnitId= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 575

{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=")
  .header("content-type", "application/json")
  .body("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  code: '',
  contentAdsSettings: {
    backupOption: {
      color: '',
      type: '',
      url: ''
    },
    size: '',
    type: ''
  },
  customStyle: {
    colors: {
      background: '',
      border: '',
      text: '',
      title: '',
      url: ''
    },
    corners: '',
    font: {
      family: '',
      size: ''
    },
    kind: ''
  },
  id: '',
  kind: '',
  mobileContentAdsSettings: {
    markupLanguage: '',
    scriptingLanguage: '',
    size: '',
    type: ''
  },
  name: '',
  status: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits',
  params: {adUnitId: ''},
  headers: {'content-type': 'application/json'},
  data: {
    code: '',
    contentAdsSettings: {backupOption: {color: '', type: '', url: ''}, size: '', type: ''},
    customStyle: {
      colors: {background: '', border: '', text: '', title: '', url: ''},
      corners: '',
      font: {family: '', size: ''},
      kind: ''
    },
    id: '',
    kind: '',
    mobileContentAdsSettings: {markupLanguage: '', scriptingLanguage: '', size: '', type: ''},
    name: '',
    status: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"code":"","contentAdsSettings":{"backupOption":{"color":"","type":"","url":""},"size":"","type":""},"customStyle":{"colors":{"background":"","border":"","text":"","title":"","url":""},"corners":"","font":{"family":"","size":""},"kind":""},"id":"","kind":"","mobileContentAdsSettings":{"markupLanguage":"","scriptingLanguage":"","size":"","type":""},"name":"","status":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "code": "",\n  "contentAdsSettings": {\n    "backupOption": {\n      "color": "",\n      "type": "",\n      "url": ""\n    },\n    "size": "",\n    "type": ""\n  },\n  "customStyle": {\n    "colors": {\n      "background": "",\n      "border": "",\n      "text": "",\n      "title": "",\n      "url": ""\n    },\n    "corners": "",\n    "font": {\n      "family": "",\n      "size": ""\n    },\n    "kind": ""\n  },\n  "id": "",\n  "kind": "",\n  "mobileContentAdsSettings": {\n    "markupLanguage": "",\n    "scriptingLanguage": "",\n    "size": "",\n    "type": ""\n  },\n  "name": "",\n  "status": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  code: '',
  contentAdsSettings: {backupOption: {color: '', type: '', url: ''}, size: '', type: ''},
  customStyle: {
    colors: {background: '', border: '', text: '', title: '', url: ''},
    corners: '',
    font: {family: '', size: ''},
    kind: ''
  },
  id: '',
  kind: '',
  mobileContentAdsSettings: {markupLanguage: '', scriptingLanguage: '', size: '', type: ''},
  name: '',
  status: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits',
  qs: {adUnitId: ''},
  headers: {'content-type': 'application/json'},
  body: {
    code: '',
    contentAdsSettings: {backupOption: {color: '', type: '', url: ''}, size: '', type: ''},
    customStyle: {
      colors: {background: '', border: '', text: '', title: '', url: ''},
      corners: '',
      font: {family: '', size: ''},
      kind: ''
    },
    id: '',
    kind: '',
    mobileContentAdsSettings: {markupLanguage: '', scriptingLanguage: '', size: '', type: ''},
    name: '',
    status: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PATCH', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');

req.query({
  adUnitId: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  code: '',
  contentAdsSettings: {
    backupOption: {
      color: '',
      type: '',
      url: ''
    },
    size: '',
    type: ''
  },
  customStyle: {
    colors: {
      background: '',
      border: '',
      text: '',
      title: '',
      url: ''
    },
    corners: '',
    font: {
      family: '',
      size: ''
    },
    kind: ''
  },
  id: '',
  kind: '',
  mobileContentAdsSettings: {
    markupLanguage: '',
    scriptingLanguage: '',
    size: '',
    type: ''
  },
  name: '',
  status: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits',
  params: {adUnitId: ''},
  headers: {'content-type': 'application/json'},
  data: {
    code: '',
    contentAdsSettings: {backupOption: {color: '', type: '', url: ''}, size: '', type: ''},
    customStyle: {
      colors: {background: '', border: '', text: '', title: '', url: ''},
      corners: '',
      font: {family: '', size: ''},
      kind: ''
    },
    id: '',
    kind: '',
    mobileContentAdsSettings: {markupLanguage: '', scriptingLanguage: '', size: '', type: ''},
    name: '',
    status: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"code":"","contentAdsSettings":{"backupOption":{"color":"","type":"","url":""},"size":"","type":""},"customStyle":{"colors":{"background":"","border":"","text":"","title":"","url":""},"corners":"","font":{"family":"","size":""},"kind":""},"id":"","kind":"","mobileContentAdsSettings":{"markupLanguage":"","scriptingLanguage":"","size":"","type":""},"name":"","status":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"code": @"",
                              @"contentAdsSettings": @{ @"backupOption": @{ @"color": @"", @"type": @"", @"url": @"" }, @"size": @"", @"type": @"" },
                              @"customStyle": @{ @"colors": @{ @"background": @"", @"border": @"", @"text": @"", @"title": @"", @"url": @"" }, @"corners": @"", @"font": @{ @"family": @"", @"size": @"" }, @"kind": @"" },
                              @"id": @"",
                              @"kind": @"",
                              @"mobileContentAdsSettings": @{ @"markupLanguage": @"", @"scriptingLanguage": @"", @"size": @"", @"type": @"" },
                              @"name": @"",
                              @"status": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'code' => '',
    'contentAdsSettings' => [
        'backupOption' => [
                'color' => '',
                'type' => '',
                'url' => ''
        ],
        'size' => '',
        'type' => ''
    ],
    'customStyle' => [
        'colors' => [
                'background' => '',
                'border' => '',
                'text' => '',
                'title' => '',
                'url' => ''
        ],
        'corners' => '',
        'font' => [
                'family' => '',
                'size' => ''
        ],
        'kind' => ''
    ],
    'id' => '',
    'kind' => '',
    'mobileContentAdsSettings' => [
        'markupLanguage' => '',
        'scriptingLanguage' => '',
        'size' => '',
        'type' => ''
    ],
    'name' => '',
    'status' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=', [
  'body' => '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'adUnitId' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'code' => '',
  'contentAdsSettings' => [
    'backupOption' => [
        'color' => '',
        'type' => '',
        'url' => ''
    ],
    'size' => '',
    'type' => ''
  ],
  'customStyle' => [
    'colors' => [
        'background' => '',
        'border' => '',
        'text' => '',
        'title' => '',
        'url' => ''
    ],
    'corners' => '',
    'font' => [
        'family' => '',
        'size' => ''
    ],
    'kind' => ''
  ],
  'id' => '',
  'kind' => '',
  'mobileContentAdsSettings' => [
    'markupLanguage' => '',
    'scriptingLanguage' => '',
    'size' => '',
    'type' => ''
  ],
  'name' => '',
  'status' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'code' => '',
  'contentAdsSettings' => [
    'backupOption' => [
        'color' => '',
        'type' => '',
        'url' => ''
    ],
    'size' => '',
    'type' => ''
  ],
  'customStyle' => [
    'colors' => [
        'background' => '',
        'border' => '',
        'text' => '',
        'title' => '',
        'url' => ''
    ],
    'corners' => '',
    'font' => [
        'family' => '',
        'size' => ''
    ],
    'kind' => ''
  ],
  'id' => '',
  'kind' => '',
  'mobileContentAdsSettings' => [
    'markupLanguage' => '',
    'scriptingLanguage' => '',
    'size' => '',
    'type' => ''
  ],
  'name' => '',
  'status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'adUnitId' => ''
]));

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"

querystring = {"adUnitId":""}

payload = {
    "code": "",
    "contentAdsSettings": {
        "backupOption": {
            "color": "",
            "type": "",
            "url": ""
        },
        "size": "",
        "type": ""
    },
    "customStyle": {
        "colors": {
            "background": "",
            "border": "",
            "text": "",
            "title": "",
            "url": ""
        },
        "corners": "",
        "font": {
            "family": "",
            "size": ""
        },
        "kind": ""
    },
    "id": "",
    "kind": "",
    "mobileContentAdsSettings": {
        "markupLanguage": "",
        "scriptingLanguage": "",
        "size": "",
        "type": ""
    },
    "name": "",
    "status": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"

queryString <- list(adUnitId = "")

payload <- "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.patch('/baseUrl/accounts/:accountId/adclients/:adClientId/adunits') do |req|
  req.params['adUnitId'] = ''
  req.body = "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits";

    let querystring = [
        ("adUnitId", ""),
    ];

    let payload = json!({
        "code": "",
        "contentAdsSettings": json!({
            "backupOption": json!({
                "color": "",
                "type": "",
                "url": ""
            }),
            "size": "",
            "type": ""
        }),
        "customStyle": json!({
            "colors": json!({
                "background": "",
                "border": "",
                "text": "",
                "title": "",
                "url": ""
            }),
            "corners": "",
            "font": json!({
                "family": "",
                "size": ""
            }),
            "kind": ""
        }),
        "id": "",
        "kind": "",
        "mobileContentAdsSettings": json!({
            "markupLanguage": "",
            "scriptingLanguage": "",
            "size": "",
            "type": ""
        }),
        "name": "",
        "status": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=' \
  --header 'content-type: application/json' \
  --data '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}'
echo '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}' |  \
  http PATCH '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "code": "",\n  "contentAdsSettings": {\n    "backupOption": {\n      "color": "",\n      "type": "",\n      "url": ""\n    },\n    "size": "",\n    "type": ""\n  },\n  "customStyle": {\n    "colors": {\n      "background": "",\n      "border": "",\n      "text": "",\n      "title": "",\n      "url": ""\n    },\n    "corners": "",\n    "font": {\n      "family": "",\n      "size": ""\n    },\n    "kind": ""\n  },\n  "id": "",\n  "kind": "",\n  "mobileContentAdsSettings": {\n    "markupLanguage": "",\n    "scriptingLanguage": "",\n    "size": "",\n    "type": ""\n  },\n  "name": "",\n  "status": ""\n}' \
  --output-document \
  - '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "code": "",
  "contentAdsSettings": [
    "backupOption": [
      "color": "",
      "type": "",
      "url": ""
    ],
    "size": "",
    "type": ""
  ],
  "customStyle": [
    "colors": [
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    ],
    "corners": "",
    "font": [
      "family": "",
      "size": ""
    ],
    "kind": ""
  ],
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": [
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  ],
  "name": "",
  "status": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits?adUnitId=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT adsensehost.accounts.adunits.update
{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits
QUERY PARAMS

accountId
adClientId
BODY json

{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits" {:content-type :json
                                                                                             :form-params {:code ""
                                                                                                           :contentAdsSettings {:backupOption {:color ""
                                                                                                                                               :type ""
                                                                                                                                               :url ""}
                                                                                                                                :size ""
                                                                                                                                :type ""}
                                                                                                           :customStyle {:colors {:background ""
                                                                                                                                  :border ""
                                                                                                                                  :text ""
                                                                                                                                  :title ""
                                                                                                                                  :url ""}
                                                                                                                         :corners ""
                                                                                                                         :font {:family ""
                                                                                                                                :size ""}
                                                                                                                         :kind ""}
                                                                                                           :id ""
                                                                                                           :kind ""
                                                                                                           :mobileContentAdsSettings {:markupLanguage ""
                                                                                                                                      :scriptingLanguage ""
                                                                                                                                      :size ""
                                                                                                                                      :type ""}
                                                                                                           :name ""
                                                                                                           :status ""}})
require "http/client"

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"),
    Content = new StringContent("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"

	payload := strings.NewReader("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/accounts/:accountId/adclients/:adClientId/adunits HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 575

{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")
  .header("content-type", "application/json")
  .body("{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  code: '',
  contentAdsSettings: {
    backupOption: {
      color: '',
      type: '',
      url: ''
    },
    size: '',
    type: ''
  },
  customStyle: {
    colors: {
      background: '',
      border: '',
      text: '',
      title: '',
      url: ''
    },
    corners: '',
    font: {
      family: '',
      size: ''
    },
    kind: ''
  },
  id: '',
  kind: '',
  mobileContentAdsSettings: {
    markupLanguage: '',
    scriptingLanguage: '',
    size: '',
    type: ''
  },
  name: '',
  status: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits',
  headers: {'content-type': 'application/json'},
  data: {
    code: '',
    contentAdsSettings: {backupOption: {color: '', type: '', url: ''}, size: '', type: ''},
    customStyle: {
      colors: {background: '', border: '', text: '', title: '', url: ''},
      corners: '',
      font: {family: '', size: ''},
      kind: ''
    },
    id: '',
    kind: '',
    mobileContentAdsSettings: {markupLanguage: '', scriptingLanguage: '', size: '', type: ''},
    name: '',
    status: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"code":"","contentAdsSettings":{"backupOption":{"color":"","type":"","url":""},"size":"","type":""},"customStyle":{"colors":{"background":"","border":"","text":"","title":"","url":""},"corners":"","font":{"family":"","size":""},"kind":""},"id":"","kind":"","mobileContentAdsSettings":{"markupLanguage":"","scriptingLanguage":"","size":"","type":""},"name":"","status":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "code": "",\n  "contentAdsSettings": {\n    "backupOption": {\n      "color": "",\n      "type": "",\n      "url": ""\n    },\n    "size": "",\n    "type": ""\n  },\n  "customStyle": {\n    "colors": {\n      "background": "",\n      "border": "",\n      "text": "",\n      "title": "",\n      "url": ""\n    },\n    "corners": "",\n    "font": {\n      "family": "",\n      "size": ""\n    },\n    "kind": ""\n  },\n  "id": "",\n  "kind": "",\n  "mobileContentAdsSettings": {\n    "markupLanguage": "",\n    "scriptingLanguage": "",\n    "size": "",\n    "type": ""\n  },\n  "name": "",\n  "status": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:accountId/adclients/:adClientId/adunits',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  code: '',
  contentAdsSettings: {backupOption: {color: '', type: '', url: ''}, size: '', type: ''},
  customStyle: {
    colors: {background: '', border: '', text: '', title: '', url: ''},
    corners: '',
    font: {family: '', size: ''},
    kind: ''
  },
  id: '',
  kind: '',
  mobileContentAdsSettings: {markupLanguage: '', scriptingLanguage: '', size: '', type: ''},
  name: '',
  status: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits',
  headers: {'content-type': 'application/json'},
  body: {
    code: '',
    contentAdsSettings: {backupOption: {color: '', type: '', url: ''}, size: '', type: ''},
    customStyle: {
      colors: {background: '', border: '', text: '', title: '', url: ''},
      corners: '',
      font: {family: '', size: ''},
      kind: ''
    },
    id: '',
    kind: '',
    mobileContentAdsSettings: {markupLanguage: '', scriptingLanguage: '', size: '', type: ''},
    name: '',
    status: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  code: '',
  contentAdsSettings: {
    backupOption: {
      color: '',
      type: '',
      url: ''
    },
    size: '',
    type: ''
  },
  customStyle: {
    colors: {
      background: '',
      border: '',
      text: '',
      title: '',
      url: ''
    },
    corners: '',
    font: {
      family: '',
      size: ''
    },
    kind: ''
  },
  id: '',
  kind: '',
  mobileContentAdsSettings: {
    markupLanguage: '',
    scriptingLanguage: '',
    size: '',
    type: ''
  },
  name: '',
  status: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits',
  headers: {'content-type': 'application/json'},
  data: {
    code: '',
    contentAdsSettings: {backupOption: {color: '', type: '', url: ''}, size: '', type: ''},
    customStyle: {
      colors: {background: '', border: '', text: '', title: '', url: ''},
      corners: '',
      font: {family: '', size: ''},
      kind: ''
    },
    id: '',
    kind: '',
    mobileContentAdsSettings: {markupLanguage: '', scriptingLanguage: '', size: '', type: ''},
    name: '',
    status: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"code":"","contentAdsSettings":{"backupOption":{"color":"","type":"","url":""},"size":"","type":""},"customStyle":{"colors":{"background":"","border":"","text":"","title":"","url":""},"corners":"","font":{"family":"","size":""},"kind":""},"id":"","kind":"","mobileContentAdsSettings":{"markupLanguage":"","scriptingLanguage":"","size":"","type":""},"name":"","status":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"code": @"",
                              @"contentAdsSettings": @{ @"backupOption": @{ @"color": @"", @"type": @"", @"url": @"" }, @"size": @"", @"type": @"" },
                              @"customStyle": @{ @"colors": @{ @"background": @"", @"border": @"", @"text": @"", @"title": @"", @"url": @"" }, @"corners": @"", @"font": @{ @"family": @"", @"size": @"" }, @"kind": @"" },
                              @"id": @"",
                              @"kind": @"",
                              @"mobileContentAdsSettings": @{ @"markupLanguage": @"", @"scriptingLanguage": @"", @"size": @"", @"type": @"" },
                              @"name": @"",
                              @"status": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'code' => '',
    'contentAdsSettings' => [
        'backupOption' => [
                'color' => '',
                'type' => '',
                'url' => ''
        ],
        'size' => '',
        'type' => ''
    ],
    'customStyle' => [
        'colors' => [
                'background' => '',
                'border' => '',
                'text' => '',
                'title' => '',
                'url' => ''
        ],
        'corners' => '',
        'font' => [
                'family' => '',
                'size' => ''
        ],
        'kind' => ''
    ],
    'id' => '',
    'kind' => '',
    'mobileContentAdsSettings' => [
        'markupLanguage' => '',
        'scriptingLanguage' => '',
        'size' => '',
        'type' => ''
    ],
    'name' => '',
    'status' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits', [
  'body' => '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'code' => '',
  'contentAdsSettings' => [
    'backupOption' => [
        'color' => '',
        'type' => '',
        'url' => ''
    ],
    'size' => '',
    'type' => ''
  ],
  'customStyle' => [
    'colors' => [
        'background' => '',
        'border' => '',
        'text' => '',
        'title' => '',
        'url' => ''
    ],
    'corners' => '',
    'font' => [
        'family' => '',
        'size' => ''
    ],
    'kind' => ''
  ],
  'id' => '',
  'kind' => '',
  'mobileContentAdsSettings' => [
    'markupLanguage' => '',
    'scriptingLanguage' => '',
    'size' => '',
    'type' => ''
  ],
  'name' => '',
  'status' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'code' => '',
  'contentAdsSettings' => [
    'backupOption' => [
        'color' => '',
        'type' => '',
        'url' => ''
    ],
    'size' => '',
    'type' => ''
  ],
  'customStyle' => [
    'colors' => [
        'background' => '',
        'border' => '',
        'text' => '',
        'title' => '',
        'url' => ''
    ],
    'corners' => '',
    'font' => [
        'family' => '',
        'size' => ''
    ],
    'kind' => ''
  ],
  'id' => '',
  'kind' => '',
  'mobileContentAdsSettings' => [
    'markupLanguage' => '',
    'scriptingLanguage' => '',
    'size' => '',
    'type' => ''
  ],
  'name' => '',
  'status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/accounts/:accountId/adclients/:adClientId/adunits", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"

payload = {
    "code": "",
    "contentAdsSettings": {
        "backupOption": {
            "color": "",
            "type": "",
            "url": ""
        },
        "size": "",
        "type": ""
    },
    "customStyle": {
        "colors": {
            "background": "",
            "border": "",
            "text": "",
            "title": "",
            "url": ""
        },
        "corners": "",
        "font": {
            "family": "",
            "size": ""
        },
        "kind": ""
    },
    "id": "",
    "kind": "",
    "mobileContentAdsSettings": {
        "markupLanguage": "",
        "scriptingLanguage": "",
        "size": "",
        "type": ""
    },
    "name": "",
    "status": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits"

payload <- "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/accounts/:accountId/adclients/:adClientId/adunits') do |req|
  req.body = "{\n  \"code\": \"\",\n  \"contentAdsSettings\": {\n    \"backupOption\": {\n      \"color\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    },\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"customStyle\": {\n    \"colors\": {\n      \"background\": \"\",\n      \"border\": \"\",\n      \"text\": \"\",\n      \"title\": \"\",\n      \"url\": \"\"\n    },\n    \"corners\": \"\",\n    \"font\": {\n      \"family\": \"\",\n      \"size\": \"\"\n    },\n    \"kind\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mobileContentAdsSettings\": {\n    \"markupLanguage\": \"\",\n    \"scriptingLanguage\": \"\",\n    \"size\": \"\",\n    \"type\": \"\"\n  },\n  \"name\": \"\",\n  \"status\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits";

    let payload = json!({
        "code": "",
        "contentAdsSettings": json!({
            "backupOption": json!({
                "color": "",
                "type": "",
                "url": ""
            }),
            "size": "",
            "type": ""
        }),
        "customStyle": json!({
            "colors": json!({
                "background": "",
                "border": "",
                "text": "",
                "title": "",
                "url": ""
            }),
            "corners": "",
            "font": json!({
                "family": "",
                "size": ""
            }),
            "kind": ""
        }),
        "id": "",
        "kind": "",
        "mobileContentAdsSettings": json!({
            "markupLanguage": "",
            "scriptingLanguage": "",
            "size": "",
            "type": ""
        }),
        "name": "",
        "status": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits \
  --header 'content-type: application/json' \
  --data '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}'
echo '{
  "code": "",
  "contentAdsSettings": {
    "backupOption": {
      "color": "",
      "type": "",
      "url": ""
    },
    "size": "",
    "type": ""
  },
  "customStyle": {
    "colors": {
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    },
    "corners": "",
    "font": {
      "family": "",
      "size": ""
    },
    "kind": ""
  },
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": {
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  },
  "name": "",
  "status": ""
}' |  \
  http PUT {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "code": "",\n  "contentAdsSettings": {\n    "backupOption": {\n      "color": "",\n      "type": "",\n      "url": ""\n    },\n    "size": "",\n    "type": ""\n  },\n  "customStyle": {\n    "colors": {\n      "background": "",\n      "border": "",\n      "text": "",\n      "title": "",\n      "url": ""\n    },\n    "corners": "",\n    "font": {\n      "family": "",\n      "size": ""\n    },\n    "kind": ""\n  },\n  "id": "",\n  "kind": "",\n  "mobileContentAdsSettings": {\n    "markupLanguage": "",\n    "scriptingLanguage": "",\n    "size": "",\n    "type": ""\n  },\n  "name": "",\n  "status": ""\n}' \
  --output-document \
  - {{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "code": "",
  "contentAdsSettings": [
    "backupOption": [
      "color": "",
      "type": "",
      "url": ""
    ],
    "size": "",
    "type": ""
  ],
  "customStyle": [
    "colors": [
      "background": "",
      "border": "",
      "text": "",
      "title": "",
      "url": ""
    ],
    "corners": "",
    "font": [
      "family": "",
      "size": ""
    ],
    "kind": ""
  ],
  "id": "",
  "kind": "",
  "mobileContentAdsSettings": [
    "markupLanguage": "",
    "scriptingLanguage": "",
    "size": "",
    "type": ""
  ],
  "name": "",
  "status": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:accountId/adclients/:adClientId/adunits")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.accounts.get
{{baseUrl}}/accounts/:accountId
QUERY PARAMS

accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:accountId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts/:accountId")
require "http/client"

url = "{{baseUrl}}/accounts/:accountId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts/:accountId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:accountId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:accountId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts/:accountId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:accountId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:accountId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:accountId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts/:accountId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:accountId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:accountId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:accountId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:accountId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:accountId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts/:accountId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:accountId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:accountId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:accountId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:accountId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:accountId",
  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;
}
request('GET', '{{baseUrl}}/accounts/:accountId');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:accountId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:accountId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:accountId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:accountId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts/:accountId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:accountId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:accountId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:accountId")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts/:accountId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:accountId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts/:accountId
http GET {{baseUrl}}/accounts/:accountId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/:accountId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:accountId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.accounts.list
{{baseUrl}}/accounts
QUERY PARAMS

filterAdClientId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts?filterAdClientId=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts" {:query-params {:filterAdClientId ""}})
require "http/client"

url = "{{baseUrl}}/accounts?filterAdClientId="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts?filterAdClientId="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts?filterAdClientId=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts?filterAdClientId="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts?filterAdClientId= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts?filterAdClientId=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts?filterAdClientId="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts?filterAdClientId=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts?filterAdClientId=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts?filterAdClientId=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts',
  params: {filterAdClientId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts?filterAdClientId=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts?filterAdClientId=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts?filterAdClientId=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts?filterAdClientId=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts',
  qs: {filterAdClientId: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts');

req.query({
  filterAdClientId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts',
  params: {filterAdClientId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts?filterAdClientId=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts?filterAdClientId="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts?filterAdClientId=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts?filterAdClientId=",
  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;
}
request('GET', '{{baseUrl}}/accounts?filterAdClientId=');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'filterAdClientId' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'filterAdClientId' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts?filterAdClientId=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts?filterAdClientId=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts?filterAdClientId=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts"

querystring = {"filterAdClientId":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts"

queryString <- list(filterAdClientId = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts?filterAdClientId=")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts') do |req|
  req.params['filterAdClientId'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts";

    let querystring = [
        ("filterAdClientId", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/accounts?filterAdClientId='
http GET '{{baseUrl}}/accounts?filterAdClientId='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/accounts?filterAdClientId='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts?filterAdClientId=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.accounts.reports.generate
{{baseUrl}}/accounts/:accountId/reports
QUERY PARAMS

startDate
endDate
accountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts/:accountId/reports" {:query-params {:startDate ""
                                                                                      :endDate ""}})
require "http/client"

url = "{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts/:accountId/reports?startDate=&endDate= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/reports',
  params: {startDate: '', endDate: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:accountId/reports?startDate=&endDate=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/reports',
  qs: {startDate: '', endDate: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts/:accountId/reports');

req.query({
  startDate: '',
  endDate: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:accountId/reports',
  params: {startDate: '', endDate: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=",
  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;
}
request('GET', '{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:accountId/reports');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'startDate' => '',
  'endDate' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:accountId/reports');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'startDate' => '',
  'endDate' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts/:accountId/reports?startDate=&endDate=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:accountId/reports"

querystring = {"startDate":"","endDate":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:accountId/reports"

queryString <- list(
  startDate = "",
  endDate = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts/:accountId/reports') do |req|
  req.params['startDate'] = ''
  req.params['endDate'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:accountId/reports";

    let querystring = [
        ("startDate", ""),
        ("endDate", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate='
http GET '{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:accountId/reports?startDate=&endDate=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.adclients.get
{{baseUrl}}/adclients/:adClientId
QUERY PARAMS

adClientId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/adclients/:adClientId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/adclients/:adClientId")
require "http/client"

url = "{{baseUrl}}/adclients/:adClientId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/adclients/:adClientId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/adclients/:adClientId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/adclients/:adClientId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/adclients/:adClientId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/adclients/:adClientId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/adclients/:adClientId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/adclients/:adClientId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/adclients/:adClientId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/adclients/:adClientId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/adclients/:adClientId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/adclients/:adClientId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/adclients/:adClientId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/adclients/:adClientId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/adclients/:adClientId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/adclients/:adClientId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/adclients/:adClientId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/adclients/:adClientId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/adclients/:adClientId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/adclients/:adClientId",
  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;
}
request('GET', '{{baseUrl}}/adclients/:adClientId');

echo $response->getBody();
setUrl('{{baseUrl}}/adclients/:adClientId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/adclients/:adClientId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/adclients/:adClientId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/adclients/:adClientId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/adclients/:adClientId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/adclients/:adClientId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/adclients/:adClientId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/adclients/:adClientId")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/adclients/:adClientId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/adclients/:adClientId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/adclients/:adClientId
http GET {{baseUrl}}/adclients/:adClientId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/adclients/:adClientId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/adclients/:adClientId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.adclients.list
{{baseUrl}}/adclients
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/adclients");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/adclients")
require "http/client"

url = "{{baseUrl}}/adclients"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/adclients"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/adclients");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/adclients"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/adclients HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/adclients")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/adclients"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/adclients")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/adclients")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/adclients');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/adclients'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/adclients';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/adclients',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/adclients")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/adclients',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/adclients'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/adclients');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/adclients'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/adclients';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/adclients"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/adclients" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/adclients",
  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;
}
request('GET', '{{baseUrl}}/adclients');

echo $response->getBody();
setUrl('{{baseUrl}}/adclients');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/adclients');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/adclients' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/adclients' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/adclients")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/adclients"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/adclients"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/adclients")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/adclients') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/adclients";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/adclients
http GET {{baseUrl}}/adclients
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/adclients
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/adclients")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.associationsessions.start
{{baseUrl}}/associationsessions/start
QUERY PARAMS

productCode
websiteUrl
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/associationsessions/start" {:query-params {:productCode ""
                                                                                    :websiteUrl ""}})
require "http/client"

url = "{{baseUrl}}/associationsessions/start?productCode=&websiteUrl="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/associationsessions/start?productCode=&websiteUrl="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/associationsessions/start?productCode=&websiteUrl="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/associationsessions/start?productCode=&websiteUrl= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/associationsessions/start?productCode=&websiteUrl="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/associationsessions/start',
  params: {productCode: '', websiteUrl: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/associationsessions/start?productCode=&websiteUrl=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/associationsessions/start',
  qs: {productCode: '', websiteUrl: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/associationsessions/start');

req.query({
  productCode: '',
  websiteUrl: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/associationsessions/start',
  params: {productCode: '', websiteUrl: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/associationsessions/start?productCode=&websiteUrl="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=",
  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;
}
request('GET', '{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=');

echo $response->getBody();
setUrl('{{baseUrl}}/associationsessions/start');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'productCode' => '',
  'websiteUrl' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/associationsessions/start');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'productCode' => '',
  'websiteUrl' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/associationsessions/start?productCode=&websiteUrl=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/associationsessions/start"

querystring = {"productCode":"","websiteUrl":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/associationsessions/start"

queryString <- list(
  productCode = "",
  websiteUrl = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/associationsessions/start') do |req|
  req.params['productCode'] = ''
  req.params['websiteUrl'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/associationsessions/start";

    let querystring = [
        ("productCode", ""),
        ("websiteUrl", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/associationsessions/start?productCode=&websiteUrl='
http GET '{{baseUrl}}/associationsessions/start?productCode=&websiteUrl='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/associationsessions/start?productCode=&websiteUrl='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/associationsessions/start?productCode=&websiteUrl=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.associationsessions.verify
{{baseUrl}}/associationsessions/verify
QUERY PARAMS

token
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/associationsessions/verify?token=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/associationsessions/verify" {:query-params {:token ""}})
require "http/client"

url = "{{baseUrl}}/associationsessions/verify?token="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/associationsessions/verify?token="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/associationsessions/verify?token=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/associationsessions/verify?token="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/associationsessions/verify?token= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/associationsessions/verify?token=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/associationsessions/verify?token="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/associationsessions/verify?token=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/associationsessions/verify?token=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/associationsessions/verify?token=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/associationsessions/verify',
  params: {token: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/associationsessions/verify?token=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/associationsessions/verify?token=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/associationsessions/verify?token=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/associationsessions/verify?token=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/associationsessions/verify',
  qs: {token: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/associationsessions/verify');

req.query({
  token: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/associationsessions/verify',
  params: {token: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/associationsessions/verify?token=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/associationsessions/verify?token="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/associationsessions/verify?token=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/associationsessions/verify?token=",
  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;
}
request('GET', '{{baseUrl}}/associationsessions/verify?token=');

echo $response->getBody();
setUrl('{{baseUrl}}/associationsessions/verify');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'token' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/associationsessions/verify');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'token' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/associationsessions/verify?token=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/associationsessions/verify?token=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/associationsessions/verify?token=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/associationsessions/verify"

querystring = {"token":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/associationsessions/verify"

queryString <- list(token = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/associationsessions/verify?token=")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/associationsessions/verify') do |req|
  req.params['token'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/associationsessions/verify";

    let querystring = [
        ("token", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/associationsessions/verify?token='
http GET '{{baseUrl}}/associationsessions/verify?token='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/associationsessions/verify?token='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/associationsessions/verify?token=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE adsensehost.customchannels.delete
{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId
QUERY PARAMS

adClientId
customChannelId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")
require "http/client"

url = "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/adclients/:adClientId/customchannels/:customChannelId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/adclients/:adClientId/customchannels/:customChannelId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId');

echo $response->getBody();
setUrl('{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/adclients/:adClientId/customchannels/:customChannelId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/adclients/:adClientId/customchannels/:customChannelId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId
http DELETE {{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.customchannels.get
{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId
QUERY PARAMS

adClientId
customChannelId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")
require "http/client"

url = "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/adclients/:adClientId/customchannels/:customChannelId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/adclients/:adClientId/customchannels/:customChannelId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId",
  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;
}
request('GET', '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId');

echo $response->getBody();
setUrl('{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/adclients/:adClientId/customchannels/:customChannelId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/adclients/:adClientId/customchannels/:customChannelId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId
http GET {{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/adclients/:adClientId/customchannels/:customChannelId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST adsensehost.customchannels.insert
{{baseUrl}}/adclients/:adClientId/customchannels
QUERY PARAMS

adClientId
BODY json

{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/adclients/:adClientId/customchannels");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/adclients/:adClientId/customchannels" {:content-type :json
                                                                                 :form-params {:code ""
                                                                                               :id ""
                                                                                               :kind ""
                                                                                               :name ""}})
require "http/client"

url = "{{baseUrl}}/adclients/:adClientId/customchannels"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/adclients/:adClientId/customchannels"),
    Content = new StringContent("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/adclients/:adClientId/customchannels");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/adclients/:adClientId/customchannels"

	payload := strings.NewReader("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/adclients/:adClientId/customchannels HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 56

{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/adclients/:adClientId/customchannels")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/adclients/:adClientId/customchannels"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/customchannels")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/adclients/:adClientId/customchannels")
  .header("content-type", "application/json")
  .body("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  code: '',
  id: '',
  kind: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/adclients/:adClientId/customchannels');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels',
  headers: {'content-type': 'application/json'},
  data: {code: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/adclients/:adClientId/customchannels';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"code":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/adclients/:adClientId/customchannels',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "code": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/customchannels")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/adclients/:adClientId/customchannels',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({code: '', id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels',
  headers: {'content-type': 'application/json'},
  body: {code: '', id: '', kind: '', name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/adclients/:adClientId/customchannels');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  code: '',
  id: '',
  kind: '',
  name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels',
  headers: {'content-type': 'application/json'},
  data: {code: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/adclients/:adClientId/customchannels';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"code":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"code": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/adclients/:adClientId/customchannels"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/adclients/:adClientId/customchannels" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/adclients/:adClientId/customchannels",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'code' => '',
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/adclients/:adClientId/customchannels', [
  'body' => '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/adclients/:adClientId/customchannels');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'code' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'code' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/adclients/:adClientId/customchannels');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/adclients/:adClientId/customchannels' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/adclients/:adClientId/customchannels' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/adclients/:adClientId/customchannels", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/adclients/:adClientId/customchannels"

payload = {
    "code": "",
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/adclients/:adClientId/customchannels"

payload <- "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/adclients/:adClientId/customchannels")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/adclients/:adClientId/customchannels') do |req|
  req.body = "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/adclients/:adClientId/customchannels";

    let payload = json!({
        "code": "",
        "id": "",
        "kind": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/adclients/:adClientId/customchannels \
  --header 'content-type: application/json' \
  --data '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/adclients/:adClientId/customchannels \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "code": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/adclients/:adClientId/customchannels
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/adclients/:adClientId/customchannels")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.customchannels.list
{{baseUrl}}/adclients/:adClientId/customchannels
QUERY PARAMS

adClientId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/adclients/:adClientId/customchannels");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/adclients/:adClientId/customchannels")
require "http/client"

url = "{{baseUrl}}/adclients/:adClientId/customchannels"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/adclients/:adClientId/customchannels"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/adclients/:adClientId/customchannels");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/adclients/:adClientId/customchannels"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/adclients/:adClientId/customchannels HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/adclients/:adClientId/customchannels")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/adclients/:adClientId/customchannels"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/customchannels")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/adclients/:adClientId/customchannels")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/adclients/:adClientId/customchannels');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/adclients/:adClientId/customchannels';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/adclients/:adClientId/customchannels',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/customchannels")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/adclients/:adClientId/customchannels',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/adclients/:adClientId/customchannels');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/adclients/:adClientId/customchannels';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/adclients/:adClientId/customchannels"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/adclients/:adClientId/customchannels" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/adclients/:adClientId/customchannels",
  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;
}
request('GET', '{{baseUrl}}/adclients/:adClientId/customchannels');

echo $response->getBody();
setUrl('{{baseUrl}}/adclients/:adClientId/customchannels');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/adclients/:adClientId/customchannels');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/adclients/:adClientId/customchannels' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/adclients/:adClientId/customchannels' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/adclients/:adClientId/customchannels")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/adclients/:adClientId/customchannels"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/adclients/:adClientId/customchannels"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/adclients/:adClientId/customchannels")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/adclients/:adClientId/customchannels') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/adclients/:adClientId/customchannels";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/adclients/:adClientId/customchannels
http GET {{baseUrl}}/adclients/:adClientId/customchannels
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/adclients/:adClientId/customchannels
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/adclients/:adClientId/customchannels")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PATCH adsensehost.customchannels.patch
{{baseUrl}}/adclients/:adClientId/customchannels
QUERY PARAMS

customChannelId
adClientId
BODY json

{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/adclients/:adClientId/customchannels" {:query-params {:customChannelId ""}
                                                                                  :content-type :json
                                                                                  :form-params {:code ""
                                                                                                :id ""
                                                                                                :kind ""
                                                                                                :name ""}})
require "http/client"

url = "{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId="),
    Content = new StringContent("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId="

	payload := strings.NewReader("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PATCH /baseUrl/adclients/:adClientId/customchannels?customChannelId= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 56

{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=")
  .header("content-type", "application/json")
  .body("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  code: '',
  id: '',
  kind: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels',
  params: {customChannelId: ''},
  headers: {'content-type': 'application/json'},
  data: {code: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"code":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "code": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/adclients/:adClientId/customchannels?customChannelId=',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({code: '', id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels',
  qs: {customChannelId: ''},
  headers: {'content-type': 'application/json'},
  body: {code: '', id: '', kind: '', name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PATCH', '{{baseUrl}}/adclients/:adClientId/customchannels');

req.query({
  customChannelId: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  code: '',
  id: '',
  kind: '',
  name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels',
  params: {customChannelId: ''},
  headers: {'content-type': 'application/json'},
  data: {code: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"code":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"code": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'code' => '',
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=', [
  'body' => '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/adclients/:adClientId/customchannels');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'customChannelId' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'code' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'code' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/adclients/:adClientId/customchannels');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'customChannelId' => ''
]));

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/adclients/:adClientId/customchannels?customChannelId=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/adclients/:adClientId/customchannels"

querystring = {"customChannelId":""}

payload = {
    "code": "",
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/adclients/:adClientId/customchannels"

queryString <- list(customChannelId = "")

payload <- "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.patch('/baseUrl/adclients/:adClientId/customchannels') do |req|
  req.params['customChannelId'] = ''
  req.body = "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/adclients/:adClientId/customchannels";

    let querystring = [
        ("customChannelId", ""),
    ];

    let payload = json!({
        "code": "",
        "id": "",
        "kind": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=' \
  --header 'content-type: application/json' \
  --data '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http PATCH '{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "code": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - '{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/adclients/:adClientId/customchannels?customChannelId=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT adsensehost.customchannels.update
{{baseUrl}}/adclients/:adClientId/customchannels
QUERY PARAMS

adClientId
BODY json

{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/adclients/:adClientId/customchannels");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/adclients/:adClientId/customchannels" {:content-type :json
                                                                                :form-params {:code ""
                                                                                              :id ""
                                                                                              :kind ""
                                                                                              :name ""}})
require "http/client"

url = "{{baseUrl}}/adclients/:adClientId/customchannels"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/adclients/:adClientId/customchannels"),
    Content = new StringContent("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/adclients/:adClientId/customchannels");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/adclients/:adClientId/customchannels"

	payload := strings.NewReader("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/adclients/:adClientId/customchannels HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 56

{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/adclients/:adClientId/customchannels")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/adclients/:adClientId/customchannels"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/customchannels")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/adclients/:adClientId/customchannels")
  .header("content-type", "application/json")
  .body("{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  code: '',
  id: '',
  kind: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/adclients/:adClientId/customchannels');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels',
  headers: {'content-type': 'application/json'},
  data: {code: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/adclients/:adClientId/customchannels';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"code":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/adclients/:adClientId/customchannels',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "code": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/customchannels")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/adclients/:adClientId/customchannels',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({code: '', id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels',
  headers: {'content-type': 'application/json'},
  body: {code: '', id: '', kind: '', name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/adclients/:adClientId/customchannels');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  code: '',
  id: '',
  kind: '',
  name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/adclients/:adClientId/customchannels',
  headers: {'content-type': 'application/json'},
  data: {code: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/adclients/:adClientId/customchannels';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"code":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"code": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/adclients/:adClientId/customchannels"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/adclients/:adClientId/customchannels" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/adclients/:adClientId/customchannels",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'code' => '',
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/adclients/:adClientId/customchannels', [
  'body' => '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/adclients/:adClientId/customchannels');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'code' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'code' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/adclients/:adClientId/customchannels');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/adclients/:adClientId/customchannels' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/adclients/:adClientId/customchannels' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/adclients/:adClientId/customchannels", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/adclients/:adClientId/customchannels"

payload = {
    "code": "",
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/adclients/:adClientId/customchannels"

payload <- "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/adclients/:adClientId/customchannels")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/adclients/:adClientId/customchannels') do |req|
  req.body = "{\n  \"code\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/adclients/:adClientId/customchannels";

    let payload = json!({
        "code": "",
        "id": "",
        "kind": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/adclients/:adClientId/customchannels \
  --header 'content-type: application/json' \
  --data '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http PUT {{baseUrl}}/adclients/:adClientId/customchannels \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "code": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/adclients/:adClientId/customchannels
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "code": "",
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/adclients/:adClientId/customchannels")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.reports.generate
{{baseUrl}}/reports
QUERY PARAMS

startDate
endDate
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/reports?startDate=&endDate=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/reports" {:query-params {:startDate ""
                                                                  :endDate ""}})
require "http/client"

url = "{{baseUrl}}/reports?startDate=&endDate="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/reports?startDate=&endDate="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/reports?startDate=&endDate=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/reports?startDate=&endDate="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/reports?startDate=&endDate= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/reports?startDate=&endDate=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/reports?startDate=&endDate="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/reports?startDate=&endDate=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/reports?startDate=&endDate=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/reports?startDate=&endDate=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/reports',
  params: {startDate: '', endDate: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/reports?startDate=&endDate=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/reports?startDate=&endDate=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/reports?startDate=&endDate=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/reports?startDate=&endDate=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/reports',
  qs: {startDate: '', endDate: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/reports');

req.query({
  startDate: '',
  endDate: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/reports',
  params: {startDate: '', endDate: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/reports?startDate=&endDate=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/reports?startDate=&endDate="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/reports?startDate=&endDate=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/reports?startDate=&endDate=",
  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;
}
request('GET', '{{baseUrl}}/reports?startDate=&endDate=');

echo $response->getBody();
setUrl('{{baseUrl}}/reports');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'startDate' => '',
  'endDate' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/reports');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'startDate' => '',
  'endDate' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/reports?startDate=&endDate=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/reports?startDate=&endDate=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/reports?startDate=&endDate=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/reports"

querystring = {"startDate":"","endDate":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/reports"

queryString <- list(
  startDate = "",
  endDate = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/reports?startDate=&endDate=")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/reports') do |req|
  req.params['startDate'] = ''
  req.params['endDate'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/reports";

    let querystring = [
        ("startDate", ""),
        ("endDate", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/reports?startDate=&endDate='
http GET '{{baseUrl}}/reports?startDate=&endDate='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/reports?startDate=&endDate='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/reports?startDate=&endDate=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE adsensehost.urlchannels.delete
{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId
QUERY PARAMS

adClientId
urlChannelId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId")
require "http/client"

url = "{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/adclients/:adClientId/urlchannels/:urlChannelId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/adclients/:adClientId/urlchannels/:urlChannelId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId');

echo $response->getBody();
setUrl('{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/adclients/:adClientId/urlchannels/:urlChannelId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/adclients/:adClientId/urlchannels/:urlChannelId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId
http DELETE {{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/adclients/:adClientId/urlchannels/:urlChannelId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST adsensehost.urlchannels.insert
{{baseUrl}}/adclients/:adClientId/urlchannels
QUERY PARAMS

adClientId
BODY json

{
  "id": "",
  "kind": "",
  "urlPattern": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/adclients/:adClientId/urlchannels");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/adclients/:adClientId/urlchannels" {:content-type :json
                                                                              :form-params {:id ""
                                                                                            :kind ""
                                                                                            :urlPattern ""}})
require "http/client"

url = "{{baseUrl}}/adclients/:adClientId/urlchannels"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/adclients/:adClientId/urlchannels"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/adclients/:adClientId/urlchannels");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/adclients/:adClientId/urlchannels"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/adclients/:adClientId/urlchannels HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 48

{
  "id": "",
  "kind": "",
  "urlPattern": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/adclients/:adClientId/urlchannels")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/adclients/:adClientId/urlchannels"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/urlchannels")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/adclients/:adClientId/urlchannels")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  kind: '',
  urlPattern: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/adclients/:adClientId/urlchannels');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/adclients/:adClientId/urlchannels',
  headers: {'content-type': 'application/json'},
  data: {id: '', kind: '', urlPattern: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/adclients/:adClientId/urlchannels';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","kind":"","urlPattern":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/adclients/:adClientId/urlchannels',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "kind": "",\n  "urlPattern": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/urlchannels")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/adclients/:adClientId/urlchannels',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({id: '', kind: '', urlPattern: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/adclients/:adClientId/urlchannels',
  headers: {'content-type': 'application/json'},
  body: {id: '', kind: '', urlPattern: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/adclients/:adClientId/urlchannels');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  kind: '',
  urlPattern: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/adclients/:adClientId/urlchannels',
  headers: {'content-type': 'application/json'},
  data: {id: '', kind: '', urlPattern: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/adclients/:adClientId/urlchannels';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","kind":"","urlPattern":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"id": @"",
                              @"kind": @"",
                              @"urlPattern": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/adclients/:adClientId/urlchannels"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/adclients/:adClientId/urlchannels" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/adclients/:adClientId/urlchannels",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'id' => '',
    'kind' => '',
    'urlPattern' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/adclients/:adClientId/urlchannels', [
  'body' => '{
  "id": "",
  "kind": "",
  "urlPattern": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/adclients/:adClientId/urlchannels');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'kind' => '',
  'urlPattern' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'kind' => '',
  'urlPattern' => ''
]));
$request->setRequestUrl('{{baseUrl}}/adclients/:adClientId/urlchannels');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/adclients/:adClientId/urlchannels' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "kind": "",
  "urlPattern": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/adclients/:adClientId/urlchannels' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "kind": "",
  "urlPattern": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/adclients/:adClientId/urlchannels", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/adclients/:adClientId/urlchannels"

payload = {
    "id": "",
    "kind": "",
    "urlPattern": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/adclients/:adClientId/urlchannels"

payload <- "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/adclients/:adClientId/urlchannels")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/adclients/:adClientId/urlchannels') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"urlPattern\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/adclients/:adClientId/urlchannels";

    let payload = json!({
        "id": "",
        "kind": "",
        "urlPattern": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/adclients/:adClientId/urlchannels \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "kind": "",
  "urlPattern": ""
}'
echo '{
  "id": "",
  "kind": "",
  "urlPattern": ""
}' |  \
  http POST {{baseUrl}}/adclients/:adClientId/urlchannels \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "kind": "",\n  "urlPattern": ""\n}' \
  --output-document \
  - {{baseUrl}}/adclients/:adClientId/urlchannels
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "kind": "",
  "urlPattern": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/adclients/:adClientId/urlchannels")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET adsensehost.urlchannels.list
{{baseUrl}}/adclients/:adClientId/urlchannels
QUERY PARAMS

adClientId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/adclients/:adClientId/urlchannels");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/adclients/:adClientId/urlchannels")
require "http/client"

url = "{{baseUrl}}/adclients/:adClientId/urlchannels"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/adclients/:adClientId/urlchannels"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/adclients/:adClientId/urlchannels");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/adclients/:adClientId/urlchannels"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/adclients/:adClientId/urlchannels HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/adclients/:adClientId/urlchannels")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/adclients/:adClientId/urlchannels"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/urlchannels")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/adclients/:adClientId/urlchannels")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/adclients/:adClientId/urlchannels');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/adclients/:adClientId/urlchannels'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/adclients/:adClientId/urlchannels';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/adclients/:adClientId/urlchannels',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/adclients/:adClientId/urlchannels")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/adclients/:adClientId/urlchannels',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/adclients/:adClientId/urlchannels'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/adclients/:adClientId/urlchannels');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/adclients/:adClientId/urlchannels'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/adclients/:adClientId/urlchannels';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/adclients/:adClientId/urlchannels"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/adclients/:adClientId/urlchannels" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/adclients/:adClientId/urlchannels",
  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;
}
request('GET', '{{baseUrl}}/adclients/:adClientId/urlchannels');

echo $response->getBody();
setUrl('{{baseUrl}}/adclients/:adClientId/urlchannels');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/adclients/:adClientId/urlchannels');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/adclients/:adClientId/urlchannels' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/adclients/:adClientId/urlchannels' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/adclients/:adClientId/urlchannels")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/adclients/:adClientId/urlchannels"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/adclients/:adClientId/urlchannels"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/adclients/:adClientId/urlchannels")

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
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/adclients/:adClientId/urlchannels') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/adclients/:adClientId/urlchannels";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/adclients/:adClientId/urlchannels
http GET {{baseUrl}}/adclients/:adClientId/urlchannels
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/adclients/:adClientId/urlchannels
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/adclients/:adClientId/urlchannels")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()