POST displayvideo.advertisers.assets.upload
{{baseUrl}}/v2/advertisers/:advertiserId/assets
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/assets");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/assets")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/assets"

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

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/assets"

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

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

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

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

}
POST /baseUrl/v2/advertisers/:advertiserId/assets HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/assets")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/assets"))
    .method("POST", 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}}/v2/advertisers/:advertiserId/assets")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/assets")
  .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('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/assets');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/assets'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/assets';
const options = {method: 'POST'};

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}}/v2/advertisers/:advertiserId/assets',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/assets")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/assets',
  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: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/assets'
};

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

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

const req = unirest('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/assets');

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}}/v2/advertisers/:advertiserId/assets'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/assets';
const options = {method: 'POST'};

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}}/v2/advertisers/:advertiserId/assets"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/v2/advertisers/:advertiserId/assets" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/assets",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/assets');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/assets');
$request->setMethod(HTTP_METH_POST);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/assets');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/assets' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/assets' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/assets")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/assets"

response = requests.post(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/assets"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/assets")

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

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

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

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

response = conn.post('/baseUrl/v2/advertisers/:advertiserId/assets') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/assets";

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v2/advertisers/:advertiserId/assets
http POST {{baseUrl}}/v2/advertisers/:advertiserId/assets
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/assets
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/assets")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 displayvideo.advertisers.audit
{{baseUrl}}/v2/advertisers/:advertiserId:audit
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId:audit");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId:audit")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId:audit"

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}}/v2/advertisers/:advertiserId:audit"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId:audit");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId:audit"

	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/v2/advertisers/:advertiserId:audit HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId:audit"))
    .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}}/v2/advertisers/:advertiserId:audit")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId:audit")
  .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}}/v2/advertisers/:advertiserId:audit');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId:audit'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId:audit';
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}}/v2/advertisers/:advertiserId:audit',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId:audit")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId:audit',
  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}}/v2/advertisers/:advertiserId:audit'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId:audit');

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}}/v2/advertisers/:advertiserId:audit'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId:audit';
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}}/v2/advertisers/:advertiserId:audit"]
                                                       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}}/v2/advertisers/:advertiserId:audit" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId:audit');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId:audit")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId:audit"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId:audit"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId:audit")

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/v2/advertisers/:advertiserId:audit') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId:audit";

    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}}/v2/advertisers/:advertiserId:audit
http GET {{baseUrl}}/v2/advertisers/:advertiserId:audit
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId:audit
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId:audit")! 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 displayvideo.advertisers.campaigns.create
{{baseUrl}}/v2/advertisers/:advertiserId/campaigns
QUERY PARAMS

advertiserId
BODY json

{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns");

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  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns" {:content-type :json
                                                                                   :form-params {:advertiserId ""
                                                                                                 :campaignBudgets [{:budgetAmountMicros ""
                                                                                                                    :budgetId ""
                                                                                                                    :budgetUnit ""
                                                                                                                    :dateRange {:endDate {:day 0
                                                                                                                                          :month 0
                                                                                                                                          :year 0}
                                                                                                                                :startDate {}}
                                                                                                                    :displayName ""
                                                                                                                    :externalBudgetId ""
                                                                                                                    :externalBudgetSource ""
                                                                                                                    :invoiceGroupingId ""
                                                                                                                    :prismaConfig {:prismaCpeCode {:prismaClientCode ""
                                                                                                                                                   :prismaEstimateCode ""
                                                                                                                                                   :prismaProductCode ""}
                                                                                                                                   :prismaType ""
                                                                                                                                   :supplier ""}}]
                                                                                                 :campaignFlight {:plannedDates {}
                                                                                                                  :plannedSpendAmountMicros ""}
                                                                                                 :campaignGoal {:campaignGoalType ""
                                                                                                                :performanceGoal {:performanceGoalAmountMicros ""
                                                                                                                                  :performanceGoalPercentageMicros ""
                                                                                                                                  :performanceGoalString ""
                                                                                                                                  :performanceGoalType ""}}
                                                                                                 :campaignId ""
                                                                                                 :displayName ""
                                                                                                 :entityStatus ""
                                                                                                 :frequencyCap {:maxImpressions 0
                                                                                                                :maxViews 0
                                                                                                                :timeUnit ""
                                                                                                                :timeUnitCount 0
                                                                                                                :unlimited false}
                                                                                                 :name ""
                                                                                                 :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId/campaigns"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId/campaigns");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\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/v2/advertisers/:advertiserId/campaigns HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1189

{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\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  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  campaignBudgets: [
    {
      budgetAmountMicros: '',
      budgetId: '',
      budgetUnit: '',
      dateRange: {
        endDate: {
          day: 0,
          month: 0,
          year: 0
        },
        startDate: {}
      },
      displayName: '',
      externalBudgetId: '',
      externalBudgetSource: '',
      invoiceGroupingId: '',
      prismaConfig: {
        prismaCpeCode: {
          prismaClientCode: '',
          prismaEstimateCode: '',
          prismaProductCode: ''
        },
        prismaType: '',
        supplier: ''
      }
    }
  ],
  campaignFlight: {
    plannedDates: {},
    plannedSpendAmountMicros: ''
  },
  campaignGoal: {
    campaignGoalType: '',
    performanceGoal: {
      performanceGoalAmountMicros: '',
      performanceGoalPercentageMicros: '',
      performanceGoalString: '',
      performanceGoalType: ''
    }
  },
  campaignId: '',
  displayName: '',
  entityStatus: '',
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  name: '',
  updateTime: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    campaignBudgets: [
      {
        budgetAmountMicros: '',
        budgetId: '',
        budgetUnit: '',
        dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
        displayName: '',
        externalBudgetId: '',
        externalBudgetSource: '',
        invoiceGroupingId: '',
        prismaConfig: {
          prismaCpeCode: {prismaClientCode: '', prismaEstimateCode: '', prismaProductCode: ''},
          prismaType: '',
          supplier: ''
        }
      }
    ],
    campaignFlight: {plannedDates: {}, plannedSpendAmountMicros: ''},
    campaignGoal: {
      campaignGoalType: '',
      performanceGoal: {
        performanceGoalAmountMicros: '',
        performanceGoalPercentageMicros: '',
        performanceGoalString: '',
        performanceGoalType: ''
      }
    },
    campaignId: '',
    displayName: '',
    entityStatus: '',
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    name: '',
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","campaignBudgets":[{"budgetAmountMicros":"","budgetId":"","budgetUnit":"","dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"displayName":"","externalBudgetId":"","externalBudgetSource":"","invoiceGroupingId":"","prismaConfig":{"prismaCpeCode":{"prismaClientCode":"","prismaEstimateCode":"","prismaProductCode":""},"prismaType":"","supplier":""}}],"campaignFlight":{"plannedDates":{},"plannedSpendAmountMicros":""},"campaignGoal":{"campaignGoalType":"","performanceGoal":{"performanceGoalAmountMicros":"","performanceGoalPercentageMicros":"","performanceGoalString":"","performanceGoalType":""}},"campaignId":"","displayName":"","entityStatus":"","frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"name":"","updateTime":""}'
};

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}}/v2/advertisers/:advertiserId/campaigns',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "campaignBudgets": [\n    {\n      "budgetAmountMicros": "",\n      "budgetId": "",\n      "budgetUnit": "",\n      "dateRange": {\n        "endDate": {\n          "day": 0,\n          "month": 0,\n          "year": 0\n        },\n        "startDate": {}\n      },\n      "displayName": "",\n      "externalBudgetId": "",\n      "externalBudgetSource": "",\n      "invoiceGroupingId": "",\n      "prismaConfig": {\n        "prismaCpeCode": {\n          "prismaClientCode": "",\n          "prismaEstimateCode": "",\n          "prismaProductCode": ""\n        },\n        "prismaType": "",\n        "supplier": ""\n      }\n    }\n  ],\n  "campaignFlight": {\n    "plannedDates": {},\n    "plannedSpendAmountMicros": ""\n  },\n  "campaignGoal": {\n    "campaignGoalType": "",\n    "performanceGoal": {\n      "performanceGoalAmountMicros": "",\n      "performanceGoalPercentageMicros": "",\n      "performanceGoalString": "",\n      "performanceGoalType": ""\n    }\n  },\n  "campaignId": "",\n  "displayName": "",\n  "entityStatus": "",\n  "frequencyCap": {\n    "maxImpressions": 0,\n    "maxViews": 0,\n    "timeUnit": "",\n    "timeUnitCount": 0,\n    "unlimited": false\n  },\n  "name": "",\n  "updateTime": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns")
  .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/v2/advertisers/:advertiserId/campaigns',
  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({
  advertiserId: '',
  campaignBudgets: [
    {
      budgetAmountMicros: '',
      budgetId: '',
      budgetUnit: '',
      dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
      displayName: '',
      externalBudgetId: '',
      externalBudgetSource: '',
      invoiceGroupingId: '',
      prismaConfig: {
        prismaCpeCode: {prismaClientCode: '', prismaEstimateCode: '', prismaProductCode: ''},
        prismaType: '',
        supplier: ''
      }
    }
  ],
  campaignFlight: {plannedDates: {}, plannedSpendAmountMicros: ''},
  campaignGoal: {
    campaignGoalType: '',
    performanceGoal: {
      performanceGoalAmountMicros: '',
      performanceGoalPercentageMicros: '',
      performanceGoalString: '',
      performanceGoalType: ''
    }
  },
  campaignId: '',
  displayName: '',
  entityStatus: '',
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  name: '',
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    campaignBudgets: [
      {
        budgetAmountMicros: '',
        budgetId: '',
        budgetUnit: '',
        dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
        displayName: '',
        externalBudgetId: '',
        externalBudgetSource: '',
        invoiceGroupingId: '',
        prismaConfig: {
          prismaCpeCode: {prismaClientCode: '', prismaEstimateCode: '', prismaProductCode: ''},
          prismaType: '',
          supplier: ''
        }
      }
    ],
    campaignFlight: {plannedDates: {}, plannedSpendAmountMicros: ''},
    campaignGoal: {
      campaignGoalType: '',
      performanceGoal: {
        performanceGoalAmountMicros: '',
        performanceGoalPercentageMicros: '',
        performanceGoalString: '',
        performanceGoalType: ''
      }
    },
    campaignId: '',
    displayName: '',
    entityStatus: '',
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    name: '',
    updateTime: ''
  },
  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}}/v2/advertisers/:advertiserId/campaigns');

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

req.type('json');
req.send({
  advertiserId: '',
  campaignBudgets: [
    {
      budgetAmountMicros: '',
      budgetId: '',
      budgetUnit: '',
      dateRange: {
        endDate: {
          day: 0,
          month: 0,
          year: 0
        },
        startDate: {}
      },
      displayName: '',
      externalBudgetId: '',
      externalBudgetSource: '',
      invoiceGroupingId: '',
      prismaConfig: {
        prismaCpeCode: {
          prismaClientCode: '',
          prismaEstimateCode: '',
          prismaProductCode: ''
        },
        prismaType: '',
        supplier: ''
      }
    }
  ],
  campaignFlight: {
    plannedDates: {},
    plannedSpendAmountMicros: ''
  },
  campaignGoal: {
    campaignGoalType: '',
    performanceGoal: {
      performanceGoalAmountMicros: '',
      performanceGoalPercentageMicros: '',
      performanceGoalString: '',
      performanceGoalType: ''
    }
  },
  campaignId: '',
  displayName: '',
  entityStatus: '',
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  name: '',
  updateTime: ''
});

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}}/v2/advertisers/:advertiserId/campaigns',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    campaignBudgets: [
      {
        budgetAmountMicros: '',
        budgetId: '',
        budgetUnit: '',
        dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
        displayName: '',
        externalBudgetId: '',
        externalBudgetSource: '',
        invoiceGroupingId: '',
        prismaConfig: {
          prismaCpeCode: {prismaClientCode: '', prismaEstimateCode: '', prismaProductCode: ''},
          prismaType: '',
          supplier: ''
        }
      }
    ],
    campaignFlight: {plannedDates: {}, plannedSpendAmountMicros: ''},
    campaignGoal: {
      campaignGoalType: '',
      performanceGoal: {
        performanceGoalAmountMicros: '',
        performanceGoalPercentageMicros: '',
        performanceGoalString: '',
        performanceGoalType: ''
      }
    },
    campaignId: '',
    displayName: '',
    entityStatus: '',
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    name: '',
    updateTime: ''
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","campaignBudgets":[{"budgetAmountMicros":"","budgetId":"","budgetUnit":"","dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"displayName":"","externalBudgetId":"","externalBudgetSource":"","invoiceGroupingId":"","prismaConfig":{"prismaCpeCode":{"prismaClientCode":"","prismaEstimateCode":"","prismaProductCode":""},"prismaType":"","supplier":""}}],"campaignFlight":{"plannedDates":{},"plannedSpendAmountMicros":""},"campaignGoal":{"campaignGoalType":"","performanceGoal":{"performanceGoalAmountMicros":"","performanceGoalPercentageMicros":"","performanceGoalString":"","performanceGoalType":""}},"campaignId":"","displayName":"","entityStatus":"","frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"name":"","updateTime":""}'
};

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 = @{ @"advertiserId": @"",
                              @"campaignBudgets": @[ @{ @"budgetAmountMicros": @"", @"budgetId": @"", @"budgetUnit": @"", @"dateRange": @{ @"endDate": @{ @"day": @0, @"month": @0, @"year": @0 }, @"startDate": @{  } }, @"displayName": @"", @"externalBudgetId": @"", @"externalBudgetSource": @"", @"invoiceGroupingId": @"", @"prismaConfig": @{ @"prismaCpeCode": @{ @"prismaClientCode": @"", @"prismaEstimateCode": @"", @"prismaProductCode": @"" }, @"prismaType": @"", @"supplier": @"" } } ],
                              @"campaignFlight": @{ @"plannedDates": @{  }, @"plannedSpendAmountMicros": @"" },
                              @"campaignGoal": @{ @"campaignGoalType": @"", @"performanceGoal": @{ @"performanceGoalAmountMicros": @"", @"performanceGoalPercentageMicros": @"", @"performanceGoalString": @"", @"performanceGoalType": @"" } },
                              @"campaignId": @"",
                              @"displayName": @"",
                              @"entityStatus": @"",
                              @"frequencyCap": @{ @"maxImpressions": @0, @"maxViews": @0, @"timeUnit": @"", @"timeUnitCount": @0, @"unlimited": @NO },
                              @"name": @"",
                              @"updateTime": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/campaigns"]
                                                       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}}/v2/advertisers/:advertiserId/campaigns" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns",
  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([
    'advertiserId' => '',
    'campaignBudgets' => [
        [
                'budgetAmountMicros' => '',
                'budgetId' => '',
                'budgetUnit' => '',
                'dateRange' => [
                                'endDate' => [
                                                                'day' => 0,
                                                                'month' => 0,
                                                                'year' => 0
                                ],
                                'startDate' => [
                                                                
                                ]
                ],
                'displayName' => '',
                'externalBudgetId' => '',
                'externalBudgetSource' => '',
                'invoiceGroupingId' => '',
                'prismaConfig' => [
                                'prismaCpeCode' => [
                                                                'prismaClientCode' => '',
                                                                'prismaEstimateCode' => '',
                                                                'prismaProductCode' => ''
                                ],
                                'prismaType' => '',
                                'supplier' => ''
                ]
        ]
    ],
    'campaignFlight' => [
        'plannedDates' => [
                
        ],
        'plannedSpendAmountMicros' => ''
    ],
    'campaignGoal' => [
        'campaignGoalType' => '',
        'performanceGoal' => [
                'performanceGoalAmountMicros' => '',
                'performanceGoalPercentageMicros' => '',
                'performanceGoalString' => '',
                'performanceGoalType' => ''
        ]
    ],
    'campaignId' => '',
    'displayName' => '',
    'entityStatus' => '',
    'frequencyCap' => [
        'maxImpressions' => 0,
        'maxViews' => 0,
        'timeUnit' => '',
        'timeUnitCount' => 0,
        'unlimited' => null
    ],
    'name' => '',
    'updateTime' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/campaigns', [
  'body' => '{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'campaignBudgets' => [
    [
        'budgetAmountMicros' => '',
        'budgetId' => '',
        'budgetUnit' => '',
        'dateRange' => [
                'endDate' => [
                                'day' => 0,
                                'month' => 0,
                                'year' => 0
                ],
                'startDate' => [
                                
                ]
        ],
        'displayName' => '',
        'externalBudgetId' => '',
        'externalBudgetSource' => '',
        'invoiceGroupingId' => '',
        'prismaConfig' => [
                'prismaCpeCode' => [
                                'prismaClientCode' => '',
                                'prismaEstimateCode' => '',
                                'prismaProductCode' => ''
                ],
                'prismaType' => '',
                'supplier' => ''
        ]
    ]
  ],
  'campaignFlight' => [
    'plannedDates' => [
        
    ],
    'plannedSpendAmountMicros' => ''
  ],
  'campaignGoal' => [
    'campaignGoalType' => '',
    'performanceGoal' => [
        'performanceGoalAmountMicros' => '',
        'performanceGoalPercentageMicros' => '',
        'performanceGoalString' => '',
        'performanceGoalType' => ''
    ]
  ],
  'campaignId' => '',
  'displayName' => '',
  'entityStatus' => '',
  'frequencyCap' => [
    'maxImpressions' => 0,
    'maxViews' => 0,
    'timeUnit' => '',
    'timeUnitCount' => 0,
    'unlimited' => null
  ],
  'name' => '',
  'updateTime' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'campaignBudgets' => [
    [
        'budgetAmountMicros' => '',
        'budgetId' => '',
        'budgetUnit' => '',
        'dateRange' => [
                'endDate' => [
                                'day' => 0,
                                'month' => 0,
                                'year' => 0
                ],
                'startDate' => [
                                
                ]
        ],
        'displayName' => '',
        'externalBudgetId' => '',
        'externalBudgetSource' => '',
        'invoiceGroupingId' => '',
        'prismaConfig' => [
                'prismaCpeCode' => [
                                'prismaClientCode' => '',
                                'prismaEstimateCode' => '',
                                'prismaProductCode' => ''
                ],
                'prismaType' => '',
                'supplier' => ''
        ]
    ]
  ],
  'campaignFlight' => [
    'plannedDates' => [
        
    ],
    'plannedSpendAmountMicros' => ''
  ],
  'campaignGoal' => [
    'campaignGoalType' => '',
    'performanceGoal' => [
        'performanceGoalAmountMicros' => '',
        'performanceGoalPercentageMicros' => '',
        'performanceGoalString' => '',
        'performanceGoalType' => ''
    ]
  ],
  'campaignId' => '',
  'displayName' => '',
  'entityStatus' => '',
  'frequencyCap' => [
    'maxImpressions' => 0,
    'maxViews' => 0,
    'timeUnit' => '',
    'timeUnitCount' => 0,
    'unlimited' => null
  ],
  'name' => '',
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns');
$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}}/v2/advertisers/:advertiserId/campaigns' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}'
import http.client

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

payload = "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/campaigns", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns"

payload = {
    "advertiserId": "",
    "campaignBudgets": [
        {
            "budgetAmountMicros": "",
            "budgetId": "",
            "budgetUnit": "",
            "dateRange": {
                "endDate": {
                    "day": 0,
                    "month": 0,
                    "year": 0
                },
                "startDate": {}
            },
            "displayName": "",
            "externalBudgetId": "",
            "externalBudgetSource": "",
            "invoiceGroupingId": "",
            "prismaConfig": {
                "prismaCpeCode": {
                    "prismaClientCode": "",
                    "prismaEstimateCode": "",
                    "prismaProductCode": ""
                },
                "prismaType": "",
                "supplier": ""
            }
        }
    ],
    "campaignFlight": {
        "plannedDates": {},
        "plannedSpendAmountMicros": ""
    },
    "campaignGoal": {
        "campaignGoalType": "",
        "performanceGoal": {
            "performanceGoalAmountMicros": "",
            "performanceGoalPercentageMicros": "",
            "performanceGoalString": "",
            "performanceGoalType": ""
        }
    },
    "campaignId": "",
    "displayName": "",
    "entityStatus": "",
    "frequencyCap": {
        "maxImpressions": 0,
        "maxViews": 0,
        "timeUnit": "",
        "timeUnitCount": 0,
        "unlimited": False
    },
    "name": "",
    "updateTime": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns"

payload <- "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId/campaigns")

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  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\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/v2/advertisers/:advertiserId/campaigns') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns";

    let payload = json!({
        "advertiserId": "",
        "campaignBudgets": (
            json!({
                "budgetAmountMicros": "",
                "budgetId": "",
                "budgetUnit": "",
                "dateRange": json!({
                    "endDate": json!({
                        "day": 0,
                        "month": 0,
                        "year": 0
                    }),
                    "startDate": json!({})
                }),
                "displayName": "",
                "externalBudgetId": "",
                "externalBudgetSource": "",
                "invoiceGroupingId": "",
                "prismaConfig": json!({
                    "prismaCpeCode": json!({
                        "prismaClientCode": "",
                        "prismaEstimateCode": "",
                        "prismaProductCode": ""
                    }),
                    "prismaType": "",
                    "supplier": ""
                })
            })
        ),
        "campaignFlight": json!({
            "plannedDates": json!({}),
            "plannedSpendAmountMicros": ""
        }),
        "campaignGoal": json!({
            "campaignGoalType": "",
            "performanceGoal": json!({
                "performanceGoalAmountMicros": "",
                "performanceGoalPercentageMicros": "",
                "performanceGoalString": "",
                "performanceGoalType": ""
            })
        }),
        "campaignId": "",
        "displayName": "",
        "entityStatus": "",
        "frequencyCap": json!({
            "maxImpressions": 0,
            "maxViews": 0,
            "timeUnit": "",
            "timeUnitCount": 0,
            "unlimited": false
        }),
        "name": "",
        "updateTime": ""
    });

    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}}/v2/advertisers/:advertiserId/campaigns \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}'
echo '{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/campaigns \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "campaignBudgets": [\n    {\n      "budgetAmountMicros": "",\n      "budgetId": "",\n      "budgetUnit": "",\n      "dateRange": {\n        "endDate": {\n          "day": 0,\n          "month": 0,\n          "year": 0\n        },\n        "startDate": {}\n      },\n      "displayName": "",\n      "externalBudgetId": "",\n      "externalBudgetSource": "",\n      "invoiceGroupingId": "",\n      "prismaConfig": {\n        "prismaCpeCode": {\n          "prismaClientCode": "",\n          "prismaEstimateCode": "",\n          "prismaProductCode": ""\n        },\n        "prismaType": "",\n        "supplier": ""\n      }\n    }\n  ],\n  "campaignFlight": {\n    "plannedDates": {},\n    "plannedSpendAmountMicros": ""\n  },\n  "campaignGoal": {\n    "campaignGoalType": "",\n    "performanceGoal": {\n      "performanceGoalAmountMicros": "",\n      "performanceGoalPercentageMicros": "",\n      "performanceGoalString": "",\n      "performanceGoalType": ""\n    }\n  },\n  "campaignId": "",\n  "displayName": "",\n  "entityStatus": "",\n  "frequencyCap": {\n    "maxImpressions": 0,\n    "maxViews": 0,\n    "timeUnit": "",\n    "timeUnitCount": 0,\n    "unlimited": false\n  },\n  "name": "",\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/campaigns
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "campaignBudgets": [
    [
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": [
        "endDate": [
          "day": 0,
          "month": 0,
          "year": 0
        ],
        "startDate": []
      ],
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": [
        "prismaCpeCode": [
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        ],
        "prismaType": "",
        "supplier": ""
      ]
    ]
  ],
  "campaignFlight": [
    "plannedDates": [],
    "plannedSpendAmountMicros": ""
  ],
  "campaignGoal": [
    "campaignGoalType": "",
    "performanceGoal": [
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    ]
  ],
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": [
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  ],
  "name": "",
  "updateTime": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns")! 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()
DELETE displayvideo.advertisers.campaigns.delete
{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId
QUERY PARAMS

advertiserId
campaignId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId");

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

(client/delete "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"

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}}/v2/advertisers/:advertiserId/campaigns/:campaignId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"

	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/v2/advertisers/:advertiserId/campaigns/:campaignId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"))
    .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}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
  .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}}/v2/advertisers/:advertiserId/campaigns/:campaignId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId';
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}}/v2/advertisers/:advertiserId/campaigns/:campaignId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/campaigns/:campaignId',
  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}}/v2/advertisers/:advertiserId/campaigns/:campaignId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId');

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}}/v2/advertisers/:advertiserId/campaigns/:campaignId'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId';
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}}/v2/advertisers/:advertiserId/campaigns/:campaignId"]
                                                       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}}/v2/advertisers/:advertiserId/campaigns/:campaignId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId",
  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}}/v2/advertisers/:advertiserId/campaigns/:campaignId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/v2/advertisers/:advertiserId/campaigns/:campaignId")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")

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/v2/advertisers/:advertiserId/campaigns/:campaignId') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId";

    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}}/v2/advertisers/:advertiserId/campaigns/:campaignId
http DELETE {{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")! 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 displayvideo.advertisers.campaigns.get
{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId
QUERY PARAMS

advertiserId
campaignId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"

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}}/v2/advertisers/:advertiserId/campaigns/:campaignId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"

	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/v2/advertisers/:advertiserId/campaigns/:campaignId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"))
    .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}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
  .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}}/v2/advertisers/:advertiserId/campaigns/:campaignId');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId';
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}}/v2/advertisers/:advertiserId/campaigns/:campaignId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/campaigns/:campaignId',
  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}}/v2/advertisers/:advertiserId/campaigns/:campaignId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId');

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}}/v2/advertisers/:advertiserId/campaigns/:campaignId'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId';
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}}/v2/advertisers/:advertiserId/campaigns/:campaignId"]
                                                       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}}/v2/advertisers/:advertiserId/campaigns/:campaignId" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/campaigns/:campaignId")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")

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/v2/advertisers/:advertiserId/campaigns/:campaignId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId";

    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}}/v2/advertisers/:advertiserId/campaigns/:campaignId
http GET {{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")! 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 displayvideo.advertisers.campaigns.list
{{baseUrl}}/v2/advertisers/:advertiserId/campaigns
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns"

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}}/v2/advertisers/:advertiserId/campaigns"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns"

	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/v2/advertisers/:advertiserId/campaigns HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns"))
    .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}}/v2/advertisers/:advertiserId/campaigns")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns")
  .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}}/v2/advertisers/:advertiserId/campaigns');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns';
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}}/v2/advertisers/:advertiserId/campaigns',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/campaigns',
  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}}/v2/advertisers/:advertiserId/campaigns'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns');

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}}/v2/advertisers/:advertiserId/campaigns'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns';
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}}/v2/advertisers/:advertiserId/campaigns"]
                                                       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}}/v2/advertisers/:advertiserId/campaigns" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/campaigns")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns")

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/v2/advertisers/:advertiserId/campaigns') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns";

    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}}/v2/advertisers/:advertiserId/campaigns
http GET {{baseUrl}}/v2/advertisers/:advertiserId/campaigns
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/campaigns
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns")! 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 displayvideo.advertisers.campaigns.listAssignedTargetingOptions
{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions
QUERY PARAMS

advertiserId
campaignId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions"

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}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions"

	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/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions"))
    .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}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions")
  .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}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions',
  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}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions');

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}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions",
  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}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions")

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/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions";

    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}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions
http GET {{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId:listAssignedTargetingOptions")! 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 displayvideo.advertisers.campaigns.patch
{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId
QUERY PARAMS

advertiserId
campaignId
BODY json

{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId");

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  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}");

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

(client/patch "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId" {:content-type :json
                                                                                                :form-params {:advertiserId ""
                                                                                                              :campaignBudgets [{:budgetAmountMicros ""
                                                                                                                                 :budgetId ""
                                                                                                                                 :budgetUnit ""
                                                                                                                                 :dateRange {:endDate {:day 0
                                                                                                                                                       :month 0
                                                                                                                                                       :year 0}
                                                                                                                                             :startDate {}}
                                                                                                                                 :displayName ""
                                                                                                                                 :externalBudgetId ""
                                                                                                                                 :externalBudgetSource ""
                                                                                                                                 :invoiceGroupingId ""
                                                                                                                                 :prismaConfig {:prismaCpeCode {:prismaClientCode ""
                                                                                                                                                                :prismaEstimateCode ""
                                                                                                                                                                :prismaProductCode ""}
                                                                                                                                                :prismaType ""
                                                                                                                                                :supplier ""}}]
                                                                                                              :campaignFlight {:plannedDates {}
                                                                                                                               :plannedSpendAmountMicros ""}
                                                                                                              :campaignGoal {:campaignGoalType ""
                                                                                                                             :performanceGoal {:performanceGoalAmountMicros ""
                                                                                                                                               :performanceGoalPercentageMicros ""
                                                                                                                                               :performanceGoalString ""
                                                                                                                                               :performanceGoalType ""}}
                                                                                                              :campaignId ""
                                                                                                              :displayName ""
                                                                                                              :entityStatus ""
                                                                                                              :frequencyCap {:maxImpressions 0
                                                                                                                             :maxViews 0
                                                                                                                             :timeUnit ""
                                                                                                                             :timeUnitCount 0
                                                                                                                             :unlimited false}
                                                                                                              :name ""
                                                                                                              :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId/campaigns/:campaignId"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId/campaigns/:campaignId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\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/v2/advertisers/:advertiserId/campaigns/:campaignId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1189

{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\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  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  campaignBudgets: [
    {
      budgetAmountMicros: '',
      budgetId: '',
      budgetUnit: '',
      dateRange: {
        endDate: {
          day: 0,
          month: 0,
          year: 0
        },
        startDate: {}
      },
      displayName: '',
      externalBudgetId: '',
      externalBudgetSource: '',
      invoiceGroupingId: '',
      prismaConfig: {
        prismaCpeCode: {
          prismaClientCode: '',
          prismaEstimateCode: '',
          prismaProductCode: ''
        },
        prismaType: '',
        supplier: ''
      }
    }
  ],
  campaignFlight: {
    plannedDates: {},
    plannedSpendAmountMicros: ''
  },
  campaignGoal: {
    campaignGoalType: '',
    performanceGoal: {
      performanceGoalAmountMicros: '',
      performanceGoalPercentageMicros: '',
      performanceGoalString: '',
      performanceGoalType: ''
    }
  },
  campaignId: '',
  displayName: '',
  entityStatus: '',
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  name: '',
  updateTime: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    campaignBudgets: [
      {
        budgetAmountMicros: '',
        budgetId: '',
        budgetUnit: '',
        dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
        displayName: '',
        externalBudgetId: '',
        externalBudgetSource: '',
        invoiceGroupingId: '',
        prismaConfig: {
          prismaCpeCode: {prismaClientCode: '', prismaEstimateCode: '', prismaProductCode: ''},
          prismaType: '',
          supplier: ''
        }
      }
    ],
    campaignFlight: {plannedDates: {}, plannedSpendAmountMicros: ''},
    campaignGoal: {
      campaignGoalType: '',
      performanceGoal: {
        performanceGoalAmountMicros: '',
        performanceGoalPercentageMicros: '',
        performanceGoalString: '',
        performanceGoalType: ''
      }
    },
    campaignId: '',
    displayName: '',
    entityStatus: '',
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    name: '',
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","campaignBudgets":[{"budgetAmountMicros":"","budgetId":"","budgetUnit":"","dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"displayName":"","externalBudgetId":"","externalBudgetSource":"","invoiceGroupingId":"","prismaConfig":{"prismaCpeCode":{"prismaClientCode":"","prismaEstimateCode":"","prismaProductCode":""},"prismaType":"","supplier":""}}],"campaignFlight":{"plannedDates":{},"plannedSpendAmountMicros":""},"campaignGoal":{"campaignGoalType":"","performanceGoal":{"performanceGoalAmountMicros":"","performanceGoalPercentageMicros":"","performanceGoalString":"","performanceGoalType":""}},"campaignId":"","displayName":"","entityStatus":"","frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"name":"","updateTime":""}'
};

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}}/v2/advertisers/:advertiserId/campaigns/:campaignId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "campaignBudgets": [\n    {\n      "budgetAmountMicros": "",\n      "budgetId": "",\n      "budgetUnit": "",\n      "dateRange": {\n        "endDate": {\n          "day": 0,\n          "month": 0,\n          "year": 0\n        },\n        "startDate": {}\n      },\n      "displayName": "",\n      "externalBudgetId": "",\n      "externalBudgetSource": "",\n      "invoiceGroupingId": "",\n      "prismaConfig": {\n        "prismaCpeCode": {\n          "prismaClientCode": "",\n          "prismaEstimateCode": "",\n          "prismaProductCode": ""\n        },\n        "prismaType": "",\n        "supplier": ""\n      }\n    }\n  ],\n  "campaignFlight": {\n    "plannedDates": {},\n    "plannedSpendAmountMicros": ""\n  },\n  "campaignGoal": {\n    "campaignGoalType": "",\n    "performanceGoal": {\n      "performanceGoalAmountMicros": "",\n      "performanceGoalPercentageMicros": "",\n      "performanceGoalString": "",\n      "performanceGoalType": ""\n    }\n  },\n  "campaignId": "",\n  "displayName": "",\n  "entityStatus": "",\n  "frequencyCap": {\n    "maxImpressions": 0,\n    "maxViews": 0,\n    "timeUnit": "",\n    "timeUnitCount": 0,\n    "unlimited": false\n  },\n  "name": "",\n  "updateTime": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")
  .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/v2/advertisers/:advertiserId/campaigns/:campaignId',
  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({
  advertiserId: '',
  campaignBudgets: [
    {
      budgetAmountMicros: '',
      budgetId: '',
      budgetUnit: '',
      dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
      displayName: '',
      externalBudgetId: '',
      externalBudgetSource: '',
      invoiceGroupingId: '',
      prismaConfig: {
        prismaCpeCode: {prismaClientCode: '', prismaEstimateCode: '', prismaProductCode: ''},
        prismaType: '',
        supplier: ''
      }
    }
  ],
  campaignFlight: {plannedDates: {}, plannedSpendAmountMicros: ''},
  campaignGoal: {
    campaignGoalType: '',
    performanceGoal: {
      performanceGoalAmountMicros: '',
      performanceGoalPercentageMicros: '',
      performanceGoalString: '',
      performanceGoalType: ''
    }
  },
  campaignId: '',
  displayName: '',
  entityStatus: '',
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  name: '',
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    campaignBudgets: [
      {
        budgetAmountMicros: '',
        budgetId: '',
        budgetUnit: '',
        dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
        displayName: '',
        externalBudgetId: '',
        externalBudgetSource: '',
        invoiceGroupingId: '',
        prismaConfig: {
          prismaCpeCode: {prismaClientCode: '', prismaEstimateCode: '', prismaProductCode: ''},
          prismaType: '',
          supplier: ''
        }
      }
    ],
    campaignFlight: {plannedDates: {}, plannedSpendAmountMicros: ''},
    campaignGoal: {
      campaignGoalType: '',
      performanceGoal: {
        performanceGoalAmountMicros: '',
        performanceGoalPercentageMicros: '',
        performanceGoalString: '',
        performanceGoalType: ''
      }
    },
    campaignId: '',
    displayName: '',
    entityStatus: '',
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    name: '',
    updateTime: ''
  },
  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}}/v2/advertisers/:advertiserId/campaigns/:campaignId');

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

req.type('json');
req.send({
  advertiserId: '',
  campaignBudgets: [
    {
      budgetAmountMicros: '',
      budgetId: '',
      budgetUnit: '',
      dateRange: {
        endDate: {
          day: 0,
          month: 0,
          year: 0
        },
        startDate: {}
      },
      displayName: '',
      externalBudgetId: '',
      externalBudgetSource: '',
      invoiceGroupingId: '',
      prismaConfig: {
        prismaCpeCode: {
          prismaClientCode: '',
          prismaEstimateCode: '',
          prismaProductCode: ''
        },
        prismaType: '',
        supplier: ''
      }
    }
  ],
  campaignFlight: {
    plannedDates: {},
    plannedSpendAmountMicros: ''
  },
  campaignGoal: {
    campaignGoalType: '',
    performanceGoal: {
      performanceGoalAmountMicros: '',
      performanceGoalPercentageMicros: '',
      performanceGoalString: '',
      performanceGoalType: ''
    }
  },
  campaignId: '',
  displayName: '',
  entityStatus: '',
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  name: '',
  updateTime: ''
});

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}}/v2/advertisers/:advertiserId/campaigns/:campaignId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    campaignBudgets: [
      {
        budgetAmountMicros: '',
        budgetId: '',
        budgetUnit: '',
        dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
        displayName: '',
        externalBudgetId: '',
        externalBudgetSource: '',
        invoiceGroupingId: '',
        prismaConfig: {
          prismaCpeCode: {prismaClientCode: '', prismaEstimateCode: '', prismaProductCode: ''},
          prismaType: '',
          supplier: ''
        }
      }
    ],
    campaignFlight: {plannedDates: {}, plannedSpendAmountMicros: ''},
    campaignGoal: {
      campaignGoalType: '',
      performanceGoal: {
        performanceGoalAmountMicros: '',
        performanceGoalPercentageMicros: '',
        performanceGoalString: '',
        performanceGoalType: ''
      }
    },
    campaignId: '',
    displayName: '',
    entityStatus: '',
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    name: '',
    updateTime: ''
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","campaignBudgets":[{"budgetAmountMicros":"","budgetId":"","budgetUnit":"","dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"displayName":"","externalBudgetId":"","externalBudgetSource":"","invoiceGroupingId":"","prismaConfig":{"prismaCpeCode":{"prismaClientCode":"","prismaEstimateCode":"","prismaProductCode":""},"prismaType":"","supplier":""}}],"campaignFlight":{"plannedDates":{},"plannedSpendAmountMicros":""},"campaignGoal":{"campaignGoalType":"","performanceGoal":{"performanceGoalAmountMicros":"","performanceGoalPercentageMicros":"","performanceGoalString":"","performanceGoalType":""}},"campaignId":"","displayName":"","entityStatus":"","frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"name":"","updateTime":""}'
};

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 = @{ @"advertiserId": @"",
                              @"campaignBudgets": @[ @{ @"budgetAmountMicros": @"", @"budgetId": @"", @"budgetUnit": @"", @"dateRange": @{ @"endDate": @{ @"day": @0, @"month": @0, @"year": @0 }, @"startDate": @{  } }, @"displayName": @"", @"externalBudgetId": @"", @"externalBudgetSource": @"", @"invoiceGroupingId": @"", @"prismaConfig": @{ @"prismaCpeCode": @{ @"prismaClientCode": @"", @"prismaEstimateCode": @"", @"prismaProductCode": @"" }, @"prismaType": @"", @"supplier": @"" } } ],
                              @"campaignFlight": @{ @"plannedDates": @{  }, @"plannedSpendAmountMicros": @"" },
                              @"campaignGoal": @{ @"campaignGoalType": @"", @"performanceGoal": @{ @"performanceGoalAmountMicros": @"", @"performanceGoalPercentageMicros": @"", @"performanceGoalString": @"", @"performanceGoalType": @"" } },
                              @"campaignId": @"",
                              @"displayName": @"",
                              @"entityStatus": @"",
                              @"frequencyCap": @{ @"maxImpressions": @0, @"maxViews": @0, @"timeUnit": @"", @"timeUnitCount": @0, @"unlimited": @NO },
                              @"name": @"",
                              @"updateTime": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"]
                                                       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}}/v2/advertisers/:advertiserId/campaigns/:campaignId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId",
  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([
    'advertiserId' => '',
    'campaignBudgets' => [
        [
                'budgetAmountMicros' => '',
                'budgetId' => '',
                'budgetUnit' => '',
                'dateRange' => [
                                'endDate' => [
                                                                'day' => 0,
                                                                'month' => 0,
                                                                'year' => 0
                                ],
                                'startDate' => [
                                                                
                                ]
                ],
                'displayName' => '',
                'externalBudgetId' => '',
                'externalBudgetSource' => '',
                'invoiceGroupingId' => '',
                'prismaConfig' => [
                                'prismaCpeCode' => [
                                                                'prismaClientCode' => '',
                                                                'prismaEstimateCode' => '',
                                                                'prismaProductCode' => ''
                                ],
                                'prismaType' => '',
                                'supplier' => ''
                ]
        ]
    ],
    'campaignFlight' => [
        'plannedDates' => [
                
        ],
        'plannedSpendAmountMicros' => ''
    ],
    'campaignGoal' => [
        'campaignGoalType' => '',
        'performanceGoal' => [
                'performanceGoalAmountMicros' => '',
                'performanceGoalPercentageMicros' => '',
                'performanceGoalString' => '',
                'performanceGoalType' => ''
        ]
    ],
    'campaignId' => '',
    'displayName' => '',
    'entityStatus' => '',
    'frequencyCap' => [
        'maxImpressions' => 0,
        'maxViews' => 0,
        'timeUnit' => '',
        'timeUnitCount' => 0,
        'unlimited' => null
    ],
    'name' => '',
    'updateTime' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/campaigns/:campaignId', [
  'body' => '{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'campaignBudgets' => [
    [
        'budgetAmountMicros' => '',
        'budgetId' => '',
        'budgetUnit' => '',
        'dateRange' => [
                'endDate' => [
                                'day' => 0,
                                'month' => 0,
                                'year' => 0
                ],
                'startDate' => [
                                
                ]
        ],
        'displayName' => '',
        'externalBudgetId' => '',
        'externalBudgetSource' => '',
        'invoiceGroupingId' => '',
        'prismaConfig' => [
                'prismaCpeCode' => [
                                'prismaClientCode' => '',
                                'prismaEstimateCode' => '',
                                'prismaProductCode' => ''
                ],
                'prismaType' => '',
                'supplier' => ''
        ]
    ]
  ],
  'campaignFlight' => [
    'plannedDates' => [
        
    ],
    'plannedSpendAmountMicros' => ''
  ],
  'campaignGoal' => [
    'campaignGoalType' => '',
    'performanceGoal' => [
        'performanceGoalAmountMicros' => '',
        'performanceGoalPercentageMicros' => '',
        'performanceGoalString' => '',
        'performanceGoalType' => ''
    ]
  ],
  'campaignId' => '',
  'displayName' => '',
  'entityStatus' => '',
  'frequencyCap' => [
    'maxImpressions' => 0,
    'maxViews' => 0,
    'timeUnit' => '',
    'timeUnitCount' => 0,
    'unlimited' => null
  ],
  'name' => '',
  'updateTime' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'campaignBudgets' => [
    [
        'budgetAmountMicros' => '',
        'budgetId' => '',
        'budgetUnit' => '',
        'dateRange' => [
                'endDate' => [
                                'day' => 0,
                                'month' => 0,
                                'year' => 0
                ],
                'startDate' => [
                                
                ]
        ],
        'displayName' => '',
        'externalBudgetId' => '',
        'externalBudgetSource' => '',
        'invoiceGroupingId' => '',
        'prismaConfig' => [
                'prismaCpeCode' => [
                                'prismaClientCode' => '',
                                'prismaEstimateCode' => '',
                                'prismaProductCode' => ''
                ],
                'prismaType' => '',
                'supplier' => ''
        ]
    ]
  ],
  'campaignFlight' => [
    'plannedDates' => [
        
    ],
    'plannedSpendAmountMicros' => ''
  ],
  'campaignGoal' => [
    'campaignGoalType' => '',
    'performanceGoal' => [
        'performanceGoalAmountMicros' => '',
        'performanceGoalPercentageMicros' => '',
        'performanceGoalString' => '',
        'performanceGoalType' => ''
    ]
  ],
  'campaignId' => '',
  'displayName' => '',
  'entityStatus' => '',
  'frequencyCap' => [
    'maxImpressions' => 0,
    'maxViews' => 0,
    'timeUnit' => '',
    'timeUnitCount' => 0,
    'unlimited' => null
  ],
  'name' => '',
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId');
$request->setRequestMethod('PATCH');
$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}}/v2/advertisers/:advertiserId/campaigns/:campaignId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}'
import http.client

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

payload = "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/v2/advertisers/:advertiserId/campaigns/:campaignId", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"

payload = {
    "advertiserId": "",
    "campaignBudgets": [
        {
            "budgetAmountMicros": "",
            "budgetId": "",
            "budgetUnit": "",
            "dateRange": {
                "endDate": {
                    "day": 0,
                    "month": 0,
                    "year": 0
                },
                "startDate": {}
            },
            "displayName": "",
            "externalBudgetId": "",
            "externalBudgetSource": "",
            "invoiceGroupingId": "",
            "prismaConfig": {
                "prismaCpeCode": {
                    "prismaClientCode": "",
                    "prismaEstimateCode": "",
                    "prismaProductCode": ""
                },
                "prismaType": "",
                "supplier": ""
            }
        }
    ],
    "campaignFlight": {
        "plannedDates": {},
        "plannedSpendAmountMicros": ""
    },
    "campaignGoal": {
        "campaignGoalType": "",
        "performanceGoal": {
            "performanceGoalAmountMicros": "",
            "performanceGoalPercentageMicros": "",
            "performanceGoalString": "",
            "performanceGoalType": ""
        }
    },
    "campaignId": "",
    "displayName": "",
    "entityStatus": "",
    "frequencyCap": {
        "maxImpressions": 0,
        "maxViews": 0,
        "timeUnit": "",
        "timeUnitCount": 0,
        "unlimited": False
    },
    "name": "",
    "updateTime": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId"

payload <- "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")

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  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\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/v2/advertisers/:advertiserId/campaigns/:campaignId') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"campaignBudgets\": [\n    {\n      \"budgetAmountMicros\": \"\",\n      \"budgetId\": \"\",\n      \"budgetUnit\": \"\",\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"displayName\": \"\",\n      \"externalBudgetId\": \"\",\n      \"externalBudgetSource\": \"\",\n      \"invoiceGroupingId\": \"\",\n      \"prismaConfig\": {\n        \"prismaCpeCode\": {\n          \"prismaClientCode\": \"\",\n          \"prismaEstimateCode\": \"\",\n          \"prismaProductCode\": \"\"\n        },\n        \"prismaType\": \"\",\n        \"supplier\": \"\"\n      }\n    }\n  ],\n  \"campaignFlight\": {\n    \"plannedDates\": {},\n    \"plannedSpendAmountMicros\": \"\"\n  },\n  \"campaignGoal\": {\n    \"campaignGoalType\": \"\",\n    \"performanceGoal\": {\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalPercentageMicros\": \"\",\n      \"performanceGoalString\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"name\": \"\",\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId/campaigns/:campaignId";

    let payload = json!({
        "advertiserId": "",
        "campaignBudgets": (
            json!({
                "budgetAmountMicros": "",
                "budgetId": "",
                "budgetUnit": "",
                "dateRange": json!({
                    "endDate": json!({
                        "day": 0,
                        "month": 0,
                        "year": 0
                    }),
                    "startDate": json!({})
                }),
                "displayName": "",
                "externalBudgetId": "",
                "externalBudgetSource": "",
                "invoiceGroupingId": "",
                "prismaConfig": json!({
                    "prismaCpeCode": json!({
                        "prismaClientCode": "",
                        "prismaEstimateCode": "",
                        "prismaProductCode": ""
                    }),
                    "prismaType": "",
                    "supplier": ""
                })
            })
        ),
        "campaignFlight": json!({
            "plannedDates": json!({}),
            "plannedSpendAmountMicros": ""
        }),
        "campaignGoal": json!({
            "campaignGoalType": "",
            "performanceGoal": json!({
                "performanceGoalAmountMicros": "",
                "performanceGoalPercentageMicros": "",
                "performanceGoalString": "",
                "performanceGoalType": ""
            })
        }),
        "campaignId": "",
        "displayName": "",
        "entityStatus": "",
        "frequencyCap": json!({
            "maxImpressions": 0,
            "maxViews": 0,
            "timeUnit": "",
            "timeUnitCount": 0,
            "unlimited": false
        }),
        "name": "",
        "updateTime": ""
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}'
echo '{
  "advertiserId": "",
  "campaignBudgets": [
    {
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": {
        "prismaCpeCode": {
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        },
        "prismaType": "",
        "supplier": ""
      }
    }
  ],
  "campaignFlight": {
    "plannedDates": {},
    "plannedSpendAmountMicros": ""
  },
  "campaignGoal": {
    "campaignGoalType": "",
    "performanceGoal": {
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    }
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "name": "",
  "updateTime": ""
}' |  \
  http PATCH {{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "campaignBudgets": [\n    {\n      "budgetAmountMicros": "",\n      "budgetId": "",\n      "budgetUnit": "",\n      "dateRange": {\n        "endDate": {\n          "day": 0,\n          "month": 0,\n          "year": 0\n        },\n        "startDate": {}\n      },\n      "displayName": "",\n      "externalBudgetId": "",\n      "externalBudgetSource": "",\n      "invoiceGroupingId": "",\n      "prismaConfig": {\n        "prismaCpeCode": {\n          "prismaClientCode": "",\n          "prismaEstimateCode": "",\n          "prismaProductCode": ""\n        },\n        "prismaType": "",\n        "supplier": ""\n      }\n    }\n  ],\n  "campaignFlight": {\n    "plannedDates": {},\n    "plannedSpendAmountMicros": ""\n  },\n  "campaignGoal": {\n    "campaignGoalType": "",\n    "performanceGoal": {\n      "performanceGoalAmountMicros": "",\n      "performanceGoalPercentageMicros": "",\n      "performanceGoalString": "",\n      "performanceGoalType": ""\n    }\n  },\n  "campaignId": "",\n  "displayName": "",\n  "entityStatus": "",\n  "frequencyCap": {\n    "maxImpressions": 0,\n    "maxViews": 0,\n    "timeUnit": "",\n    "timeUnitCount": 0,\n    "unlimited": false\n  },\n  "name": "",\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "campaignBudgets": [
    [
      "budgetAmountMicros": "",
      "budgetId": "",
      "budgetUnit": "",
      "dateRange": [
        "endDate": [
          "day": 0,
          "month": 0,
          "year": 0
        ],
        "startDate": []
      ],
      "displayName": "",
      "externalBudgetId": "",
      "externalBudgetSource": "",
      "invoiceGroupingId": "",
      "prismaConfig": [
        "prismaCpeCode": [
          "prismaClientCode": "",
          "prismaEstimateCode": "",
          "prismaProductCode": ""
        ],
        "prismaType": "",
        "supplier": ""
      ]
    ]
  ],
  "campaignFlight": [
    "plannedDates": [],
    "plannedSpendAmountMicros": ""
  ],
  "campaignGoal": [
    "campaignGoalType": "",
    "performanceGoal": [
      "performanceGoalAmountMicros": "",
      "performanceGoalPercentageMicros": "",
      "performanceGoalString": "",
      "performanceGoalType": ""
    ]
  ],
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": [
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  ],
  "name": "",
  "updateTime": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId")! 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()
GET displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.get
{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
QUERY PARAMS

advertiserId
campaignId
targetingType
assignedTargetingOptionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

	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/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"))
    .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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"]
                                                       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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId",
  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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

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/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId";

    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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
http GET {{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")! 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 displayvideo.advertisers.campaigns.targetingTypes.assignedTargetingOptions.list
{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions
QUERY PARAMS

advertiserId
campaignId
targetingType
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions"

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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions"

	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/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions"))
    .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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions")
  .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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions',
  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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions');

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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions",
  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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions")

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/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions";

    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}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions
http GET {{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/campaigns/:campaignId/targetingTypes/:targetingType/assignedTargetingOptions")! 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 displayvideo.advertisers.channels.create
{{baseUrl}}/v2/advertisers/:advertiserId/channels
QUERY PARAMS

advertiserId
BODY json

{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/channels");

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  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/channels" {:content-type :json
                                                                                  :form-params {:advertiserId ""
                                                                                                :channelId ""
                                                                                                :displayName ""
                                                                                                :name ""
                                                                                                :negativelyTargetedLineItemCount ""
                                                                                                :partnerId ""
                                                                                                :positivelyTargetedLineItemCount ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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}}/v2/advertisers/:advertiserId/channels"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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}}/v2/advertisers/:advertiserId/channels");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/channels"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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/v2/advertisers/:advertiserId/channels HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 179

{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/channels")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/channels"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/channels")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/channels")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  channelId: '',
  displayName: '',
  name: '',
  negativelyTargetedLineItemCount: '',
  partnerId: '',
  positivelyTargetedLineItemCount: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/channels');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/channels',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    channelId: '',
    displayName: '',
    name: '',
    negativelyTargetedLineItemCount: '',
    partnerId: '',
    positivelyTargetedLineItemCount: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","channelId":"","displayName":"","name":"","negativelyTargetedLineItemCount":"","partnerId":"","positivelyTargetedLineItemCount":""}'
};

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}}/v2/advertisers/:advertiserId/channels',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "channelId": "",\n  "displayName": "",\n  "name": "",\n  "negativelyTargetedLineItemCount": "",\n  "partnerId": "",\n  "positivelyTargetedLineItemCount": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/channels")
  .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/v2/advertisers/:advertiserId/channels',
  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({
  advertiserId: '',
  channelId: '',
  displayName: '',
  name: '',
  negativelyTargetedLineItemCount: '',
  partnerId: '',
  positivelyTargetedLineItemCount: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/channels',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    channelId: '',
    displayName: '',
    name: '',
    negativelyTargetedLineItemCount: '',
    partnerId: '',
    positivelyTargetedLineItemCount: ''
  },
  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}}/v2/advertisers/:advertiserId/channels');

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

req.type('json');
req.send({
  advertiserId: '',
  channelId: '',
  displayName: '',
  name: '',
  negativelyTargetedLineItemCount: '',
  partnerId: '',
  positivelyTargetedLineItemCount: ''
});

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}}/v2/advertisers/:advertiserId/channels',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    channelId: '',
    displayName: '',
    name: '',
    negativelyTargetedLineItemCount: '',
    partnerId: '',
    positivelyTargetedLineItemCount: ''
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","channelId":"","displayName":"","name":"","negativelyTargetedLineItemCount":"","partnerId":"","positivelyTargetedLineItemCount":""}'
};

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 = @{ @"advertiserId": @"",
                              @"channelId": @"",
                              @"displayName": @"",
                              @"name": @"",
                              @"negativelyTargetedLineItemCount": @"",
                              @"partnerId": @"",
                              @"positivelyTargetedLineItemCount": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/channels"]
                                                       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}}/v2/advertisers/:advertiserId/channels" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/channels",
  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([
    'advertiserId' => '',
    'channelId' => '',
    'displayName' => '',
    'name' => '',
    'negativelyTargetedLineItemCount' => '',
    'partnerId' => '',
    'positivelyTargetedLineItemCount' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/channels', [
  'body' => '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/channels');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'channelId' => '',
  'displayName' => '',
  'name' => '',
  'negativelyTargetedLineItemCount' => '',
  'partnerId' => '',
  'positivelyTargetedLineItemCount' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'channelId' => '',
  'displayName' => '',
  'name' => '',
  'negativelyTargetedLineItemCount' => '',
  'partnerId' => '',
  'positivelyTargetedLineItemCount' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/channels');
$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}}/v2/advertisers/:advertiserId/channels' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/channels' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}'
import http.client

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

payload = "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/channels", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels"

payload = {
    "advertiserId": "",
    "channelId": "",
    "displayName": "",
    "name": "",
    "negativelyTargetedLineItemCount": "",
    "partnerId": "",
    "positivelyTargetedLineItemCount": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/channels"

payload <- "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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}}/v2/advertisers/:advertiserId/channels")

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  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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/v2/advertisers/:advertiserId/channels') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels";

    let payload = json!({
        "advertiserId": "",
        "channelId": "",
        "displayName": "",
        "name": "",
        "negativelyTargetedLineItemCount": "",
        "partnerId": "",
        "positivelyTargetedLineItemCount": ""
    });

    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}}/v2/advertisers/:advertiserId/channels \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}'
echo '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/channels \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "channelId": "",\n  "displayName": "",\n  "name": "",\n  "negativelyTargetedLineItemCount": "",\n  "partnerId": "",\n  "positivelyTargetedLineItemCount": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/channels
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/channels")! 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 displayvideo.advertisers.channels.list
{{baseUrl}}/v2/advertisers/:advertiserId/channels
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/channels");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/channels")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels"

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}}/v2/advertisers/:advertiserId/channels"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/channels");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/channels"

	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/v2/advertisers/:advertiserId/channels HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/channels"))
    .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}}/v2/advertisers/:advertiserId/channels")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/channels")
  .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}}/v2/advertisers/:advertiserId/channels');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/channels'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels';
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}}/v2/advertisers/:advertiserId/channels',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/channels")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/channels',
  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}}/v2/advertisers/:advertiserId/channels'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/channels');

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}}/v2/advertisers/:advertiserId/channels'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels';
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}}/v2/advertisers/:advertiserId/channels"]
                                                       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}}/v2/advertisers/:advertiserId/channels" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/channels');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/channels")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/channels"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/channels")

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/v2/advertisers/:advertiserId/channels') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels";

    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}}/v2/advertisers/:advertiserId/channels
http GET {{baseUrl}}/v2/advertisers/:advertiserId/channels
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/channels
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/channels")! 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 displayvideo.advertisers.channels.patch
{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId
QUERY PARAMS

advertiserId
channelId
BODY json

{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId");

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  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}");

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

(client/patch "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId" {:content-type :json
                                                                                              :form-params {:advertiserId ""
                                                                                                            :channelId ""
                                                                                                            :displayName ""
                                                                                                            :name ""
                                                                                                            :negativelyTargetedLineItemCount ""
                                                                                                            :partnerId ""
                                                                                                            :positivelyTargetedLineItemCount ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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}}/v2/advertisers/:advertiserId/channels/:channelId"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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}}/v2/advertisers/:advertiserId/channels/:channelId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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/v2/advertisers/:advertiserId/channels/:channelId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 179

{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  channelId: '',
  displayName: '',
  name: '',
  negativelyTargetedLineItemCount: '',
  partnerId: '',
  positivelyTargetedLineItemCount: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    channelId: '',
    displayName: '',
    name: '',
    negativelyTargetedLineItemCount: '',
    partnerId: '',
    positivelyTargetedLineItemCount: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","channelId":"","displayName":"","name":"","negativelyTargetedLineItemCount":"","partnerId":"","positivelyTargetedLineItemCount":""}'
};

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}}/v2/advertisers/:advertiserId/channels/:channelId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "channelId": "",\n  "displayName": "",\n  "name": "",\n  "negativelyTargetedLineItemCount": "",\n  "partnerId": "",\n  "positivelyTargetedLineItemCount": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId")
  .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/v2/advertisers/:advertiserId/channels/:channelId',
  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({
  advertiserId: '',
  channelId: '',
  displayName: '',
  name: '',
  negativelyTargetedLineItemCount: '',
  partnerId: '',
  positivelyTargetedLineItemCount: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    channelId: '',
    displayName: '',
    name: '',
    negativelyTargetedLineItemCount: '',
    partnerId: '',
    positivelyTargetedLineItemCount: ''
  },
  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}}/v2/advertisers/:advertiserId/channels/:channelId');

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

req.type('json');
req.send({
  advertiserId: '',
  channelId: '',
  displayName: '',
  name: '',
  negativelyTargetedLineItemCount: '',
  partnerId: '',
  positivelyTargetedLineItemCount: ''
});

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}}/v2/advertisers/:advertiserId/channels/:channelId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    channelId: '',
    displayName: '',
    name: '',
    negativelyTargetedLineItemCount: '',
    partnerId: '',
    positivelyTargetedLineItemCount: ''
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","channelId":"","displayName":"","name":"","negativelyTargetedLineItemCount":"","partnerId":"","positivelyTargetedLineItemCount":""}'
};

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 = @{ @"advertiserId": @"",
                              @"channelId": @"",
                              @"displayName": @"",
                              @"name": @"",
                              @"negativelyTargetedLineItemCount": @"",
                              @"partnerId": @"",
                              @"positivelyTargetedLineItemCount": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId"]
                                                       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}}/v2/advertisers/:advertiserId/channels/:channelId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId",
  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([
    'advertiserId' => '',
    'channelId' => '',
    'displayName' => '',
    'name' => '',
    'negativelyTargetedLineItemCount' => '',
    'partnerId' => '',
    'positivelyTargetedLineItemCount' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/channels/:channelId', [
  'body' => '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'channelId' => '',
  'displayName' => '',
  'name' => '',
  'negativelyTargetedLineItemCount' => '',
  'partnerId' => '',
  'positivelyTargetedLineItemCount' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'channelId' => '',
  'displayName' => '',
  'name' => '',
  'negativelyTargetedLineItemCount' => '',
  'partnerId' => '',
  'positivelyTargetedLineItemCount' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId');
$request->setRequestMethod('PATCH');
$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}}/v2/advertisers/:advertiserId/channels/:channelId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}'
import http.client

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

payload = "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/v2/advertisers/:advertiserId/channels/:channelId", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId"

payload = {
    "advertiserId": "",
    "channelId": "",
    "displayName": "",
    "name": "",
    "negativelyTargetedLineItemCount": "",
    "partnerId": "",
    "positivelyTargetedLineItemCount": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId"

payload <- "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId")

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  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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/v2/advertisers/:advertiserId/channels/:channelId') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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}}/v2/advertisers/:advertiserId/channels/:channelId";

    let payload = json!({
        "advertiserId": "",
        "channelId": "",
        "displayName": "",
        "name": "",
        "negativelyTargetedLineItemCount": "",
        "partnerId": "",
        "positivelyTargetedLineItemCount": ""
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}'
echo '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}' |  \
  http PATCH {{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "channelId": "",\n  "displayName": "",\n  "name": "",\n  "negativelyTargetedLineItemCount": "",\n  "partnerId": "",\n  "positivelyTargetedLineItemCount": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId")! 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()
POST displayvideo.advertisers.channels.sites.bulkEdit
{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit
QUERY PARAMS

advertiserId
channelId
BODY json

{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit");

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  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit" {:content-type :json
                                                                                                            :form-params {:advertiserId ""
                                                                                                                          :createdSites [{:name ""
                                                                                                                                          :urlOrAppId ""}]
                                                                                                                          :deletedSites []
                                                                                                                          :partnerId ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\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/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 143

{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\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  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  createdSites: [
    {
      name: '',
      urlOrAppId: ''
    }
  ],
  deletedSites: [],
  partnerId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    createdSites: [{name: '', urlOrAppId: ''}],
    deletedSites: [],
    partnerId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","createdSites":[{"name":"","urlOrAppId":""}],"deletedSites":[],"partnerId":""}'
};

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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "createdSites": [\n    {\n      "name": "",\n      "urlOrAppId": ""\n    }\n  ],\n  "deletedSites": [],\n  "partnerId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit")
  .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/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit',
  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({
  advertiserId: '',
  createdSites: [{name: '', urlOrAppId: ''}],
  deletedSites: [],
  partnerId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    createdSites: [{name: '', urlOrAppId: ''}],
    deletedSites: [],
    partnerId: ''
  },
  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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit');

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

req.type('json');
req.send({
  advertiserId: '',
  createdSites: [
    {
      name: '',
      urlOrAppId: ''
    }
  ],
  deletedSites: [],
  partnerId: ''
});

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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    createdSites: [{name: '', urlOrAppId: ''}],
    deletedSites: [],
    partnerId: ''
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","createdSites":[{"name":"","urlOrAppId":""}],"deletedSites":[],"partnerId":""}'
};

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 = @{ @"advertiserId": @"",
                              @"createdSites": @[ @{ @"name": @"", @"urlOrAppId": @"" } ],
                              @"deletedSites": @[  ],
                              @"partnerId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit"]
                                                       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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit",
  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([
    'advertiserId' => '',
    'createdSites' => [
        [
                'name' => '',
                'urlOrAppId' => ''
        ]
    ],
    'deletedSites' => [
        
    ],
    'partnerId' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit', [
  'body' => '{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'createdSites' => [
    [
        'name' => '',
        'urlOrAppId' => ''
    ]
  ],
  'deletedSites' => [
    
  ],
  'partnerId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'createdSites' => [
    [
        'name' => '',
        'urlOrAppId' => ''
    ]
  ],
  'deletedSites' => [
    
  ],
  'partnerId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit');
$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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}'
import http.client

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

payload = "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit"

payload = {
    "advertiserId": "",
    "createdSites": [
        {
            "name": "",
            "urlOrAppId": ""
        }
    ],
    "deletedSites": [],
    "partnerId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit"

payload <- "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit")

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  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\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/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit";

    let payload = json!({
        "advertiserId": "",
        "createdSites": (
            json!({
                "name": "",
                "urlOrAppId": ""
            })
        ),
        "deletedSites": (),
        "partnerId": ""
    });

    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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}'
echo '{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "createdSites": [\n    {\n      "name": "",\n      "urlOrAppId": ""\n    }\n  ],\n  "deletedSites": [],\n  "partnerId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "createdSites": [
    [
      "name": "",
      "urlOrAppId": ""
    ]
  ],
  "deletedSites": [],
  "partnerId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:bulkEdit")! 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()
DELETE displayvideo.advertisers.channels.sites.delete
{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId
QUERY PARAMS

advertiserId
channelId
urlOrAppId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId");

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

(client/delete "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId"

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}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId"

	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/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId"))
    .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}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId")
  .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}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId';
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}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId',
  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}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId');

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}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId';
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}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId"]
                                                       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}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId",
  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}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId")

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/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId";

    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}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId
http DELETE {{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites/:urlOrAppId")! 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 displayvideo.advertisers.channels.sites.list
{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites
QUERY PARAMS

advertiserId
channelId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites"

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}}/v2/advertisers/:advertiserId/channels/:channelId/sites"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites"

	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/v2/advertisers/:advertiserId/channels/:channelId/sites HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites"))
    .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}}/v2/advertisers/:advertiserId/channels/:channelId/sites")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites")
  .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}}/v2/advertisers/:advertiserId/channels/:channelId/sites');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites';
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}}/v2/advertisers/:advertiserId/channels/:channelId/sites',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/channels/:channelId/sites',
  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}}/v2/advertisers/:advertiserId/channels/:channelId/sites'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites');

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}}/v2/advertisers/:advertiserId/channels/:channelId/sites'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites';
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}}/v2/advertisers/:advertiserId/channels/:channelId/sites"]
                                                       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}}/v2/advertisers/:advertiserId/channels/:channelId/sites" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites",
  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}}/v2/advertisers/:advertiserId/channels/:channelId/sites');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/channels/:channelId/sites")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites")

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/v2/advertisers/:advertiserId/channels/:channelId/sites') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites";

    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}}/v2/advertisers/:advertiserId/channels/:channelId/sites
http GET {{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites")! 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 displayvideo.advertisers.channels.sites.replace
{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace
QUERY PARAMS

advertiserId
channelId
BODY json

{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace");

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  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace" {:content-type :json
                                                                                                           :form-params {:advertiserId ""
                                                                                                                         :newSites [{:name ""
                                                                                                                                     :urlOrAppId ""}]
                                                                                                                         :partnerId ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\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/v2/advertisers/:advertiserId/channels/:channelId/sites:replace HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 117

{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\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  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  newSites: [
    {
      name: '',
      urlOrAppId: ''
    }
  ],
  partnerId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace',
  headers: {'content-type': 'application/json'},
  data: {advertiserId: '', newSites: [{name: '', urlOrAppId: ''}], partnerId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","newSites":[{"name":"","urlOrAppId":""}],"partnerId":""}'
};

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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "newSites": [\n    {\n      "name": "",\n      "urlOrAppId": ""\n    }\n  ],\n  "partnerId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace")
  .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/v2/advertisers/:advertiserId/channels/:channelId/sites:replace',
  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({advertiserId: '', newSites: [{name: '', urlOrAppId: ''}], partnerId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace',
  headers: {'content-type': 'application/json'},
  body: {advertiserId: '', newSites: [{name: '', urlOrAppId: ''}], partnerId: ''},
  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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace');

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

req.type('json');
req.send({
  advertiserId: '',
  newSites: [
    {
      name: '',
      urlOrAppId: ''
    }
  ],
  partnerId: ''
});

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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace',
  headers: {'content-type': 'application/json'},
  data: {advertiserId: '', newSites: [{name: '', urlOrAppId: ''}], partnerId: ''}
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","newSites":[{"name":"","urlOrAppId":""}],"partnerId":""}'
};

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 = @{ @"advertiserId": @"",
                              @"newSites": @[ @{ @"name": @"", @"urlOrAppId": @"" } ],
                              @"partnerId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace"]
                                                       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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace",
  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([
    'advertiserId' => '',
    'newSites' => [
        [
                'name' => '',
                'urlOrAppId' => ''
        ]
    ],
    'partnerId' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace', [
  'body' => '{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'newSites' => [
    [
        'name' => '',
        'urlOrAppId' => ''
    ]
  ],
  'partnerId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'newSites' => [
    [
        'name' => '',
        'urlOrAppId' => ''
    ]
  ],
  'partnerId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace');
$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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}'
import http.client

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

payload = "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/channels/:channelId/sites:replace", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace"

payload = {
    "advertiserId": "",
    "newSites": [
        {
            "name": "",
            "urlOrAppId": ""
        }
    ],
    "partnerId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace"

payload <- "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace")

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  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\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/v2/advertisers/:advertiserId/channels/:channelId/sites:replace') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace";

    let payload = json!({
        "advertiserId": "",
        "newSites": (
            json!({
                "name": "",
                "urlOrAppId": ""
            })
        ),
        "partnerId": ""
    });

    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}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}'
echo '{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "newSites": [\n    {\n      "name": "",\n      "urlOrAppId": ""\n    }\n  ],\n  "partnerId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "newSites": [
    [
      "name": "",
      "urlOrAppId": ""
    ]
  ],
  "partnerId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/channels/:channelId/sites:replace")! 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()
POST displayvideo.advertisers.create
{{baseUrl}}/v2/advertisers
BODY json

{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers");

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  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}");

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

(client/post "{{baseUrl}}/v2/advertisers" {:content-type :json
                                                           :form-params {:adServerConfig {:cmHybridConfig {:cmAccountId ""
                                                                                                           :cmFloodlightConfigId ""
                                                                                                           :cmFloodlightLinkingAuthorized false
                                                                                                           :cmSyncableSiteIds []
                                                                                                           :dv360ToCmCostReportingEnabled false
                                                                                                           :dv360ToCmDataSharingEnabled false}
                                                                                          :thirdPartyOnlyConfig {:pixelOrderIdReportingEnabled false}}
                                                                         :advertiserId ""
                                                                         :billingConfig {:billingProfileId ""}
                                                                         :creativeConfig {:dynamicCreativeEnabled false
                                                                                          :iasClientId ""
                                                                                          :obaComplianceDisabled false
                                                                                          :videoCreativeDataSharingAuthorized false}
                                                                         :dataAccessConfig {:sdfConfig {:overridePartnerSdfConfig false
                                                                                                        :sdfConfig {:adminEmail ""
                                                                                                                    :version ""}}}
                                                                         :displayName ""
                                                                         :entityStatus ""
                                                                         :generalConfig {:currencyCode ""
                                                                                         :domainUrl ""
                                                                                         :timeZone ""}
                                                                         :integrationDetails {:details ""
                                                                                              :integrationCode ""}
                                                                         :name ""
                                                                         :partnerId ""
                                                                         :prismaEnabled false
                                                                         :servingConfig {:exemptTvFromViewabilityTargeting false}
                                                                         :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\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}}/v2/advertisers"),
    Content = new StringContent("{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\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}}/v2/advertisers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers"

	payload := strings.NewReader("{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\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/v2/advertisers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1143

{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\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  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers")
  .header("content-type", "application/json")
  .body("{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  adServerConfig: {
    cmHybridConfig: {
      cmAccountId: '',
      cmFloodlightConfigId: '',
      cmFloodlightLinkingAuthorized: false,
      cmSyncableSiteIds: [],
      dv360ToCmCostReportingEnabled: false,
      dv360ToCmDataSharingEnabled: false
    },
    thirdPartyOnlyConfig: {
      pixelOrderIdReportingEnabled: false
    }
  },
  advertiserId: '',
  billingConfig: {
    billingProfileId: ''
  },
  creativeConfig: {
    dynamicCreativeEnabled: false,
    iasClientId: '',
    obaComplianceDisabled: false,
    videoCreativeDataSharingAuthorized: false
  },
  dataAccessConfig: {
    sdfConfig: {
      overridePartnerSdfConfig: false,
      sdfConfig: {
        adminEmail: '',
        version: ''
      }
    }
  },
  displayName: '',
  entityStatus: '',
  generalConfig: {
    currencyCode: '',
    domainUrl: '',
    timeZone: ''
  },
  integrationDetails: {
    details: '',
    integrationCode: ''
  },
  name: '',
  partnerId: '',
  prismaEnabled: false,
  servingConfig: {
    exemptTvFromViewabilityTargeting: false
  },
  updateTime: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v2/advertisers');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers',
  headers: {'content-type': 'application/json'},
  data: {
    adServerConfig: {
      cmHybridConfig: {
        cmAccountId: '',
        cmFloodlightConfigId: '',
        cmFloodlightLinkingAuthorized: false,
        cmSyncableSiteIds: [],
        dv360ToCmCostReportingEnabled: false,
        dv360ToCmDataSharingEnabled: false
      },
      thirdPartyOnlyConfig: {pixelOrderIdReportingEnabled: false}
    },
    advertiserId: '',
    billingConfig: {billingProfileId: ''},
    creativeConfig: {
      dynamicCreativeEnabled: false,
      iasClientId: '',
      obaComplianceDisabled: false,
      videoCreativeDataSharingAuthorized: false
    },
    dataAccessConfig: {
      sdfConfig: {overridePartnerSdfConfig: false, sdfConfig: {adminEmail: '', version: ''}}
    },
    displayName: '',
    entityStatus: '',
    generalConfig: {currencyCode: '', domainUrl: '', timeZone: ''},
    integrationDetails: {details: '', integrationCode: ''},
    name: '',
    partnerId: '',
    prismaEnabled: false,
    servingConfig: {exemptTvFromViewabilityTargeting: false},
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"adServerConfig":{"cmHybridConfig":{"cmAccountId":"","cmFloodlightConfigId":"","cmFloodlightLinkingAuthorized":false,"cmSyncableSiteIds":[],"dv360ToCmCostReportingEnabled":false,"dv360ToCmDataSharingEnabled":false},"thirdPartyOnlyConfig":{"pixelOrderIdReportingEnabled":false}},"advertiserId":"","billingConfig":{"billingProfileId":""},"creativeConfig":{"dynamicCreativeEnabled":false,"iasClientId":"","obaComplianceDisabled":false,"videoCreativeDataSharingAuthorized":false},"dataAccessConfig":{"sdfConfig":{"overridePartnerSdfConfig":false,"sdfConfig":{"adminEmail":"","version":""}}},"displayName":"","entityStatus":"","generalConfig":{"currencyCode":"","domainUrl":"","timeZone":""},"integrationDetails":{"details":"","integrationCode":""},"name":"","partnerId":"","prismaEnabled":false,"servingConfig":{"exemptTvFromViewabilityTargeting":false},"updateTime":""}'
};

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}}/v2/advertisers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "adServerConfig": {\n    "cmHybridConfig": {\n      "cmAccountId": "",\n      "cmFloodlightConfigId": "",\n      "cmFloodlightLinkingAuthorized": false,\n      "cmSyncableSiteIds": [],\n      "dv360ToCmCostReportingEnabled": false,\n      "dv360ToCmDataSharingEnabled": false\n    },\n    "thirdPartyOnlyConfig": {\n      "pixelOrderIdReportingEnabled": false\n    }\n  },\n  "advertiserId": "",\n  "billingConfig": {\n    "billingProfileId": ""\n  },\n  "creativeConfig": {\n    "dynamicCreativeEnabled": false,\n    "iasClientId": "",\n    "obaComplianceDisabled": false,\n    "videoCreativeDataSharingAuthorized": false\n  },\n  "dataAccessConfig": {\n    "sdfConfig": {\n      "overridePartnerSdfConfig": false,\n      "sdfConfig": {\n        "adminEmail": "",\n        "version": ""\n      }\n    }\n  },\n  "displayName": "",\n  "entityStatus": "",\n  "generalConfig": {\n    "currencyCode": "",\n    "domainUrl": "",\n    "timeZone": ""\n  },\n  "integrationDetails": {\n    "details": "",\n    "integrationCode": ""\n  },\n  "name": "",\n  "partnerId": "",\n  "prismaEnabled": false,\n  "servingConfig": {\n    "exemptTvFromViewabilityTargeting": false\n  },\n  "updateTime": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers")
  .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/v2/advertisers',
  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({
  adServerConfig: {
    cmHybridConfig: {
      cmAccountId: '',
      cmFloodlightConfigId: '',
      cmFloodlightLinkingAuthorized: false,
      cmSyncableSiteIds: [],
      dv360ToCmCostReportingEnabled: false,
      dv360ToCmDataSharingEnabled: false
    },
    thirdPartyOnlyConfig: {pixelOrderIdReportingEnabled: false}
  },
  advertiserId: '',
  billingConfig: {billingProfileId: ''},
  creativeConfig: {
    dynamicCreativeEnabled: false,
    iasClientId: '',
    obaComplianceDisabled: false,
    videoCreativeDataSharingAuthorized: false
  },
  dataAccessConfig: {
    sdfConfig: {overridePartnerSdfConfig: false, sdfConfig: {adminEmail: '', version: ''}}
  },
  displayName: '',
  entityStatus: '',
  generalConfig: {currencyCode: '', domainUrl: '', timeZone: ''},
  integrationDetails: {details: '', integrationCode: ''},
  name: '',
  partnerId: '',
  prismaEnabled: false,
  servingConfig: {exemptTvFromViewabilityTargeting: false},
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers',
  headers: {'content-type': 'application/json'},
  body: {
    adServerConfig: {
      cmHybridConfig: {
        cmAccountId: '',
        cmFloodlightConfigId: '',
        cmFloodlightLinkingAuthorized: false,
        cmSyncableSiteIds: [],
        dv360ToCmCostReportingEnabled: false,
        dv360ToCmDataSharingEnabled: false
      },
      thirdPartyOnlyConfig: {pixelOrderIdReportingEnabled: false}
    },
    advertiserId: '',
    billingConfig: {billingProfileId: ''},
    creativeConfig: {
      dynamicCreativeEnabled: false,
      iasClientId: '',
      obaComplianceDisabled: false,
      videoCreativeDataSharingAuthorized: false
    },
    dataAccessConfig: {
      sdfConfig: {overridePartnerSdfConfig: false, sdfConfig: {adminEmail: '', version: ''}}
    },
    displayName: '',
    entityStatus: '',
    generalConfig: {currencyCode: '', domainUrl: '', timeZone: ''},
    integrationDetails: {details: '', integrationCode: ''},
    name: '',
    partnerId: '',
    prismaEnabled: false,
    servingConfig: {exemptTvFromViewabilityTargeting: false},
    updateTime: ''
  },
  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}}/v2/advertisers');

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

req.type('json');
req.send({
  adServerConfig: {
    cmHybridConfig: {
      cmAccountId: '',
      cmFloodlightConfigId: '',
      cmFloodlightLinkingAuthorized: false,
      cmSyncableSiteIds: [],
      dv360ToCmCostReportingEnabled: false,
      dv360ToCmDataSharingEnabled: false
    },
    thirdPartyOnlyConfig: {
      pixelOrderIdReportingEnabled: false
    }
  },
  advertiserId: '',
  billingConfig: {
    billingProfileId: ''
  },
  creativeConfig: {
    dynamicCreativeEnabled: false,
    iasClientId: '',
    obaComplianceDisabled: false,
    videoCreativeDataSharingAuthorized: false
  },
  dataAccessConfig: {
    sdfConfig: {
      overridePartnerSdfConfig: false,
      sdfConfig: {
        adminEmail: '',
        version: ''
      }
    }
  },
  displayName: '',
  entityStatus: '',
  generalConfig: {
    currencyCode: '',
    domainUrl: '',
    timeZone: ''
  },
  integrationDetails: {
    details: '',
    integrationCode: ''
  },
  name: '',
  partnerId: '',
  prismaEnabled: false,
  servingConfig: {
    exemptTvFromViewabilityTargeting: false
  },
  updateTime: ''
});

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}}/v2/advertisers',
  headers: {'content-type': 'application/json'},
  data: {
    adServerConfig: {
      cmHybridConfig: {
        cmAccountId: '',
        cmFloodlightConfigId: '',
        cmFloodlightLinkingAuthorized: false,
        cmSyncableSiteIds: [],
        dv360ToCmCostReportingEnabled: false,
        dv360ToCmDataSharingEnabled: false
      },
      thirdPartyOnlyConfig: {pixelOrderIdReportingEnabled: false}
    },
    advertiserId: '',
    billingConfig: {billingProfileId: ''},
    creativeConfig: {
      dynamicCreativeEnabled: false,
      iasClientId: '',
      obaComplianceDisabled: false,
      videoCreativeDataSharingAuthorized: false
    },
    dataAccessConfig: {
      sdfConfig: {overridePartnerSdfConfig: false, sdfConfig: {adminEmail: '', version: ''}}
    },
    displayName: '',
    entityStatus: '',
    generalConfig: {currencyCode: '', domainUrl: '', timeZone: ''},
    integrationDetails: {details: '', integrationCode: ''},
    name: '',
    partnerId: '',
    prismaEnabled: false,
    servingConfig: {exemptTvFromViewabilityTargeting: false},
    updateTime: ''
  }
};

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

const url = '{{baseUrl}}/v2/advertisers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"adServerConfig":{"cmHybridConfig":{"cmAccountId":"","cmFloodlightConfigId":"","cmFloodlightLinkingAuthorized":false,"cmSyncableSiteIds":[],"dv360ToCmCostReportingEnabled":false,"dv360ToCmDataSharingEnabled":false},"thirdPartyOnlyConfig":{"pixelOrderIdReportingEnabled":false}},"advertiserId":"","billingConfig":{"billingProfileId":""},"creativeConfig":{"dynamicCreativeEnabled":false,"iasClientId":"","obaComplianceDisabled":false,"videoCreativeDataSharingAuthorized":false},"dataAccessConfig":{"sdfConfig":{"overridePartnerSdfConfig":false,"sdfConfig":{"adminEmail":"","version":""}}},"displayName":"","entityStatus":"","generalConfig":{"currencyCode":"","domainUrl":"","timeZone":""},"integrationDetails":{"details":"","integrationCode":""},"name":"","partnerId":"","prismaEnabled":false,"servingConfig":{"exemptTvFromViewabilityTargeting":false},"updateTime":""}'
};

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 = @{ @"adServerConfig": @{ @"cmHybridConfig": @{ @"cmAccountId": @"", @"cmFloodlightConfigId": @"", @"cmFloodlightLinkingAuthorized": @NO, @"cmSyncableSiteIds": @[  ], @"dv360ToCmCostReportingEnabled": @NO, @"dv360ToCmDataSharingEnabled": @NO }, @"thirdPartyOnlyConfig": @{ @"pixelOrderIdReportingEnabled": @NO } },
                              @"advertiserId": @"",
                              @"billingConfig": @{ @"billingProfileId": @"" },
                              @"creativeConfig": @{ @"dynamicCreativeEnabled": @NO, @"iasClientId": @"", @"obaComplianceDisabled": @NO, @"videoCreativeDataSharingAuthorized": @NO },
                              @"dataAccessConfig": @{ @"sdfConfig": @{ @"overridePartnerSdfConfig": @NO, @"sdfConfig": @{ @"adminEmail": @"", @"version": @"" } } },
                              @"displayName": @"",
                              @"entityStatus": @"",
                              @"generalConfig": @{ @"currencyCode": @"", @"domainUrl": @"", @"timeZone": @"" },
                              @"integrationDetails": @{ @"details": @"", @"integrationCode": @"" },
                              @"name": @"",
                              @"partnerId": @"",
                              @"prismaEnabled": @NO,
                              @"servingConfig": @{ @"exemptTvFromViewabilityTargeting": @NO },
                              @"updateTime": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers"]
                                                       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}}/v2/advertisers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers",
  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([
    'adServerConfig' => [
        'cmHybridConfig' => [
                'cmAccountId' => '',
                'cmFloodlightConfigId' => '',
                'cmFloodlightLinkingAuthorized' => null,
                'cmSyncableSiteIds' => [
                                
                ],
                'dv360ToCmCostReportingEnabled' => null,
                'dv360ToCmDataSharingEnabled' => null
        ],
        'thirdPartyOnlyConfig' => [
                'pixelOrderIdReportingEnabled' => null
        ]
    ],
    'advertiserId' => '',
    'billingConfig' => [
        'billingProfileId' => ''
    ],
    'creativeConfig' => [
        'dynamicCreativeEnabled' => null,
        'iasClientId' => '',
        'obaComplianceDisabled' => null,
        'videoCreativeDataSharingAuthorized' => null
    ],
    'dataAccessConfig' => [
        'sdfConfig' => [
                'overridePartnerSdfConfig' => null,
                'sdfConfig' => [
                                'adminEmail' => '',
                                'version' => ''
                ]
        ]
    ],
    'displayName' => '',
    'entityStatus' => '',
    'generalConfig' => [
        'currencyCode' => '',
        'domainUrl' => '',
        'timeZone' => ''
    ],
    'integrationDetails' => [
        'details' => '',
        'integrationCode' => ''
    ],
    'name' => '',
    'partnerId' => '',
    'prismaEnabled' => null,
    'servingConfig' => [
        'exemptTvFromViewabilityTargeting' => null
    ],
    'updateTime' => ''
  ]),
  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}}/v2/advertisers', [
  'body' => '{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'adServerConfig' => [
    'cmHybridConfig' => [
        'cmAccountId' => '',
        'cmFloodlightConfigId' => '',
        'cmFloodlightLinkingAuthorized' => null,
        'cmSyncableSiteIds' => [
                
        ],
        'dv360ToCmCostReportingEnabled' => null,
        'dv360ToCmDataSharingEnabled' => null
    ],
    'thirdPartyOnlyConfig' => [
        'pixelOrderIdReportingEnabled' => null
    ]
  ],
  'advertiserId' => '',
  'billingConfig' => [
    'billingProfileId' => ''
  ],
  'creativeConfig' => [
    'dynamicCreativeEnabled' => null,
    'iasClientId' => '',
    'obaComplianceDisabled' => null,
    'videoCreativeDataSharingAuthorized' => null
  ],
  'dataAccessConfig' => [
    'sdfConfig' => [
        'overridePartnerSdfConfig' => null,
        'sdfConfig' => [
                'adminEmail' => '',
                'version' => ''
        ]
    ]
  ],
  'displayName' => '',
  'entityStatus' => '',
  'generalConfig' => [
    'currencyCode' => '',
    'domainUrl' => '',
    'timeZone' => ''
  ],
  'integrationDetails' => [
    'details' => '',
    'integrationCode' => ''
  ],
  'name' => '',
  'partnerId' => '',
  'prismaEnabled' => null,
  'servingConfig' => [
    'exemptTvFromViewabilityTargeting' => null
  ],
  'updateTime' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'adServerConfig' => [
    'cmHybridConfig' => [
        'cmAccountId' => '',
        'cmFloodlightConfigId' => '',
        'cmFloodlightLinkingAuthorized' => null,
        'cmSyncableSiteIds' => [
                
        ],
        'dv360ToCmCostReportingEnabled' => null,
        'dv360ToCmDataSharingEnabled' => null
    ],
    'thirdPartyOnlyConfig' => [
        'pixelOrderIdReportingEnabled' => null
    ]
  ],
  'advertiserId' => '',
  'billingConfig' => [
    'billingProfileId' => ''
  ],
  'creativeConfig' => [
    'dynamicCreativeEnabled' => null,
    'iasClientId' => '',
    'obaComplianceDisabled' => null,
    'videoCreativeDataSharingAuthorized' => null
  ],
  'dataAccessConfig' => [
    'sdfConfig' => [
        'overridePartnerSdfConfig' => null,
        'sdfConfig' => [
                'adminEmail' => '',
                'version' => ''
        ]
    ]
  ],
  'displayName' => '',
  'entityStatus' => '',
  'generalConfig' => [
    'currencyCode' => '',
    'domainUrl' => '',
    'timeZone' => ''
  ],
  'integrationDetails' => [
    'details' => '',
    'integrationCode' => ''
  ],
  'name' => '',
  'partnerId' => '',
  'prismaEnabled' => null,
  'servingConfig' => [
    'exemptTvFromViewabilityTargeting' => null
  ],
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers');
$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}}/v2/advertisers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}'
import http.client

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

payload = "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v2/advertisers", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers"

payload = {
    "adServerConfig": {
        "cmHybridConfig": {
            "cmAccountId": "",
            "cmFloodlightConfigId": "",
            "cmFloodlightLinkingAuthorized": False,
            "cmSyncableSiteIds": [],
            "dv360ToCmCostReportingEnabled": False,
            "dv360ToCmDataSharingEnabled": False
        },
        "thirdPartyOnlyConfig": { "pixelOrderIdReportingEnabled": False }
    },
    "advertiserId": "",
    "billingConfig": { "billingProfileId": "" },
    "creativeConfig": {
        "dynamicCreativeEnabled": False,
        "iasClientId": "",
        "obaComplianceDisabled": False,
        "videoCreativeDataSharingAuthorized": False
    },
    "dataAccessConfig": { "sdfConfig": {
            "overridePartnerSdfConfig": False,
            "sdfConfig": {
                "adminEmail": "",
                "version": ""
            }
        } },
    "displayName": "",
    "entityStatus": "",
    "generalConfig": {
        "currencyCode": "",
        "domainUrl": "",
        "timeZone": ""
    },
    "integrationDetails": {
        "details": "",
        "integrationCode": ""
    },
    "name": "",
    "partnerId": "",
    "prismaEnabled": False,
    "servingConfig": { "exemptTvFromViewabilityTargeting": False },
    "updateTime": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers"

payload <- "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\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}}/v2/advertisers")

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  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\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/v2/advertisers') do |req|
  req.body = "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}"
end

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

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

    let payload = json!({
        "adServerConfig": json!({
            "cmHybridConfig": json!({
                "cmAccountId": "",
                "cmFloodlightConfigId": "",
                "cmFloodlightLinkingAuthorized": false,
                "cmSyncableSiteIds": (),
                "dv360ToCmCostReportingEnabled": false,
                "dv360ToCmDataSharingEnabled": false
            }),
            "thirdPartyOnlyConfig": json!({"pixelOrderIdReportingEnabled": false})
        }),
        "advertiserId": "",
        "billingConfig": json!({"billingProfileId": ""}),
        "creativeConfig": json!({
            "dynamicCreativeEnabled": false,
            "iasClientId": "",
            "obaComplianceDisabled": false,
            "videoCreativeDataSharingAuthorized": false
        }),
        "dataAccessConfig": json!({"sdfConfig": json!({
                "overridePartnerSdfConfig": false,
                "sdfConfig": json!({
                    "adminEmail": "",
                    "version": ""
                })
            })}),
        "displayName": "",
        "entityStatus": "",
        "generalConfig": json!({
            "currencyCode": "",
            "domainUrl": "",
            "timeZone": ""
        }),
        "integrationDetails": json!({
            "details": "",
            "integrationCode": ""
        }),
        "name": "",
        "partnerId": "",
        "prismaEnabled": false,
        "servingConfig": json!({"exemptTvFromViewabilityTargeting": false}),
        "updateTime": ""
    });

    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}}/v2/advertisers \
  --header 'content-type: application/json' \
  --data '{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}'
echo '{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}' |  \
  http POST {{baseUrl}}/v2/advertisers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "adServerConfig": {\n    "cmHybridConfig": {\n      "cmAccountId": "",\n      "cmFloodlightConfigId": "",\n      "cmFloodlightLinkingAuthorized": false,\n      "cmSyncableSiteIds": [],\n      "dv360ToCmCostReportingEnabled": false,\n      "dv360ToCmDataSharingEnabled": false\n    },\n    "thirdPartyOnlyConfig": {\n      "pixelOrderIdReportingEnabled": false\n    }\n  },\n  "advertiserId": "",\n  "billingConfig": {\n    "billingProfileId": ""\n  },\n  "creativeConfig": {\n    "dynamicCreativeEnabled": false,\n    "iasClientId": "",\n    "obaComplianceDisabled": false,\n    "videoCreativeDataSharingAuthorized": false\n  },\n  "dataAccessConfig": {\n    "sdfConfig": {\n      "overridePartnerSdfConfig": false,\n      "sdfConfig": {\n        "adminEmail": "",\n        "version": ""\n      }\n    }\n  },\n  "displayName": "",\n  "entityStatus": "",\n  "generalConfig": {\n    "currencyCode": "",\n    "domainUrl": "",\n    "timeZone": ""\n  },\n  "integrationDetails": {\n    "details": "",\n    "integrationCode": ""\n  },\n  "name": "",\n  "partnerId": "",\n  "prismaEnabled": false,\n  "servingConfig": {\n    "exemptTvFromViewabilityTargeting": false\n  },\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "adServerConfig": [
    "cmHybridConfig": [
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    ],
    "thirdPartyOnlyConfig": ["pixelOrderIdReportingEnabled": false]
  ],
  "advertiserId": "",
  "billingConfig": ["billingProfileId": ""],
  "creativeConfig": [
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  ],
  "dataAccessConfig": ["sdfConfig": [
      "overridePartnerSdfConfig": false,
      "sdfConfig": [
        "adminEmail": "",
        "version": ""
      ]
    ]],
  "displayName": "",
  "entityStatus": "",
  "generalConfig": [
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  ],
  "integrationDetails": [
    "details": "",
    "integrationCode": ""
  ],
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": ["exemptTvFromViewabilityTargeting": false],
  "updateTime": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers")! 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()
POST displayvideo.advertisers.creatives.create
{{baseUrl}}/v2/advertisers/:advertiserId/creatives
QUERY PARAMS

advertiserId
BODY json

{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/creatives");

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  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/creatives" {:content-type :json
                                                                                   :form-params {:additionalDimensions [{:heightPixels 0
                                                                                                                         :widthPixels 0}]
                                                                                                 :advertiserId ""
                                                                                                 :appendedTag ""
                                                                                                 :assets [{:asset {:content ""
                                                                                                                   :mediaId ""}
                                                                                                           :role ""}]
                                                                                                 :cmPlacementId ""
                                                                                                 :cmTrackingAd {:cmAdId ""
                                                                                                                :cmCreativeId ""
                                                                                                                :cmPlacementId ""}
                                                                                                 :companionCreativeIds []
                                                                                                 :counterEvents [{:name ""
                                                                                                                  :reportingName ""}]
                                                                                                 :createTime ""
                                                                                                 :creativeAttributes []
                                                                                                 :creativeId ""
                                                                                                 :creativeType ""
                                                                                                 :dimensions {}
                                                                                                 :displayName ""
                                                                                                 :dynamic false
                                                                                                 :entityStatus ""
                                                                                                 :exitEvents [{:name ""
                                                                                                               :reportingName ""
                                                                                                               :type ""
                                                                                                               :url ""}]
                                                                                                 :expandOnHover false
                                                                                                 :expandingDirection ""
                                                                                                 :hostingSource ""
                                                                                                 :html5Video false
                                                                                                 :iasCampaignMonitoring false
                                                                                                 :integrationCode ""
                                                                                                 :jsTrackerUrl ""
                                                                                                 :lineItemIds []
                                                                                                 :mediaDuration ""
                                                                                                 :mp3Audio false
                                                                                                 :name ""
                                                                                                 :notes ""
                                                                                                 :obaIcon {:clickTrackingUrl ""
                                                                                                           :dimensions {}
                                                                                                           :landingPageUrl ""
                                                                                                           :position ""
                                                                                                           :program ""
                                                                                                           :resourceMimeType ""
                                                                                                           :resourceUrl ""
                                                                                                           :viewTrackingUrl ""}
                                                                                                 :oggAudio false
                                                                                                 :progressOffset {:percentage ""
                                                                                                                  :seconds ""}
                                                                                                 :requireHtml5 false
                                                                                                 :requireMraid false
                                                                                                 :requirePingForAttribution false
                                                                                                 :reviewStatus {:approvalStatus ""
                                                                                                                :contentAndPolicyReviewStatus ""
                                                                                                                :creativeAndLandingPageReviewStatus ""
                                                                                                                :exchangeReviewStatuses [{:exchange ""
                                                                                                                                          :status ""}]
                                                                                                                :publisherReviewStatuses [{:publisherName ""
                                                                                                                                           :status ""}]}
                                                                                                 :skipOffset {}
                                                                                                 :skippable false
                                                                                                 :thirdPartyTag ""
                                                                                                 :thirdPartyUrls [{:type ""
                                                                                                                   :url ""}]
                                                                                                 :timerEvents [{:name ""
                                                                                                                :reportingName ""}]
                                                                                                 :trackerUrls []
                                                                                                 :transcodes [{:audioBitRateKbps ""
                                                                                                               :audioSampleRateHz ""
                                                                                                               :bitRateKbps ""
                                                                                                               :dimensions {}
                                                                                                               :fileSizeBytes ""
                                                                                                               :frameRate ""
                                                                                                               :mimeType ""
                                                                                                               :name ""
                                                                                                               :transcoded false}]
                                                                                                 :universalAdId {:id ""
                                                                                                                 :registry ""}
                                                                                                 :updateTime ""
                                                                                                 :vastTagUrl ""
                                                                                                 :vpaid false}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\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}}/v2/advertisers/:advertiserId/creatives"),
    Content = new StringContent("{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\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}}/v2/advertisers/:advertiserId/creatives");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/creatives"

	payload := strings.NewReader("{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\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/v2/advertisers/:advertiserId/creatives HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2392

{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/creatives")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/creatives"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\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  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/creatives")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/creatives")
  .header("content-type", "application/json")
  .body("{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}")
  .asString();
const data = JSON.stringify({
  additionalDimensions: [
    {
      heightPixels: 0,
      widthPixels: 0
    }
  ],
  advertiserId: '',
  appendedTag: '',
  assets: [
    {
      asset: {
        content: '',
        mediaId: ''
      },
      role: ''
    }
  ],
  cmPlacementId: '',
  cmTrackingAd: {
    cmAdId: '',
    cmCreativeId: '',
    cmPlacementId: ''
  },
  companionCreativeIds: [],
  counterEvents: [
    {
      name: '',
      reportingName: ''
    }
  ],
  createTime: '',
  creativeAttributes: [],
  creativeId: '',
  creativeType: '',
  dimensions: {},
  displayName: '',
  dynamic: false,
  entityStatus: '',
  exitEvents: [
    {
      name: '',
      reportingName: '',
      type: '',
      url: ''
    }
  ],
  expandOnHover: false,
  expandingDirection: '',
  hostingSource: '',
  html5Video: false,
  iasCampaignMonitoring: false,
  integrationCode: '',
  jsTrackerUrl: '',
  lineItemIds: [],
  mediaDuration: '',
  mp3Audio: false,
  name: '',
  notes: '',
  obaIcon: {
    clickTrackingUrl: '',
    dimensions: {},
    landingPageUrl: '',
    position: '',
    program: '',
    resourceMimeType: '',
    resourceUrl: '',
    viewTrackingUrl: ''
  },
  oggAudio: false,
  progressOffset: {
    percentage: '',
    seconds: ''
  },
  requireHtml5: false,
  requireMraid: false,
  requirePingForAttribution: false,
  reviewStatus: {
    approvalStatus: '',
    contentAndPolicyReviewStatus: '',
    creativeAndLandingPageReviewStatus: '',
    exchangeReviewStatuses: [
      {
        exchange: '',
        status: ''
      }
    ],
    publisherReviewStatuses: [
      {
        publisherName: '',
        status: ''
      }
    ]
  },
  skipOffset: {},
  skippable: false,
  thirdPartyTag: '',
  thirdPartyUrls: [
    {
      type: '',
      url: ''
    }
  ],
  timerEvents: [
    {
      name: '',
      reportingName: ''
    }
  ],
  trackerUrls: [],
  transcodes: [
    {
      audioBitRateKbps: '',
      audioSampleRateHz: '',
      bitRateKbps: '',
      dimensions: {},
      fileSizeBytes: '',
      frameRate: '',
      mimeType: '',
      name: '',
      transcoded: false
    }
  ],
  universalAdId: {
    id: '',
    registry: ''
  },
  updateTime: '',
  vastTagUrl: '',
  vpaid: false
});

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

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

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/creatives');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/creatives',
  headers: {'content-type': 'application/json'},
  data: {
    additionalDimensions: [{heightPixels: 0, widthPixels: 0}],
    advertiserId: '',
    appendedTag: '',
    assets: [{asset: {content: '', mediaId: ''}, role: ''}],
    cmPlacementId: '',
    cmTrackingAd: {cmAdId: '', cmCreativeId: '', cmPlacementId: ''},
    companionCreativeIds: [],
    counterEvents: [{name: '', reportingName: ''}],
    createTime: '',
    creativeAttributes: [],
    creativeId: '',
    creativeType: '',
    dimensions: {},
    displayName: '',
    dynamic: false,
    entityStatus: '',
    exitEvents: [{name: '', reportingName: '', type: '', url: ''}],
    expandOnHover: false,
    expandingDirection: '',
    hostingSource: '',
    html5Video: false,
    iasCampaignMonitoring: false,
    integrationCode: '',
    jsTrackerUrl: '',
    lineItemIds: [],
    mediaDuration: '',
    mp3Audio: false,
    name: '',
    notes: '',
    obaIcon: {
      clickTrackingUrl: '',
      dimensions: {},
      landingPageUrl: '',
      position: '',
      program: '',
      resourceMimeType: '',
      resourceUrl: '',
      viewTrackingUrl: ''
    },
    oggAudio: false,
    progressOffset: {percentage: '', seconds: ''},
    requireHtml5: false,
    requireMraid: false,
    requirePingForAttribution: false,
    reviewStatus: {
      approvalStatus: '',
      contentAndPolicyReviewStatus: '',
      creativeAndLandingPageReviewStatus: '',
      exchangeReviewStatuses: [{exchange: '', status: ''}],
      publisherReviewStatuses: [{publisherName: '', status: ''}]
    },
    skipOffset: {},
    skippable: false,
    thirdPartyTag: '',
    thirdPartyUrls: [{type: '', url: ''}],
    timerEvents: [{name: '', reportingName: ''}],
    trackerUrls: [],
    transcodes: [
      {
        audioBitRateKbps: '',
        audioSampleRateHz: '',
        bitRateKbps: '',
        dimensions: {},
        fileSizeBytes: '',
        frameRate: '',
        mimeType: '',
        name: '',
        transcoded: false
      }
    ],
    universalAdId: {id: '', registry: ''},
    updateTime: '',
    vastTagUrl: '',
    vpaid: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/creatives';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalDimensions":[{"heightPixels":0,"widthPixels":0}],"advertiserId":"","appendedTag":"","assets":[{"asset":{"content":"","mediaId":""},"role":""}],"cmPlacementId":"","cmTrackingAd":{"cmAdId":"","cmCreativeId":"","cmPlacementId":""},"companionCreativeIds":[],"counterEvents":[{"name":"","reportingName":""}],"createTime":"","creativeAttributes":[],"creativeId":"","creativeType":"","dimensions":{},"displayName":"","dynamic":false,"entityStatus":"","exitEvents":[{"name":"","reportingName":"","type":"","url":""}],"expandOnHover":false,"expandingDirection":"","hostingSource":"","html5Video":false,"iasCampaignMonitoring":false,"integrationCode":"","jsTrackerUrl":"","lineItemIds":[],"mediaDuration":"","mp3Audio":false,"name":"","notes":"","obaIcon":{"clickTrackingUrl":"","dimensions":{},"landingPageUrl":"","position":"","program":"","resourceMimeType":"","resourceUrl":"","viewTrackingUrl":""},"oggAudio":false,"progressOffset":{"percentage":"","seconds":""},"requireHtml5":false,"requireMraid":false,"requirePingForAttribution":false,"reviewStatus":{"approvalStatus":"","contentAndPolicyReviewStatus":"","creativeAndLandingPageReviewStatus":"","exchangeReviewStatuses":[{"exchange":"","status":""}],"publisherReviewStatuses":[{"publisherName":"","status":""}]},"skipOffset":{},"skippable":false,"thirdPartyTag":"","thirdPartyUrls":[{"type":"","url":""}],"timerEvents":[{"name":"","reportingName":""}],"trackerUrls":[],"transcodes":[{"audioBitRateKbps":"","audioSampleRateHz":"","bitRateKbps":"","dimensions":{},"fileSizeBytes":"","frameRate":"","mimeType":"","name":"","transcoded":false}],"universalAdId":{"id":"","registry":""},"updateTime":"","vastTagUrl":"","vpaid":false}'
};

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}}/v2/advertisers/:advertiserId/creatives',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalDimensions": [\n    {\n      "heightPixels": 0,\n      "widthPixels": 0\n    }\n  ],\n  "advertiserId": "",\n  "appendedTag": "",\n  "assets": [\n    {\n      "asset": {\n        "content": "",\n        "mediaId": ""\n      },\n      "role": ""\n    }\n  ],\n  "cmPlacementId": "",\n  "cmTrackingAd": {\n    "cmAdId": "",\n    "cmCreativeId": "",\n    "cmPlacementId": ""\n  },\n  "companionCreativeIds": [],\n  "counterEvents": [\n    {\n      "name": "",\n      "reportingName": ""\n    }\n  ],\n  "createTime": "",\n  "creativeAttributes": [],\n  "creativeId": "",\n  "creativeType": "",\n  "dimensions": {},\n  "displayName": "",\n  "dynamic": false,\n  "entityStatus": "",\n  "exitEvents": [\n    {\n      "name": "",\n      "reportingName": "",\n      "type": "",\n      "url": ""\n    }\n  ],\n  "expandOnHover": false,\n  "expandingDirection": "",\n  "hostingSource": "",\n  "html5Video": false,\n  "iasCampaignMonitoring": false,\n  "integrationCode": "",\n  "jsTrackerUrl": "",\n  "lineItemIds": [],\n  "mediaDuration": "",\n  "mp3Audio": false,\n  "name": "",\n  "notes": "",\n  "obaIcon": {\n    "clickTrackingUrl": "",\n    "dimensions": {},\n    "landingPageUrl": "",\n    "position": "",\n    "program": "",\n    "resourceMimeType": "",\n    "resourceUrl": "",\n    "viewTrackingUrl": ""\n  },\n  "oggAudio": false,\n  "progressOffset": {\n    "percentage": "",\n    "seconds": ""\n  },\n  "requireHtml5": false,\n  "requireMraid": false,\n  "requirePingForAttribution": false,\n  "reviewStatus": {\n    "approvalStatus": "",\n    "contentAndPolicyReviewStatus": "",\n    "creativeAndLandingPageReviewStatus": "",\n    "exchangeReviewStatuses": [\n      {\n        "exchange": "",\n        "status": ""\n      }\n    ],\n    "publisherReviewStatuses": [\n      {\n        "publisherName": "",\n        "status": ""\n      }\n    ]\n  },\n  "skipOffset": {},\n  "skippable": false,\n  "thirdPartyTag": "",\n  "thirdPartyUrls": [\n    {\n      "type": "",\n      "url": ""\n    }\n  ],\n  "timerEvents": [\n    {\n      "name": "",\n      "reportingName": ""\n    }\n  ],\n  "trackerUrls": [],\n  "transcodes": [\n    {\n      "audioBitRateKbps": "",\n      "audioSampleRateHz": "",\n      "bitRateKbps": "",\n      "dimensions": {},\n      "fileSizeBytes": "",\n      "frameRate": "",\n      "mimeType": "",\n      "name": "",\n      "transcoded": false\n    }\n  ],\n  "universalAdId": {\n    "id": "",\n    "registry": ""\n  },\n  "updateTime": "",\n  "vastTagUrl": "",\n  "vpaid": false\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/creatives")
  .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/v2/advertisers/:advertiserId/creatives',
  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({
  additionalDimensions: [{heightPixels: 0, widthPixels: 0}],
  advertiserId: '',
  appendedTag: '',
  assets: [{asset: {content: '', mediaId: ''}, role: ''}],
  cmPlacementId: '',
  cmTrackingAd: {cmAdId: '', cmCreativeId: '', cmPlacementId: ''},
  companionCreativeIds: [],
  counterEvents: [{name: '', reportingName: ''}],
  createTime: '',
  creativeAttributes: [],
  creativeId: '',
  creativeType: '',
  dimensions: {},
  displayName: '',
  dynamic: false,
  entityStatus: '',
  exitEvents: [{name: '', reportingName: '', type: '', url: ''}],
  expandOnHover: false,
  expandingDirection: '',
  hostingSource: '',
  html5Video: false,
  iasCampaignMonitoring: false,
  integrationCode: '',
  jsTrackerUrl: '',
  lineItemIds: [],
  mediaDuration: '',
  mp3Audio: false,
  name: '',
  notes: '',
  obaIcon: {
    clickTrackingUrl: '',
    dimensions: {},
    landingPageUrl: '',
    position: '',
    program: '',
    resourceMimeType: '',
    resourceUrl: '',
    viewTrackingUrl: ''
  },
  oggAudio: false,
  progressOffset: {percentage: '', seconds: ''},
  requireHtml5: false,
  requireMraid: false,
  requirePingForAttribution: false,
  reviewStatus: {
    approvalStatus: '',
    contentAndPolicyReviewStatus: '',
    creativeAndLandingPageReviewStatus: '',
    exchangeReviewStatuses: [{exchange: '', status: ''}],
    publisherReviewStatuses: [{publisherName: '', status: ''}]
  },
  skipOffset: {},
  skippable: false,
  thirdPartyTag: '',
  thirdPartyUrls: [{type: '', url: ''}],
  timerEvents: [{name: '', reportingName: ''}],
  trackerUrls: [],
  transcodes: [
    {
      audioBitRateKbps: '',
      audioSampleRateHz: '',
      bitRateKbps: '',
      dimensions: {},
      fileSizeBytes: '',
      frameRate: '',
      mimeType: '',
      name: '',
      transcoded: false
    }
  ],
  universalAdId: {id: '', registry: ''},
  updateTime: '',
  vastTagUrl: '',
  vpaid: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/creatives',
  headers: {'content-type': 'application/json'},
  body: {
    additionalDimensions: [{heightPixels: 0, widthPixels: 0}],
    advertiserId: '',
    appendedTag: '',
    assets: [{asset: {content: '', mediaId: ''}, role: ''}],
    cmPlacementId: '',
    cmTrackingAd: {cmAdId: '', cmCreativeId: '', cmPlacementId: ''},
    companionCreativeIds: [],
    counterEvents: [{name: '', reportingName: ''}],
    createTime: '',
    creativeAttributes: [],
    creativeId: '',
    creativeType: '',
    dimensions: {},
    displayName: '',
    dynamic: false,
    entityStatus: '',
    exitEvents: [{name: '', reportingName: '', type: '', url: ''}],
    expandOnHover: false,
    expandingDirection: '',
    hostingSource: '',
    html5Video: false,
    iasCampaignMonitoring: false,
    integrationCode: '',
    jsTrackerUrl: '',
    lineItemIds: [],
    mediaDuration: '',
    mp3Audio: false,
    name: '',
    notes: '',
    obaIcon: {
      clickTrackingUrl: '',
      dimensions: {},
      landingPageUrl: '',
      position: '',
      program: '',
      resourceMimeType: '',
      resourceUrl: '',
      viewTrackingUrl: ''
    },
    oggAudio: false,
    progressOffset: {percentage: '', seconds: ''},
    requireHtml5: false,
    requireMraid: false,
    requirePingForAttribution: false,
    reviewStatus: {
      approvalStatus: '',
      contentAndPolicyReviewStatus: '',
      creativeAndLandingPageReviewStatus: '',
      exchangeReviewStatuses: [{exchange: '', status: ''}],
      publisherReviewStatuses: [{publisherName: '', status: ''}]
    },
    skipOffset: {},
    skippable: false,
    thirdPartyTag: '',
    thirdPartyUrls: [{type: '', url: ''}],
    timerEvents: [{name: '', reportingName: ''}],
    trackerUrls: [],
    transcodes: [
      {
        audioBitRateKbps: '',
        audioSampleRateHz: '',
        bitRateKbps: '',
        dimensions: {},
        fileSizeBytes: '',
        frameRate: '',
        mimeType: '',
        name: '',
        transcoded: false
      }
    ],
    universalAdId: {id: '', registry: ''},
    updateTime: '',
    vastTagUrl: '',
    vpaid: false
  },
  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}}/v2/advertisers/:advertiserId/creatives');

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

req.type('json');
req.send({
  additionalDimensions: [
    {
      heightPixels: 0,
      widthPixels: 0
    }
  ],
  advertiserId: '',
  appendedTag: '',
  assets: [
    {
      asset: {
        content: '',
        mediaId: ''
      },
      role: ''
    }
  ],
  cmPlacementId: '',
  cmTrackingAd: {
    cmAdId: '',
    cmCreativeId: '',
    cmPlacementId: ''
  },
  companionCreativeIds: [],
  counterEvents: [
    {
      name: '',
      reportingName: ''
    }
  ],
  createTime: '',
  creativeAttributes: [],
  creativeId: '',
  creativeType: '',
  dimensions: {},
  displayName: '',
  dynamic: false,
  entityStatus: '',
  exitEvents: [
    {
      name: '',
      reportingName: '',
      type: '',
      url: ''
    }
  ],
  expandOnHover: false,
  expandingDirection: '',
  hostingSource: '',
  html5Video: false,
  iasCampaignMonitoring: false,
  integrationCode: '',
  jsTrackerUrl: '',
  lineItemIds: [],
  mediaDuration: '',
  mp3Audio: false,
  name: '',
  notes: '',
  obaIcon: {
    clickTrackingUrl: '',
    dimensions: {},
    landingPageUrl: '',
    position: '',
    program: '',
    resourceMimeType: '',
    resourceUrl: '',
    viewTrackingUrl: ''
  },
  oggAudio: false,
  progressOffset: {
    percentage: '',
    seconds: ''
  },
  requireHtml5: false,
  requireMraid: false,
  requirePingForAttribution: false,
  reviewStatus: {
    approvalStatus: '',
    contentAndPolicyReviewStatus: '',
    creativeAndLandingPageReviewStatus: '',
    exchangeReviewStatuses: [
      {
        exchange: '',
        status: ''
      }
    ],
    publisherReviewStatuses: [
      {
        publisherName: '',
        status: ''
      }
    ]
  },
  skipOffset: {},
  skippable: false,
  thirdPartyTag: '',
  thirdPartyUrls: [
    {
      type: '',
      url: ''
    }
  ],
  timerEvents: [
    {
      name: '',
      reportingName: ''
    }
  ],
  trackerUrls: [],
  transcodes: [
    {
      audioBitRateKbps: '',
      audioSampleRateHz: '',
      bitRateKbps: '',
      dimensions: {},
      fileSizeBytes: '',
      frameRate: '',
      mimeType: '',
      name: '',
      transcoded: false
    }
  ],
  universalAdId: {
    id: '',
    registry: ''
  },
  updateTime: '',
  vastTagUrl: '',
  vpaid: false
});

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}}/v2/advertisers/:advertiserId/creatives',
  headers: {'content-type': 'application/json'},
  data: {
    additionalDimensions: [{heightPixels: 0, widthPixels: 0}],
    advertiserId: '',
    appendedTag: '',
    assets: [{asset: {content: '', mediaId: ''}, role: ''}],
    cmPlacementId: '',
    cmTrackingAd: {cmAdId: '', cmCreativeId: '', cmPlacementId: ''},
    companionCreativeIds: [],
    counterEvents: [{name: '', reportingName: ''}],
    createTime: '',
    creativeAttributes: [],
    creativeId: '',
    creativeType: '',
    dimensions: {},
    displayName: '',
    dynamic: false,
    entityStatus: '',
    exitEvents: [{name: '', reportingName: '', type: '', url: ''}],
    expandOnHover: false,
    expandingDirection: '',
    hostingSource: '',
    html5Video: false,
    iasCampaignMonitoring: false,
    integrationCode: '',
    jsTrackerUrl: '',
    lineItemIds: [],
    mediaDuration: '',
    mp3Audio: false,
    name: '',
    notes: '',
    obaIcon: {
      clickTrackingUrl: '',
      dimensions: {},
      landingPageUrl: '',
      position: '',
      program: '',
      resourceMimeType: '',
      resourceUrl: '',
      viewTrackingUrl: ''
    },
    oggAudio: false,
    progressOffset: {percentage: '', seconds: ''},
    requireHtml5: false,
    requireMraid: false,
    requirePingForAttribution: false,
    reviewStatus: {
      approvalStatus: '',
      contentAndPolicyReviewStatus: '',
      creativeAndLandingPageReviewStatus: '',
      exchangeReviewStatuses: [{exchange: '', status: ''}],
      publisherReviewStatuses: [{publisherName: '', status: ''}]
    },
    skipOffset: {},
    skippable: false,
    thirdPartyTag: '',
    thirdPartyUrls: [{type: '', url: ''}],
    timerEvents: [{name: '', reportingName: ''}],
    trackerUrls: [],
    transcodes: [
      {
        audioBitRateKbps: '',
        audioSampleRateHz: '',
        bitRateKbps: '',
        dimensions: {},
        fileSizeBytes: '',
        frameRate: '',
        mimeType: '',
        name: '',
        transcoded: false
      }
    ],
    universalAdId: {id: '', registry: ''},
    updateTime: '',
    vastTagUrl: '',
    vpaid: false
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/creatives';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"additionalDimensions":[{"heightPixels":0,"widthPixels":0}],"advertiserId":"","appendedTag":"","assets":[{"asset":{"content":"","mediaId":""},"role":""}],"cmPlacementId":"","cmTrackingAd":{"cmAdId":"","cmCreativeId":"","cmPlacementId":""},"companionCreativeIds":[],"counterEvents":[{"name":"","reportingName":""}],"createTime":"","creativeAttributes":[],"creativeId":"","creativeType":"","dimensions":{},"displayName":"","dynamic":false,"entityStatus":"","exitEvents":[{"name":"","reportingName":"","type":"","url":""}],"expandOnHover":false,"expandingDirection":"","hostingSource":"","html5Video":false,"iasCampaignMonitoring":false,"integrationCode":"","jsTrackerUrl":"","lineItemIds":[],"mediaDuration":"","mp3Audio":false,"name":"","notes":"","obaIcon":{"clickTrackingUrl":"","dimensions":{},"landingPageUrl":"","position":"","program":"","resourceMimeType":"","resourceUrl":"","viewTrackingUrl":""},"oggAudio":false,"progressOffset":{"percentage":"","seconds":""},"requireHtml5":false,"requireMraid":false,"requirePingForAttribution":false,"reviewStatus":{"approvalStatus":"","contentAndPolicyReviewStatus":"","creativeAndLandingPageReviewStatus":"","exchangeReviewStatuses":[{"exchange":"","status":""}],"publisherReviewStatuses":[{"publisherName":"","status":""}]},"skipOffset":{},"skippable":false,"thirdPartyTag":"","thirdPartyUrls":[{"type":"","url":""}],"timerEvents":[{"name":"","reportingName":""}],"trackerUrls":[],"transcodes":[{"audioBitRateKbps":"","audioSampleRateHz":"","bitRateKbps":"","dimensions":{},"fileSizeBytes":"","frameRate":"","mimeType":"","name":"","transcoded":false}],"universalAdId":{"id":"","registry":""},"updateTime":"","vastTagUrl":"","vpaid":false}'
};

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 = @{ @"additionalDimensions": @[ @{ @"heightPixels": @0, @"widthPixels": @0 } ],
                              @"advertiserId": @"",
                              @"appendedTag": @"",
                              @"assets": @[ @{ @"asset": @{ @"content": @"", @"mediaId": @"" }, @"role": @"" } ],
                              @"cmPlacementId": @"",
                              @"cmTrackingAd": @{ @"cmAdId": @"", @"cmCreativeId": @"", @"cmPlacementId": @"" },
                              @"companionCreativeIds": @[  ],
                              @"counterEvents": @[ @{ @"name": @"", @"reportingName": @"" } ],
                              @"createTime": @"",
                              @"creativeAttributes": @[  ],
                              @"creativeId": @"",
                              @"creativeType": @"",
                              @"dimensions": @{  },
                              @"displayName": @"",
                              @"dynamic": @NO,
                              @"entityStatus": @"",
                              @"exitEvents": @[ @{ @"name": @"", @"reportingName": @"", @"type": @"", @"url": @"" } ],
                              @"expandOnHover": @NO,
                              @"expandingDirection": @"",
                              @"hostingSource": @"",
                              @"html5Video": @NO,
                              @"iasCampaignMonitoring": @NO,
                              @"integrationCode": @"",
                              @"jsTrackerUrl": @"",
                              @"lineItemIds": @[  ],
                              @"mediaDuration": @"",
                              @"mp3Audio": @NO,
                              @"name": @"",
                              @"notes": @"",
                              @"obaIcon": @{ @"clickTrackingUrl": @"", @"dimensions": @{  }, @"landingPageUrl": @"", @"position": @"", @"program": @"", @"resourceMimeType": @"", @"resourceUrl": @"", @"viewTrackingUrl": @"" },
                              @"oggAudio": @NO,
                              @"progressOffset": @{ @"percentage": @"", @"seconds": @"" },
                              @"requireHtml5": @NO,
                              @"requireMraid": @NO,
                              @"requirePingForAttribution": @NO,
                              @"reviewStatus": @{ @"approvalStatus": @"", @"contentAndPolicyReviewStatus": @"", @"creativeAndLandingPageReviewStatus": @"", @"exchangeReviewStatuses": @[ @{ @"exchange": @"", @"status": @"" } ], @"publisherReviewStatuses": @[ @{ @"publisherName": @"", @"status": @"" } ] },
                              @"skipOffset": @{  },
                              @"skippable": @NO,
                              @"thirdPartyTag": @"",
                              @"thirdPartyUrls": @[ @{ @"type": @"", @"url": @"" } ],
                              @"timerEvents": @[ @{ @"name": @"", @"reportingName": @"" } ],
                              @"trackerUrls": @[  ],
                              @"transcodes": @[ @{ @"audioBitRateKbps": @"", @"audioSampleRateHz": @"", @"bitRateKbps": @"", @"dimensions": @{  }, @"fileSizeBytes": @"", @"frameRate": @"", @"mimeType": @"", @"name": @"", @"transcoded": @NO } ],
                              @"universalAdId": @{ @"id": @"", @"registry": @"" },
                              @"updateTime": @"",
                              @"vastTagUrl": @"",
                              @"vpaid": @NO };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/creatives"]
                                                       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}}/v2/advertisers/:advertiserId/creatives" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/creatives",
  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([
    'additionalDimensions' => [
        [
                'heightPixels' => 0,
                'widthPixels' => 0
        ]
    ],
    'advertiserId' => '',
    'appendedTag' => '',
    'assets' => [
        [
                'asset' => [
                                'content' => '',
                                'mediaId' => ''
                ],
                'role' => ''
        ]
    ],
    'cmPlacementId' => '',
    'cmTrackingAd' => [
        'cmAdId' => '',
        'cmCreativeId' => '',
        'cmPlacementId' => ''
    ],
    'companionCreativeIds' => [
        
    ],
    'counterEvents' => [
        [
                'name' => '',
                'reportingName' => ''
        ]
    ],
    'createTime' => '',
    'creativeAttributes' => [
        
    ],
    'creativeId' => '',
    'creativeType' => '',
    'dimensions' => [
        
    ],
    'displayName' => '',
    'dynamic' => null,
    'entityStatus' => '',
    'exitEvents' => [
        [
                'name' => '',
                'reportingName' => '',
                'type' => '',
                'url' => ''
        ]
    ],
    'expandOnHover' => null,
    'expandingDirection' => '',
    'hostingSource' => '',
    'html5Video' => null,
    'iasCampaignMonitoring' => null,
    'integrationCode' => '',
    'jsTrackerUrl' => '',
    'lineItemIds' => [
        
    ],
    'mediaDuration' => '',
    'mp3Audio' => null,
    'name' => '',
    'notes' => '',
    'obaIcon' => [
        'clickTrackingUrl' => '',
        'dimensions' => [
                
        ],
        'landingPageUrl' => '',
        'position' => '',
        'program' => '',
        'resourceMimeType' => '',
        'resourceUrl' => '',
        'viewTrackingUrl' => ''
    ],
    'oggAudio' => null,
    'progressOffset' => [
        'percentage' => '',
        'seconds' => ''
    ],
    'requireHtml5' => null,
    'requireMraid' => null,
    'requirePingForAttribution' => null,
    'reviewStatus' => [
        'approvalStatus' => '',
        'contentAndPolicyReviewStatus' => '',
        'creativeAndLandingPageReviewStatus' => '',
        'exchangeReviewStatuses' => [
                [
                                'exchange' => '',
                                'status' => ''
                ]
        ],
        'publisherReviewStatuses' => [
                [
                                'publisherName' => '',
                                'status' => ''
                ]
        ]
    ],
    'skipOffset' => [
        
    ],
    'skippable' => null,
    'thirdPartyTag' => '',
    'thirdPartyUrls' => [
        [
                'type' => '',
                'url' => ''
        ]
    ],
    'timerEvents' => [
        [
                'name' => '',
                'reportingName' => ''
        ]
    ],
    'trackerUrls' => [
        
    ],
    'transcodes' => [
        [
                'audioBitRateKbps' => '',
                'audioSampleRateHz' => '',
                'bitRateKbps' => '',
                'dimensions' => [
                                
                ],
                'fileSizeBytes' => '',
                'frameRate' => '',
                'mimeType' => '',
                'name' => '',
                'transcoded' => null
        ]
    ],
    'universalAdId' => [
        'id' => '',
        'registry' => ''
    ],
    'updateTime' => '',
    'vastTagUrl' => '',
    'vpaid' => null
  ]),
  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}}/v2/advertisers/:advertiserId/creatives', [
  'body' => '{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/creatives');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalDimensions' => [
    [
        'heightPixels' => 0,
        'widthPixels' => 0
    ]
  ],
  'advertiserId' => '',
  'appendedTag' => '',
  'assets' => [
    [
        'asset' => [
                'content' => '',
                'mediaId' => ''
        ],
        'role' => ''
    ]
  ],
  'cmPlacementId' => '',
  'cmTrackingAd' => [
    'cmAdId' => '',
    'cmCreativeId' => '',
    'cmPlacementId' => ''
  ],
  'companionCreativeIds' => [
    
  ],
  'counterEvents' => [
    [
        'name' => '',
        'reportingName' => ''
    ]
  ],
  'createTime' => '',
  'creativeAttributes' => [
    
  ],
  'creativeId' => '',
  'creativeType' => '',
  'dimensions' => [
    
  ],
  'displayName' => '',
  'dynamic' => null,
  'entityStatus' => '',
  'exitEvents' => [
    [
        'name' => '',
        'reportingName' => '',
        'type' => '',
        'url' => ''
    ]
  ],
  'expandOnHover' => null,
  'expandingDirection' => '',
  'hostingSource' => '',
  'html5Video' => null,
  'iasCampaignMonitoring' => null,
  'integrationCode' => '',
  'jsTrackerUrl' => '',
  'lineItemIds' => [
    
  ],
  'mediaDuration' => '',
  'mp3Audio' => null,
  'name' => '',
  'notes' => '',
  'obaIcon' => [
    'clickTrackingUrl' => '',
    'dimensions' => [
        
    ],
    'landingPageUrl' => '',
    'position' => '',
    'program' => '',
    'resourceMimeType' => '',
    'resourceUrl' => '',
    'viewTrackingUrl' => ''
  ],
  'oggAudio' => null,
  'progressOffset' => [
    'percentage' => '',
    'seconds' => ''
  ],
  'requireHtml5' => null,
  'requireMraid' => null,
  'requirePingForAttribution' => null,
  'reviewStatus' => [
    'approvalStatus' => '',
    'contentAndPolicyReviewStatus' => '',
    'creativeAndLandingPageReviewStatus' => '',
    'exchangeReviewStatuses' => [
        [
                'exchange' => '',
                'status' => ''
        ]
    ],
    'publisherReviewStatuses' => [
        [
                'publisherName' => '',
                'status' => ''
        ]
    ]
  ],
  'skipOffset' => [
    
  ],
  'skippable' => null,
  'thirdPartyTag' => '',
  'thirdPartyUrls' => [
    [
        'type' => '',
        'url' => ''
    ]
  ],
  'timerEvents' => [
    [
        'name' => '',
        'reportingName' => ''
    ]
  ],
  'trackerUrls' => [
    
  ],
  'transcodes' => [
    [
        'audioBitRateKbps' => '',
        'audioSampleRateHz' => '',
        'bitRateKbps' => '',
        'dimensions' => [
                
        ],
        'fileSizeBytes' => '',
        'frameRate' => '',
        'mimeType' => '',
        'name' => '',
        'transcoded' => null
    ]
  ],
  'universalAdId' => [
    'id' => '',
    'registry' => ''
  ],
  'updateTime' => '',
  'vastTagUrl' => '',
  'vpaid' => null
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalDimensions' => [
    [
        'heightPixels' => 0,
        'widthPixels' => 0
    ]
  ],
  'advertiserId' => '',
  'appendedTag' => '',
  'assets' => [
    [
        'asset' => [
                'content' => '',
                'mediaId' => ''
        ],
        'role' => ''
    ]
  ],
  'cmPlacementId' => '',
  'cmTrackingAd' => [
    'cmAdId' => '',
    'cmCreativeId' => '',
    'cmPlacementId' => ''
  ],
  'companionCreativeIds' => [
    
  ],
  'counterEvents' => [
    [
        'name' => '',
        'reportingName' => ''
    ]
  ],
  'createTime' => '',
  'creativeAttributes' => [
    
  ],
  'creativeId' => '',
  'creativeType' => '',
  'dimensions' => [
    
  ],
  'displayName' => '',
  'dynamic' => null,
  'entityStatus' => '',
  'exitEvents' => [
    [
        'name' => '',
        'reportingName' => '',
        'type' => '',
        'url' => ''
    ]
  ],
  'expandOnHover' => null,
  'expandingDirection' => '',
  'hostingSource' => '',
  'html5Video' => null,
  'iasCampaignMonitoring' => null,
  'integrationCode' => '',
  'jsTrackerUrl' => '',
  'lineItemIds' => [
    
  ],
  'mediaDuration' => '',
  'mp3Audio' => null,
  'name' => '',
  'notes' => '',
  'obaIcon' => [
    'clickTrackingUrl' => '',
    'dimensions' => [
        
    ],
    'landingPageUrl' => '',
    'position' => '',
    'program' => '',
    'resourceMimeType' => '',
    'resourceUrl' => '',
    'viewTrackingUrl' => ''
  ],
  'oggAudio' => null,
  'progressOffset' => [
    'percentage' => '',
    'seconds' => ''
  ],
  'requireHtml5' => null,
  'requireMraid' => null,
  'requirePingForAttribution' => null,
  'reviewStatus' => [
    'approvalStatus' => '',
    'contentAndPolicyReviewStatus' => '',
    'creativeAndLandingPageReviewStatus' => '',
    'exchangeReviewStatuses' => [
        [
                'exchange' => '',
                'status' => ''
        ]
    ],
    'publisherReviewStatuses' => [
        [
                'publisherName' => '',
                'status' => ''
        ]
    ]
  ],
  'skipOffset' => [
    
  ],
  'skippable' => null,
  'thirdPartyTag' => '',
  'thirdPartyUrls' => [
    [
        'type' => '',
        'url' => ''
    ]
  ],
  'timerEvents' => [
    [
        'name' => '',
        'reportingName' => ''
    ]
  ],
  'trackerUrls' => [
    
  ],
  'transcodes' => [
    [
        'audioBitRateKbps' => '',
        'audioSampleRateHz' => '',
        'bitRateKbps' => '',
        'dimensions' => [
                
        ],
        'fileSizeBytes' => '',
        'frameRate' => '',
        'mimeType' => '',
        'name' => '',
        'transcoded' => null
    ]
  ],
  'universalAdId' => [
    'id' => '',
    'registry' => ''
  ],
  'updateTime' => '',
  'vastTagUrl' => '',
  'vpaid' => null
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/creatives');
$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}}/v2/advertisers/:advertiserId/creatives' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/creatives' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}'
import http.client

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

payload = "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}"

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

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/creatives", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives"

payload = {
    "additionalDimensions": [
        {
            "heightPixels": 0,
            "widthPixels": 0
        }
    ],
    "advertiserId": "",
    "appendedTag": "",
    "assets": [
        {
            "asset": {
                "content": "",
                "mediaId": ""
            },
            "role": ""
        }
    ],
    "cmPlacementId": "",
    "cmTrackingAd": {
        "cmAdId": "",
        "cmCreativeId": "",
        "cmPlacementId": ""
    },
    "companionCreativeIds": [],
    "counterEvents": [
        {
            "name": "",
            "reportingName": ""
        }
    ],
    "createTime": "",
    "creativeAttributes": [],
    "creativeId": "",
    "creativeType": "",
    "dimensions": {},
    "displayName": "",
    "dynamic": False,
    "entityStatus": "",
    "exitEvents": [
        {
            "name": "",
            "reportingName": "",
            "type": "",
            "url": ""
        }
    ],
    "expandOnHover": False,
    "expandingDirection": "",
    "hostingSource": "",
    "html5Video": False,
    "iasCampaignMonitoring": False,
    "integrationCode": "",
    "jsTrackerUrl": "",
    "lineItemIds": [],
    "mediaDuration": "",
    "mp3Audio": False,
    "name": "",
    "notes": "",
    "obaIcon": {
        "clickTrackingUrl": "",
        "dimensions": {},
        "landingPageUrl": "",
        "position": "",
        "program": "",
        "resourceMimeType": "",
        "resourceUrl": "",
        "viewTrackingUrl": ""
    },
    "oggAudio": False,
    "progressOffset": {
        "percentage": "",
        "seconds": ""
    },
    "requireHtml5": False,
    "requireMraid": False,
    "requirePingForAttribution": False,
    "reviewStatus": {
        "approvalStatus": "",
        "contentAndPolicyReviewStatus": "",
        "creativeAndLandingPageReviewStatus": "",
        "exchangeReviewStatuses": [
            {
                "exchange": "",
                "status": ""
            }
        ],
        "publisherReviewStatuses": [
            {
                "publisherName": "",
                "status": ""
            }
        ]
    },
    "skipOffset": {},
    "skippable": False,
    "thirdPartyTag": "",
    "thirdPartyUrls": [
        {
            "type": "",
            "url": ""
        }
    ],
    "timerEvents": [
        {
            "name": "",
            "reportingName": ""
        }
    ],
    "trackerUrls": [],
    "transcodes": [
        {
            "audioBitRateKbps": "",
            "audioSampleRateHz": "",
            "bitRateKbps": "",
            "dimensions": {},
            "fileSizeBytes": "",
            "frameRate": "",
            "mimeType": "",
            "name": "",
            "transcoded": False
        }
    ],
    "universalAdId": {
        "id": "",
        "registry": ""
    },
    "updateTime": "",
    "vastTagUrl": "",
    "vpaid": False
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/creatives"

payload <- "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\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}}/v2/advertisers/:advertiserId/creatives")

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  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\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/v2/advertisers/:advertiserId/creatives') do |req|
  req.body = "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives";

    let payload = json!({
        "additionalDimensions": (
            json!({
                "heightPixels": 0,
                "widthPixels": 0
            })
        ),
        "advertiserId": "",
        "appendedTag": "",
        "assets": (
            json!({
                "asset": json!({
                    "content": "",
                    "mediaId": ""
                }),
                "role": ""
            })
        ),
        "cmPlacementId": "",
        "cmTrackingAd": json!({
            "cmAdId": "",
            "cmCreativeId": "",
            "cmPlacementId": ""
        }),
        "companionCreativeIds": (),
        "counterEvents": (
            json!({
                "name": "",
                "reportingName": ""
            })
        ),
        "createTime": "",
        "creativeAttributes": (),
        "creativeId": "",
        "creativeType": "",
        "dimensions": json!({}),
        "displayName": "",
        "dynamic": false,
        "entityStatus": "",
        "exitEvents": (
            json!({
                "name": "",
                "reportingName": "",
                "type": "",
                "url": ""
            })
        ),
        "expandOnHover": false,
        "expandingDirection": "",
        "hostingSource": "",
        "html5Video": false,
        "iasCampaignMonitoring": false,
        "integrationCode": "",
        "jsTrackerUrl": "",
        "lineItemIds": (),
        "mediaDuration": "",
        "mp3Audio": false,
        "name": "",
        "notes": "",
        "obaIcon": json!({
            "clickTrackingUrl": "",
            "dimensions": json!({}),
            "landingPageUrl": "",
            "position": "",
            "program": "",
            "resourceMimeType": "",
            "resourceUrl": "",
            "viewTrackingUrl": ""
        }),
        "oggAudio": false,
        "progressOffset": json!({
            "percentage": "",
            "seconds": ""
        }),
        "requireHtml5": false,
        "requireMraid": false,
        "requirePingForAttribution": false,
        "reviewStatus": json!({
            "approvalStatus": "",
            "contentAndPolicyReviewStatus": "",
            "creativeAndLandingPageReviewStatus": "",
            "exchangeReviewStatuses": (
                json!({
                    "exchange": "",
                    "status": ""
                })
            ),
            "publisherReviewStatuses": (
                json!({
                    "publisherName": "",
                    "status": ""
                })
            )
        }),
        "skipOffset": json!({}),
        "skippable": false,
        "thirdPartyTag": "",
        "thirdPartyUrls": (
            json!({
                "type": "",
                "url": ""
            })
        ),
        "timerEvents": (
            json!({
                "name": "",
                "reportingName": ""
            })
        ),
        "trackerUrls": (),
        "transcodes": (
            json!({
                "audioBitRateKbps": "",
                "audioSampleRateHz": "",
                "bitRateKbps": "",
                "dimensions": json!({}),
                "fileSizeBytes": "",
                "frameRate": "",
                "mimeType": "",
                "name": "",
                "transcoded": false
            })
        ),
        "universalAdId": json!({
            "id": "",
            "registry": ""
        }),
        "updateTime": "",
        "vastTagUrl": "",
        "vpaid": false
    });

    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}}/v2/advertisers/:advertiserId/creatives \
  --header 'content-type: application/json' \
  --data '{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}'
echo '{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/creatives \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalDimensions": [\n    {\n      "heightPixels": 0,\n      "widthPixels": 0\n    }\n  ],\n  "advertiserId": "",\n  "appendedTag": "",\n  "assets": [\n    {\n      "asset": {\n        "content": "",\n        "mediaId": ""\n      },\n      "role": ""\n    }\n  ],\n  "cmPlacementId": "",\n  "cmTrackingAd": {\n    "cmAdId": "",\n    "cmCreativeId": "",\n    "cmPlacementId": ""\n  },\n  "companionCreativeIds": [],\n  "counterEvents": [\n    {\n      "name": "",\n      "reportingName": ""\n    }\n  ],\n  "createTime": "",\n  "creativeAttributes": [],\n  "creativeId": "",\n  "creativeType": "",\n  "dimensions": {},\n  "displayName": "",\n  "dynamic": false,\n  "entityStatus": "",\n  "exitEvents": [\n    {\n      "name": "",\n      "reportingName": "",\n      "type": "",\n      "url": ""\n    }\n  ],\n  "expandOnHover": false,\n  "expandingDirection": "",\n  "hostingSource": "",\n  "html5Video": false,\n  "iasCampaignMonitoring": false,\n  "integrationCode": "",\n  "jsTrackerUrl": "",\n  "lineItemIds": [],\n  "mediaDuration": "",\n  "mp3Audio": false,\n  "name": "",\n  "notes": "",\n  "obaIcon": {\n    "clickTrackingUrl": "",\n    "dimensions": {},\n    "landingPageUrl": "",\n    "position": "",\n    "program": "",\n    "resourceMimeType": "",\n    "resourceUrl": "",\n    "viewTrackingUrl": ""\n  },\n  "oggAudio": false,\n  "progressOffset": {\n    "percentage": "",\n    "seconds": ""\n  },\n  "requireHtml5": false,\n  "requireMraid": false,\n  "requirePingForAttribution": false,\n  "reviewStatus": {\n    "approvalStatus": "",\n    "contentAndPolicyReviewStatus": "",\n    "creativeAndLandingPageReviewStatus": "",\n    "exchangeReviewStatuses": [\n      {\n        "exchange": "",\n        "status": ""\n      }\n    ],\n    "publisherReviewStatuses": [\n      {\n        "publisherName": "",\n        "status": ""\n      }\n    ]\n  },\n  "skipOffset": {},\n  "skippable": false,\n  "thirdPartyTag": "",\n  "thirdPartyUrls": [\n    {\n      "type": "",\n      "url": ""\n    }\n  ],\n  "timerEvents": [\n    {\n      "name": "",\n      "reportingName": ""\n    }\n  ],\n  "trackerUrls": [],\n  "transcodes": [\n    {\n      "audioBitRateKbps": "",\n      "audioSampleRateHz": "",\n      "bitRateKbps": "",\n      "dimensions": {},\n      "fileSizeBytes": "",\n      "frameRate": "",\n      "mimeType": "",\n      "name": "",\n      "transcoded": false\n    }\n  ],\n  "universalAdId": {\n    "id": "",\n    "registry": ""\n  },\n  "updateTime": "",\n  "vastTagUrl": "",\n  "vpaid": false\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/creatives
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalDimensions": [
    [
      "heightPixels": 0,
      "widthPixels": 0
    ]
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    [
      "asset": [
        "content": "",
        "mediaId": ""
      ],
      "role": ""
    ]
  ],
  "cmPlacementId": "",
  "cmTrackingAd": [
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  ],
  "companionCreativeIds": [],
  "counterEvents": [
    [
      "name": "",
      "reportingName": ""
    ]
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": [],
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    [
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    ]
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": [
    "clickTrackingUrl": "",
    "dimensions": [],
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  ],
  "oggAudio": false,
  "progressOffset": [
    "percentage": "",
    "seconds": ""
  ],
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": [
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      [
        "exchange": "",
        "status": ""
      ]
    ],
    "publisherReviewStatuses": [
      [
        "publisherName": "",
        "status": ""
      ]
    ]
  ],
  "skipOffset": [],
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    [
      "type": "",
      "url": ""
    ]
  ],
  "timerEvents": [
    [
      "name": "",
      "reportingName": ""
    ]
  ],
  "trackerUrls": [],
  "transcodes": [
    [
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": [],
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    ]
  ],
  "universalAdId": [
    "id": "",
    "registry": ""
  ],
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/creatives")! 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()
DELETE displayvideo.advertisers.creatives.delete
{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId
QUERY PARAMS

advertiserId
creativeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId");

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

(client/delete "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"

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}}/v2/advertisers/:advertiserId/creatives/:creativeId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"

	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/v2/advertisers/:advertiserId/creatives/:creativeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"))
    .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}}/v2/advertisers/:advertiserId/creatives/:creativeId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")
  .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}}/v2/advertisers/:advertiserId/creatives/:creativeId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId';
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}}/v2/advertisers/:advertiserId/creatives/:creativeId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/creatives/:creativeId',
  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}}/v2/advertisers/:advertiserId/creatives/:creativeId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId');

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}}/v2/advertisers/:advertiserId/creatives/:creativeId'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId';
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}}/v2/advertisers/:advertiserId/creatives/:creativeId"]
                                                       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}}/v2/advertisers/:advertiserId/creatives/:creativeId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId",
  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}}/v2/advertisers/:advertiserId/creatives/:creativeId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/v2/advertisers/:advertiserId/creatives/:creativeId")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")

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/v2/advertisers/:advertiserId/creatives/:creativeId') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId";

    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}}/v2/advertisers/:advertiserId/creatives/:creativeId
http DELETE {{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")! 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 displayvideo.advertisers.creatives.get
{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId
QUERY PARAMS

advertiserId
creativeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"

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}}/v2/advertisers/:advertiserId/creatives/:creativeId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"

	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/v2/advertisers/:advertiserId/creatives/:creativeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"))
    .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}}/v2/advertisers/:advertiserId/creatives/:creativeId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")
  .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}}/v2/advertisers/:advertiserId/creatives/:creativeId');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId';
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}}/v2/advertisers/:advertiserId/creatives/:creativeId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/creatives/:creativeId',
  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}}/v2/advertisers/:advertiserId/creatives/:creativeId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId');

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}}/v2/advertisers/:advertiserId/creatives/:creativeId'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId';
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}}/v2/advertisers/:advertiserId/creatives/:creativeId"]
                                                       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}}/v2/advertisers/:advertiserId/creatives/:creativeId" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/creatives/:creativeId")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")

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/v2/advertisers/:advertiserId/creatives/:creativeId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId";

    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}}/v2/advertisers/:advertiserId/creatives/:creativeId
http GET {{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")! 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 displayvideo.advertisers.creatives.list
{{baseUrl}}/v2/advertisers/:advertiserId/creatives
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/creatives");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/creatives")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives"

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}}/v2/advertisers/:advertiserId/creatives"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/creatives");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/creatives"

	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/v2/advertisers/:advertiserId/creatives HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/creatives"))
    .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}}/v2/advertisers/:advertiserId/creatives")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/creatives")
  .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}}/v2/advertisers/:advertiserId/creatives');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/creatives'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/creatives';
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}}/v2/advertisers/:advertiserId/creatives',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/creatives")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/creatives',
  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}}/v2/advertisers/:advertiserId/creatives'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/creatives');

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}}/v2/advertisers/:advertiserId/creatives'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/creatives';
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}}/v2/advertisers/:advertiserId/creatives"]
                                                       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}}/v2/advertisers/:advertiserId/creatives" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/creatives');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/creatives")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/creatives"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/creatives")

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/v2/advertisers/:advertiserId/creatives') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives";

    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}}/v2/advertisers/:advertiserId/creatives
http GET {{baseUrl}}/v2/advertisers/:advertiserId/creatives
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/creatives
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/creatives")! 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 displayvideo.advertisers.creatives.patch
{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId
QUERY PARAMS

advertiserId
creativeId
BODY json

{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId");

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  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}");

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

(client/patch "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId" {:content-type :json
                                                                                                :form-params {:additionalDimensions [{:heightPixels 0
                                                                                                                                      :widthPixels 0}]
                                                                                                              :advertiserId ""
                                                                                                              :appendedTag ""
                                                                                                              :assets [{:asset {:content ""
                                                                                                                                :mediaId ""}
                                                                                                                        :role ""}]
                                                                                                              :cmPlacementId ""
                                                                                                              :cmTrackingAd {:cmAdId ""
                                                                                                                             :cmCreativeId ""
                                                                                                                             :cmPlacementId ""}
                                                                                                              :companionCreativeIds []
                                                                                                              :counterEvents [{:name ""
                                                                                                                               :reportingName ""}]
                                                                                                              :createTime ""
                                                                                                              :creativeAttributes []
                                                                                                              :creativeId ""
                                                                                                              :creativeType ""
                                                                                                              :dimensions {}
                                                                                                              :displayName ""
                                                                                                              :dynamic false
                                                                                                              :entityStatus ""
                                                                                                              :exitEvents [{:name ""
                                                                                                                            :reportingName ""
                                                                                                                            :type ""
                                                                                                                            :url ""}]
                                                                                                              :expandOnHover false
                                                                                                              :expandingDirection ""
                                                                                                              :hostingSource ""
                                                                                                              :html5Video false
                                                                                                              :iasCampaignMonitoring false
                                                                                                              :integrationCode ""
                                                                                                              :jsTrackerUrl ""
                                                                                                              :lineItemIds []
                                                                                                              :mediaDuration ""
                                                                                                              :mp3Audio false
                                                                                                              :name ""
                                                                                                              :notes ""
                                                                                                              :obaIcon {:clickTrackingUrl ""
                                                                                                                        :dimensions {}
                                                                                                                        :landingPageUrl ""
                                                                                                                        :position ""
                                                                                                                        :program ""
                                                                                                                        :resourceMimeType ""
                                                                                                                        :resourceUrl ""
                                                                                                                        :viewTrackingUrl ""}
                                                                                                              :oggAudio false
                                                                                                              :progressOffset {:percentage ""
                                                                                                                               :seconds ""}
                                                                                                              :requireHtml5 false
                                                                                                              :requireMraid false
                                                                                                              :requirePingForAttribution false
                                                                                                              :reviewStatus {:approvalStatus ""
                                                                                                                             :contentAndPolicyReviewStatus ""
                                                                                                                             :creativeAndLandingPageReviewStatus ""
                                                                                                                             :exchangeReviewStatuses [{:exchange ""
                                                                                                                                                       :status ""}]
                                                                                                                             :publisherReviewStatuses [{:publisherName ""
                                                                                                                                                        :status ""}]}
                                                                                                              :skipOffset {}
                                                                                                              :skippable false
                                                                                                              :thirdPartyTag ""
                                                                                                              :thirdPartyUrls [{:type ""
                                                                                                                                :url ""}]
                                                                                                              :timerEvents [{:name ""
                                                                                                                             :reportingName ""}]
                                                                                                              :trackerUrls []
                                                                                                              :transcodes [{:audioBitRateKbps ""
                                                                                                                            :audioSampleRateHz ""
                                                                                                                            :bitRateKbps ""
                                                                                                                            :dimensions {}
                                                                                                                            :fileSizeBytes ""
                                                                                                                            :frameRate ""
                                                                                                                            :mimeType ""
                                                                                                                            :name ""
                                                                                                                            :transcoded false}]
                                                                                                              :universalAdId {:id ""
                                                                                                                              :registry ""}
                                                                                                              :updateTime ""
                                                                                                              :vastTagUrl ""
                                                                                                              :vpaid false}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\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}}/v2/advertisers/:advertiserId/creatives/:creativeId"),
    Content = new StringContent("{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\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}}/v2/advertisers/:advertiserId/creatives/:creativeId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"

	payload := strings.NewReader("{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\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/v2/advertisers/:advertiserId/creatives/:creativeId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2392

{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\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  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")
  .header("content-type", "application/json")
  .body("{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}")
  .asString();
const data = JSON.stringify({
  additionalDimensions: [
    {
      heightPixels: 0,
      widthPixels: 0
    }
  ],
  advertiserId: '',
  appendedTag: '',
  assets: [
    {
      asset: {
        content: '',
        mediaId: ''
      },
      role: ''
    }
  ],
  cmPlacementId: '',
  cmTrackingAd: {
    cmAdId: '',
    cmCreativeId: '',
    cmPlacementId: ''
  },
  companionCreativeIds: [],
  counterEvents: [
    {
      name: '',
      reportingName: ''
    }
  ],
  createTime: '',
  creativeAttributes: [],
  creativeId: '',
  creativeType: '',
  dimensions: {},
  displayName: '',
  dynamic: false,
  entityStatus: '',
  exitEvents: [
    {
      name: '',
      reportingName: '',
      type: '',
      url: ''
    }
  ],
  expandOnHover: false,
  expandingDirection: '',
  hostingSource: '',
  html5Video: false,
  iasCampaignMonitoring: false,
  integrationCode: '',
  jsTrackerUrl: '',
  lineItemIds: [],
  mediaDuration: '',
  mp3Audio: false,
  name: '',
  notes: '',
  obaIcon: {
    clickTrackingUrl: '',
    dimensions: {},
    landingPageUrl: '',
    position: '',
    program: '',
    resourceMimeType: '',
    resourceUrl: '',
    viewTrackingUrl: ''
  },
  oggAudio: false,
  progressOffset: {
    percentage: '',
    seconds: ''
  },
  requireHtml5: false,
  requireMraid: false,
  requirePingForAttribution: false,
  reviewStatus: {
    approvalStatus: '',
    contentAndPolicyReviewStatus: '',
    creativeAndLandingPageReviewStatus: '',
    exchangeReviewStatuses: [
      {
        exchange: '',
        status: ''
      }
    ],
    publisherReviewStatuses: [
      {
        publisherName: '',
        status: ''
      }
    ]
  },
  skipOffset: {},
  skippable: false,
  thirdPartyTag: '',
  thirdPartyUrls: [
    {
      type: '',
      url: ''
    }
  ],
  timerEvents: [
    {
      name: '',
      reportingName: ''
    }
  ],
  trackerUrls: [],
  transcodes: [
    {
      audioBitRateKbps: '',
      audioSampleRateHz: '',
      bitRateKbps: '',
      dimensions: {},
      fileSizeBytes: '',
      frameRate: '',
      mimeType: '',
      name: '',
      transcoded: false
    }
  ],
  universalAdId: {
    id: '',
    registry: ''
  },
  updateTime: '',
  vastTagUrl: '',
  vpaid: false
});

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

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

xhr.open('PATCH', '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId',
  headers: {'content-type': 'application/json'},
  data: {
    additionalDimensions: [{heightPixels: 0, widthPixels: 0}],
    advertiserId: '',
    appendedTag: '',
    assets: [{asset: {content: '', mediaId: ''}, role: ''}],
    cmPlacementId: '',
    cmTrackingAd: {cmAdId: '', cmCreativeId: '', cmPlacementId: ''},
    companionCreativeIds: [],
    counterEvents: [{name: '', reportingName: ''}],
    createTime: '',
    creativeAttributes: [],
    creativeId: '',
    creativeType: '',
    dimensions: {},
    displayName: '',
    dynamic: false,
    entityStatus: '',
    exitEvents: [{name: '', reportingName: '', type: '', url: ''}],
    expandOnHover: false,
    expandingDirection: '',
    hostingSource: '',
    html5Video: false,
    iasCampaignMonitoring: false,
    integrationCode: '',
    jsTrackerUrl: '',
    lineItemIds: [],
    mediaDuration: '',
    mp3Audio: false,
    name: '',
    notes: '',
    obaIcon: {
      clickTrackingUrl: '',
      dimensions: {},
      landingPageUrl: '',
      position: '',
      program: '',
      resourceMimeType: '',
      resourceUrl: '',
      viewTrackingUrl: ''
    },
    oggAudio: false,
    progressOffset: {percentage: '', seconds: ''},
    requireHtml5: false,
    requireMraid: false,
    requirePingForAttribution: false,
    reviewStatus: {
      approvalStatus: '',
      contentAndPolicyReviewStatus: '',
      creativeAndLandingPageReviewStatus: '',
      exchangeReviewStatuses: [{exchange: '', status: ''}],
      publisherReviewStatuses: [{publisherName: '', status: ''}]
    },
    skipOffset: {},
    skippable: false,
    thirdPartyTag: '',
    thirdPartyUrls: [{type: '', url: ''}],
    timerEvents: [{name: '', reportingName: ''}],
    trackerUrls: [],
    transcodes: [
      {
        audioBitRateKbps: '',
        audioSampleRateHz: '',
        bitRateKbps: '',
        dimensions: {},
        fileSizeBytes: '',
        frameRate: '',
        mimeType: '',
        name: '',
        transcoded: false
      }
    ],
    universalAdId: {id: '', registry: ''},
    updateTime: '',
    vastTagUrl: '',
    vpaid: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"additionalDimensions":[{"heightPixels":0,"widthPixels":0}],"advertiserId":"","appendedTag":"","assets":[{"asset":{"content":"","mediaId":""},"role":""}],"cmPlacementId":"","cmTrackingAd":{"cmAdId":"","cmCreativeId":"","cmPlacementId":""},"companionCreativeIds":[],"counterEvents":[{"name":"","reportingName":""}],"createTime":"","creativeAttributes":[],"creativeId":"","creativeType":"","dimensions":{},"displayName":"","dynamic":false,"entityStatus":"","exitEvents":[{"name":"","reportingName":"","type":"","url":""}],"expandOnHover":false,"expandingDirection":"","hostingSource":"","html5Video":false,"iasCampaignMonitoring":false,"integrationCode":"","jsTrackerUrl":"","lineItemIds":[],"mediaDuration":"","mp3Audio":false,"name":"","notes":"","obaIcon":{"clickTrackingUrl":"","dimensions":{},"landingPageUrl":"","position":"","program":"","resourceMimeType":"","resourceUrl":"","viewTrackingUrl":""},"oggAudio":false,"progressOffset":{"percentage":"","seconds":""},"requireHtml5":false,"requireMraid":false,"requirePingForAttribution":false,"reviewStatus":{"approvalStatus":"","contentAndPolicyReviewStatus":"","creativeAndLandingPageReviewStatus":"","exchangeReviewStatuses":[{"exchange":"","status":""}],"publisherReviewStatuses":[{"publisherName":"","status":""}]},"skipOffset":{},"skippable":false,"thirdPartyTag":"","thirdPartyUrls":[{"type":"","url":""}],"timerEvents":[{"name":"","reportingName":""}],"trackerUrls":[],"transcodes":[{"audioBitRateKbps":"","audioSampleRateHz":"","bitRateKbps":"","dimensions":{},"fileSizeBytes":"","frameRate":"","mimeType":"","name":"","transcoded":false}],"universalAdId":{"id":"","registry":""},"updateTime":"","vastTagUrl":"","vpaid":false}'
};

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}}/v2/advertisers/:advertiserId/creatives/:creativeId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "additionalDimensions": [\n    {\n      "heightPixels": 0,\n      "widthPixels": 0\n    }\n  ],\n  "advertiserId": "",\n  "appendedTag": "",\n  "assets": [\n    {\n      "asset": {\n        "content": "",\n        "mediaId": ""\n      },\n      "role": ""\n    }\n  ],\n  "cmPlacementId": "",\n  "cmTrackingAd": {\n    "cmAdId": "",\n    "cmCreativeId": "",\n    "cmPlacementId": ""\n  },\n  "companionCreativeIds": [],\n  "counterEvents": [\n    {\n      "name": "",\n      "reportingName": ""\n    }\n  ],\n  "createTime": "",\n  "creativeAttributes": [],\n  "creativeId": "",\n  "creativeType": "",\n  "dimensions": {},\n  "displayName": "",\n  "dynamic": false,\n  "entityStatus": "",\n  "exitEvents": [\n    {\n      "name": "",\n      "reportingName": "",\n      "type": "",\n      "url": ""\n    }\n  ],\n  "expandOnHover": false,\n  "expandingDirection": "",\n  "hostingSource": "",\n  "html5Video": false,\n  "iasCampaignMonitoring": false,\n  "integrationCode": "",\n  "jsTrackerUrl": "",\n  "lineItemIds": [],\n  "mediaDuration": "",\n  "mp3Audio": false,\n  "name": "",\n  "notes": "",\n  "obaIcon": {\n    "clickTrackingUrl": "",\n    "dimensions": {},\n    "landingPageUrl": "",\n    "position": "",\n    "program": "",\n    "resourceMimeType": "",\n    "resourceUrl": "",\n    "viewTrackingUrl": ""\n  },\n  "oggAudio": false,\n  "progressOffset": {\n    "percentage": "",\n    "seconds": ""\n  },\n  "requireHtml5": false,\n  "requireMraid": false,\n  "requirePingForAttribution": false,\n  "reviewStatus": {\n    "approvalStatus": "",\n    "contentAndPolicyReviewStatus": "",\n    "creativeAndLandingPageReviewStatus": "",\n    "exchangeReviewStatuses": [\n      {\n        "exchange": "",\n        "status": ""\n      }\n    ],\n    "publisherReviewStatuses": [\n      {\n        "publisherName": "",\n        "status": ""\n      }\n    ]\n  },\n  "skipOffset": {},\n  "skippable": false,\n  "thirdPartyTag": "",\n  "thirdPartyUrls": [\n    {\n      "type": "",\n      "url": ""\n    }\n  ],\n  "timerEvents": [\n    {\n      "name": "",\n      "reportingName": ""\n    }\n  ],\n  "trackerUrls": [],\n  "transcodes": [\n    {\n      "audioBitRateKbps": "",\n      "audioSampleRateHz": "",\n      "bitRateKbps": "",\n      "dimensions": {},\n      "fileSizeBytes": "",\n      "frameRate": "",\n      "mimeType": "",\n      "name": "",\n      "transcoded": false\n    }\n  ],\n  "universalAdId": {\n    "id": "",\n    "registry": ""\n  },\n  "updateTime": "",\n  "vastTagUrl": "",\n  "vpaid": false\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")
  .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/v2/advertisers/:advertiserId/creatives/:creativeId',
  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({
  additionalDimensions: [{heightPixels: 0, widthPixels: 0}],
  advertiserId: '',
  appendedTag: '',
  assets: [{asset: {content: '', mediaId: ''}, role: ''}],
  cmPlacementId: '',
  cmTrackingAd: {cmAdId: '', cmCreativeId: '', cmPlacementId: ''},
  companionCreativeIds: [],
  counterEvents: [{name: '', reportingName: ''}],
  createTime: '',
  creativeAttributes: [],
  creativeId: '',
  creativeType: '',
  dimensions: {},
  displayName: '',
  dynamic: false,
  entityStatus: '',
  exitEvents: [{name: '', reportingName: '', type: '', url: ''}],
  expandOnHover: false,
  expandingDirection: '',
  hostingSource: '',
  html5Video: false,
  iasCampaignMonitoring: false,
  integrationCode: '',
  jsTrackerUrl: '',
  lineItemIds: [],
  mediaDuration: '',
  mp3Audio: false,
  name: '',
  notes: '',
  obaIcon: {
    clickTrackingUrl: '',
    dimensions: {},
    landingPageUrl: '',
    position: '',
    program: '',
    resourceMimeType: '',
    resourceUrl: '',
    viewTrackingUrl: ''
  },
  oggAudio: false,
  progressOffset: {percentage: '', seconds: ''},
  requireHtml5: false,
  requireMraid: false,
  requirePingForAttribution: false,
  reviewStatus: {
    approvalStatus: '',
    contentAndPolicyReviewStatus: '',
    creativeAndLandingPageReviewStatus: '',
    exchangeReviewStatuses: [{exchange: '', status: ''}],
    publisherReviewStatuses: [{publisherName: '', status: ''}]
  },
  skipOffset: {},
  skippable: false,
  thirdPartyTag: '',
  thirdPartyUrls: [{type: '', url: ''}],
  timerEvents: [{name: '', reportingName: ''}],
  trackerUrls: [],
  transcodes: [
    {
      audioBitRateKbps: '',
      audioSampleRateHz: '',
      bitRateKbps: '',
      dimensions: {},
      fileSizeBytes: '',
      frameRate: '',
      mimeType: '',
      name: '',
      transcoded: false
    }
  ],
  universalAdId: {id: '', registry: ''},
  updateTime: '',
  vastTagUrl: '',
  vpaid: false
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId',
  headers: {'content-type': 'application/json'},
  body: {
    additionalDimensions: [{heightPixels: 0, widthPixels: 0}],
    advertiserId: '',
    appendedTag: '',
    assets: [{asset: {content: '', mediaId: ''}, role: ''}],
    cmPlacementId: '',
    cmTrackingAd: {cmAdId: '', cmCreativeId: '', cmPlacementId: ''},
    companionCreativeIds: [],
    counterEvents: [{name: '', reportingName: ''}],
    createTime: '',
    creativeAttributes: [],
    creativeId: '',
    creativeType: '',
    dimensions: {},
    displayName: '',
    dynamic: false,
    entityStatus: '',
    exitEvents: [{name: '', reportingName: '', type: '', url: ''}],
    expandOnHover: false,
    expandingDirection: '',
    hostingSource: '',
    html5Video: false,
    iasCampaignMonitoring: false,
    integrationCode: '',
    jsTrackerUrl: '',
    lineItemIds: [],
    mediaDuration: '',
    mp3Audio: false,
    name: '',
    notes: '',
    obaIcon: {
      clickTrackingUrl: '',
      dimensions: {},
      landingPageUrl: '',
      position: '',
      program: '',
      resourceMimeType: '',
      resourceUrl: '',
      viewTrackingUrl: ''
    },
    oggAudio: false,
    progressOffset: {percentage: '', seconds: ''},
    requireHtml5: false,
    requireMraid: false,
    requirePingForAttribution: false,
    reviewStatus: {
      approvalStatus: '',
      contentAndPolicyReviewStatus: '',
      creativeAndLandingPageReviewStatus: '',
      exchangeReviewStatuses: [{exchange: '', status: ''}],
      publisherReviewStatuses: [{publisherName: '', status: ''}]
    },
    skipOffset: {},
    skippable: false,
    thirdPartyTag: '',
    thirdPartyUrls: [{type: '', url: ''}],
    timerEvents: [{name: '', reportingName: ''}],
    trackerUrls: [],
    transcodes: [
      {
        audioBitRateKbps: '',
        audioSampleRateHz: '',
        bitRateKbps: '',
        dimensions: {},
        fileSizeBytes: '',
        frameRate: '',
        mimeType: '',
        name: '',
        transcoded: false
      }
    ],
    universalAdId: {id: '', registry: ''},
    updateTime: '',
    vastTagUrl: '',
    vpaid: false
  },
  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}}/v2/advertisers/:advertiserId/creatives/:creativeId');

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

req.type('json');
req.send({
  additionalDimensions: [
    {
      heightPixels: 0,
      widthPixels: 0
    }
  ],
  advertiserId: '',
  appendedTag: '',
  assets: [
    {
      asset: {
        content: '',
        mediaId: ''
      },
      role: ''
    }
  ],
  cmPlacementId: '',
  cmTrackingAd: {
    cmAdId: '',
    cmCreativeId: '',
    cmPlacementId: ''
  },
  companionCreativeIds: [],
  counterEvents: [
    {
      name: '',
      reportingName: ''
    }
  ],
  createTime: '',
  creativeAttributes: [],
  creativeId: '',
  creativeType: '',
  dimensions: {},
  displayName: '',
  dynamic: false,
  entityStatus: '',
  exitEvents: [
    {
      name: '',
      reportingName: '',
      type: '',
      url: ''
    }
  ],
  expandOnHover: false,
  expandingDirection: '',
  hostingSource: '',
  html5Video: false,
  iasCampaignMonitoring: false,
  integrationCode: '',
  jsTrackerUrl: '',
  lineItemIds: [],
  mediaDuration: '',
  mp3Audio: false,
  name: '',
  notes: '',
  obaIcon: {
    clickTrackingUrl: '',
    dimensions: {},
    landingPageUrl: '',
    position: '',
    program: '',
    resourceMimeType: '',
    resourceUrl: '',
    viewTrackingUrl: ''
  },
  oggAudio: false,
  progressOffset: {
    percentage: '',
    seconds: ''
  },
  requireHtml5: false,
  requireMraid: false,
  requirePingForAttribution: false,
  reviewStatus: {
    approvalStatus: '',
    contentAndPolicyReviewStatus: '',
    creativeAndLandingPageReviewStatus: '',
    exchangeReviewStatuses: [
      {
        exchange: '',
        status: ''
      }
    ],
    publisherReviewStatuses: [
      {
        publisherName: '',
        status: ''
      }
    ]
  },
  skipOffset: {},
  skippable: false,
  thirdPartyTag: '',
  thirdPartyUrls: [
    {
      type: '',
      url: ''
    }
  ],
  timerEvents: [
    {
      name: '',
      reportingName: ''
    }
  ],
  trackerUrls: [],
  transcodes: [
    {
      audioBitRateKbps: '',
      audioSampleRateHz: '',
      bitRateKbps: '',
      dimensions: {},
      fileSizeBytes: '',
      frameRate: '',
      mimeType: '',
      name: '',
      transcoded: false
    }
  ],
  universalAdId: {
    id: '',
    registry: ''
  },
  updateTime: '',
  vastTagUrl: '',
  vpaid: false
});

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}}/v2/advertisers/:advertiserId/creatives/:creativeId',
  headers: {'content-type': 'application/json'},
  data: {
    additionalDimensions: [{heightPixels: 0, widthPixels: 0}],
    advertiserId: '',
    appendedTag: '',
    assets: [{asset: {content: '', mediaId: ''}, role: ''}],
    cmPlacementId: '',
    cmTrackingAd: {cmAdId: '', cmCreativeId: '', cmPlacementId: ''},
    companionCreativeIds: [],
    counterEvents: [{name: '', reportingName: ''}],
    createTime: '',
    creativeAttributes: [],
    creativeId: '',
    creativeType: '',
    dimensions: {},
    displayName: '',
    dynamic: false,
    entityStatus: '',
    exitEvents: [{name: '', reportingName: '', type: '', url: ''}],
    expandOnHover: false,
    expandingDirection: '',
    hostingSource: '',
    html5Video: false,
    iasCampaignMonitoring: false,
    integrationCode: '',
    jsTrackerUrl: '',
    lineItemIds: [],
    mediaDuration: '',
    mp3Audio: false,
    name: '',
    notes: '',
    obaIcon: {
      clickTrackingUrl: '',
      dimensions: {},
      landingPageUrl: '',
      position: '',
      program: '',
      resourceMimeType: '',
      resourceUrl: '',
      viewTrackingUrl: ''
    },
    oggAudio: false,
    progressOffset: {percentage: '', seconds: ''},
    requireHtml5: false,
    requireMraid: false,
    requirePingForAttribution: false,
    reviewStatus: {
      approvalStatus: '',
      contentAndPolicyReviewStatus: '',
      creativeAndLandingPageReviewStatus: '',
      exchangeReviewStatuses: [{exchange: '', status: ''}],
      publisherReviewStatuses: [{publisherName: '', status: ''}]
    },
    skipOffset: {},
    skippable: false,
    thirdPartyTag: '',
    thirdPartyUrls: [{type: '', url: ''}],
    timerEvents: [{name: '', reportingName: ''}],
    trackerUrls: [],
    transcodes: [
      {
        audioBitRateKbps: '',
        audioSampleRateHz: '',
        bitRateKbps: '',
        dimensions: {},
        fileSizeBytes: '',
        frameRate: '',
        mimeType: '',
        name: '',
        transcoded: false
      }
    ],
    universalAdId: {id: '', registry: ''},
    updateTime: '',
    vastTagUrl: '',
    vpaid: false
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"additionalDimensions":[{"heightPixels":0,"widthPixels":0}],"advertiserId":"","appendedTag":"","assets":[{"asset":{"content":"","mediaId":""},"role":""}],"cmPlacementId":"","cmTrackingAd":{"cmAdId":"","cmCreativeId":"","cmPlacementId":""},"companionCreativeIds":[],"counterEvents":[{"name":"","reportingName":""}],"createTime":"","creativeAttributes":[],"creativeId":"","creativeType":"","dimensions":{},"displayName":"","dynamic":false,"entityStatus":"","exitEvents":[{"name":"","reportingName":"","type":"","url":""}],"expandOnHover":false,"expandingDirection":"","hostingSource":"","html5Video":false,"iasCampaignMonitoring":false,"integrationCode":"","jsTrackerUrl":"","lineItemIds":[],"mediaDuration":"","mp3Audio":false,"name":"","notes":"","obaIcon":{"clickTrackingUrl":"","dimensions":{},"landingPageUrl":"","position":"","program":"","resourceMimeType":"","resourceUrl":"","viewTrackingUrl":""},"oggAudio":false,"progressOffset":{"percentage":"","seconds":""},"requireHtml5":false,"requireMraid":false,"requirePingForAttribution":false,"reviewStatus":{"approvalStatus":"","contentAndPolicyReviewStatus":"","creativeAndLandingPageReviewStatus":"","exchangeReviewStatuses":[{"exchange":"","status":""}],"publisherReviewStatuses":[{"publisherName":"","status":""}]},"skipOffset":{},"skippable":false,"thirdPartyTag":"","thirdPartyUrls":[{"type":"","url":""}],"timerEvents":[{"name":"","reportingName":""}],"trackerUrls":[],"transcodes":[{"audioBitRateKbps":"","audioSampleRateHz":"","bitRateKbps":"","dimensions":{},"fileSizeBytes":"","frameRate":"","mimeType":"","name":"","transcoded":false}],"universalAdId":{"id":"","registry":""},"updateTime":"","vastTagUrl":"","vpaid":false}'
};

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 = @{ @"additionalDimensions": @[ @{ @"heightPixels": @0, @"widthPixels": @0 } ],
                              @"advertiserId": @"",
                              @"appendedTag": @"",
                              @"assets": @[ @{ @"asset": @{ @"content": @"", @"mediaId": @"" }, @"role": @"" } ],
                              @"cmPlacementId": @"",
                              @"cmTrackingAd": @{ @"cmAdId": @"", @"cmCreativeId": @"", @"cmPlacementId": @"" },
                              @"companionCreativeIds": @[  ],
                              @"counterEvents": @[ @{ @"name": @"", @"reportingName": @"" } ],
                              @"createTime": @"",
                              @"creativeAttributes": @[  ],
                              @"creativeId": @"",
                              @"creativeType": @"",
                              @"dimensions": @{  },
                              @"displayName": @"",
                              @"dynamic": @NO,
                              @"entityStatus": @"",
                              @"exitEvents": @[ @{ @"name": @"", @"reportingName": @"", @"type": @"", @"url": @"" } ],
                              @"expandOnHover": @NO,
                              @"expandingDirection": @"",
                              @"hostingSource": @"",
                              @"html5Video": @NO,
                              @"iasCampaignMonitoring": @NO,
                              @"integrationCode": @"",
                              @"jsTrackerUrl": @"",
                              @"lineItemIds": @[  ],
                              @"mediaDuration": @"",
                              @"mp3Audio": @NO,
                              @"name": @"",
                              @"notes": @"",
                              @"obaIcon": @{ @"clickTrackingUrl": @"", @"dimensions": @{  }, @"landingPageUrl": @"", @"position": @"", @"program": @"", @"resourceMimeType": @"", @"resourceUrl": @"", @"viewTrackingUrl": @"" },
                              @"oggAudio": @NO,
                              @"progressOffset": @{ @"percentage": @"", @"seconds": @"" },
                              @"requireHtml5": @NO,
                              @"requireMraid": @NO,
                              @"requirePingForAttribution": @NO,
                              @"reviewStatus": @{ @"approvalStatus": @"", @"contentAndPolicyReviewStatus": @"", @"creativeAndLandingPageReviewStatus": @"", @"exchangeReviewStatuses": @[ @{ @"exchange": @"", @"status": @"" } ], @"publisherReviewStatuses": @[ @{ @"publisherName": @"", @"status": @"" } ] },
                              @"skipOffset": @{  },
                              @"skippable": @NO,
                              @"thirdPartyTag": @"",
                              @"thirdPartyUrls": @[ @{ @"type": @"", @"url": @"" } ],
                              @"timerEvents": @[ @{ @"name": @"", @"reportingName": @"" } ],
                              @"trackerUrls": @[  ],
                              @"transcodes": @[ @{ @"audioBitRateKbps": @"", @"audioSampleRateHz": @"", @"bitRateKbps": @"", @"dimensions": @{  }, @"fileSizeBytes": @"", @"frameRate": @"", @"mimeType": @"", @"name": @"", @"transcoded": @NO } ],
                              @"universalAdId": @{ @"id": @"", @"registry": @"" },
                              @"updateTime": @"",
                              @"vastTagUrl": @"",
                              @"vpaid": @NO };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"]
                                                       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}}/v2/advertisers/:advertiserId/creatives/:creativeId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId",
  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([
    'additionalDimensions' => [
        [
                'heightPixels' => 0,
                'widthPixels' => 0
        ]
    ],
    'advertiserId' => '',
    'appendedTag' => '',
    'assets' => [
        [
                'asset' => [
                                'content' => '',
                                'mediaId' => ''
                ],
                'role' => ''
        ]
    ],
    'cmPlacementId' => '',
    'cmTrackingAd' => [
        'cmAdId' => '',
        'cmCreativeId' => '',
        'cmPlacementId' => ''
    ],
    'companionCreativeIds' => [
        
    ],
    'counterEvents' => [
        [
                'name' => '',
                'reportingName' => ''
        ]
    ],
    'createTime' => '',
    'creativeAttributes' => [
        
    ],
    'creativeId' => '',
    'creativeType' => '',
    'dimensions' => [
        
    ],
    'displayName' => '',
    'dynamic' => null,
    'entityStatus' => '',
    'exitEvents' => [
        [
                'name' => '',
                'reportingName' => '',
                'type' => '',
                'url' => ''
        ]
    ],
    'expandOnHover' => null,
    'expandingDirection' => '',
    'hostingSource' => '',
    'html5Video' => null,
    'iasCampaignMonitoring' => null,
    'integrationCode' => '',
    'jsTrackerUrl' => '',
    'lineItemIds' => [
        
    ],
    'mediaDuration' => '',
    'mp3Audio' => null,
    'name' => '',
    'notes' => '',
    'obaIcon' => [
        'clickTrackingUrl' => '',
        'dimensions' => [
                
        ],
        'landingPageUrl' => '',
        'position' => '',
        'program' => '',
        'resourceMimeType' => '',
        'resourceUrl' => '',
        'viewTrackingUrl' => ''
    ],
    'oggAudio' => null,
    'progressOffset' => [
        'percentage' => '',
        'seconds' => ''
    ],
    'requireHtml5' => null,
    'requireMraid' => null,
    'requirePingForAttribution' => null,
    'reviewStatus' => [
        'approvalStatus' => '',
        'contentAndPolicyReviewStatus' => '',
        'creativeAndLandingPageReviewStatus' => '',
        'exchangeReviewStatuses' => [
                [
                                'exchange' => '',
                                'status' => ''
                ]
        ],
        'publisherReviewStatuses' => [
                [
                                'publisherName' => '',
                                'status' => ''
                ]
        ]
    ],
    'skipOffset' => [
        
    ],
    'skippable' => null,
    'thirdPartyTag' => '',
    'thirdPartyUrls' => [
        [
                'type' => '',
                'url' => ''
        ]
    ],
    'timerEvents' => [
        [
                'name' => '',
                'reportingName' => ''
        ]
    ],
    'trackerUrls' => [
        
    ],
    'transcodes' => [
        [
                'audioBitRateKbps' => '',
                'audioSampleRateHz' => '',
                'bitRateKbps' => '',
                'dimensions' => [
                                
                ],
                'fileSizeBytes' => '',
                'frameRate' => '',
                'mimeType' => '',
                'name' => '',
                'transcoded' => null
        ]
    ],
    'universalAdId' => [
        'id' => '',
        'registry' => ''
    ],
    'updateTime' => '',
    'vastTagUrl' => '',
    'vpaid' => null
  ]),
  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}}/v2/advertisers/:advertiserId/creatives/:creativeId', [
  'body' => '{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'additionalDimensions' => [
    [
        'heightPixels' => 0,
        'widthPixels' => 0
    ]
  ],
  'advertiserId' => '',
  'appendedTag' => '',
  'assets' => [
    [
        'asset' => [
                'content' => '',
                'mediaId' => ''
        ],
        'role' => ''
    ]
  ],
  'cmPlacementId' => '',
  'cmTrackingAd' => [
    'cmAdId' => '',
    'cmCreativeId' => '',
    'cmPlacementId' => ''
  ],
  'companionCreativeIds' => [
    
  ],
  'counterEvents' => [
    [
        'name' => '',
        'reportingName' => ''
    ]
  ],
  'createTime' => '',
  'creativeAttributes' => [
    
  ],
  'creativeId' => '',
  'creativeType' => '',
  'dimensions' => [
    
  ],
  'displayName' => '',
  'dynamic' => null,
  'entityStatus' => '',
  'exitEvents' => [
    [
        'name' => '',
        'reportingName' => '',
        'type' => '',
        'url' => ''
    ]
  ],
  'expandOnHover' => null,
  'expandingDirection' => '',
  'hostingSource' => '',
  'html5Video' => null,
  'iasCampaignMonitoring' => null,
  'integrationCode' => '',
  'jsTrackerUrl' => '',
  'lineItemIds' => [
    
  ],
  'mediaDuration' => '',
  'mp3Audio' => null,
  'name' => '',
  'notes' => '',
  'obaIcon' => [
    'clickTrackingUrl' => '',
    'dimensions' => [
        
    ],
    'landingPageUrl' => '',
    'position' => '',
    'program' => '',
    'resourceMimeType' => '',
    'resourceUrl' => '',
    'viewTrackingUrl' => ''
  ],
  'oggAudio' => null,
  'progressOffset' => [
    'percentage' => '',
    'seconds' => ''
  ],
  'requireHtml5' => null,
  'requireMraid' => null,
  'requirePingForAttribution' => null,
  'reviewStatus' => [
    'approvalStatus' => '',
    'contentAndPolicyReviewStatus' => '',
    'creativeAndLandingPageReviewStatus' => '',
    'exchangeReviewStatuses' => [
        [
                'exchange' => '',
                'status' => ''
        ]
    ],
    'publisherReviewStatuses' => [
        [
                'publisherName' => '',
                'status' => ''
        ]
    ]
  ],
  'skipOffset' => [
    
  ],
  'skippable' => null,
  'thirdPartyTag' => '',
  'thirdPartyUrls' => [
    [
        'type' => '',
        'url' => ''
    ]
  ],
  'timerEvents' => [
    [
        'name' => '',
        'reportingName' => ''
    ]
  ],
  'trackerUrls' => [
    
  ],
  'transcodes' => [
    [
        'audioBitRateKbps' => '',
        'audioSampleRateHz' => '',
        'bitRateKbps' => '',
        'dimensions' => [
                
        ],
        'fileSizeBytes' => '',
        'frameRate' => '',
        'mimeType' => '',
        'name' => '',
        'transcoded' => null
    ]
  ],
  'universalAdId' => [
    'id' => '',
    'registry' => ''
  ],
  'updateTime' => '',
  'vastTagUrl' => '',
  'vpaid' => null
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'additionalDimensions' => [
    [
        'heightPixels' => 0,
        'widthPixels' => 0
    ]
  ],
  'advertiserId' => '',
  'appendedTag' => '',
  'assets' => [
    [
        'asset' => [
                'content' => '',
                'mediaId' => ''
        ],
        'role' => ''
    ]
  ],
  'cmPlacementId' => '',
  'cmTrackingAd' => [
    'cmAdId' => '',
    'cmCreativeId' => '',
    'cmPlacementId' => ''
  ],
  'companionCreativeIds' => [
    
  ],
  'counterEvents' => [
    [
        'name' => '',
        'reportingName' => ''
    ]
  ],
  'createTime' => '',
  'creativeAttributes' => [
    
  ],
  'creativeId' => '',
  'creativeType' => '',
  'dimensions' => [
    
  ],
  'displayName' => '',
  'dynamic' => null,
  'entityStatus' => '',
  'exitEvents' => [
    [
        'name' => '',
        'reportingName' => '',
        'type' => '',
        'url' => ''
    ]
  ],
  'expandOnHover' => null,
  'expandingDirection' => '',
  'hostingSource' => '',
  'html5Video' => null,
  'iasCampaignMonitoring' => null,
  'integrationCode' => '',
  'jsTrackerUrl' => '',
  'lineItemIds' => [
    
  ],
  'mediaDuration' => '',
  'mp3Audio' => null,
  'name' => '',
  'notes' => '',
  'obaIcon' => [
    'clickTrackingUrl' => '',
    'dimensions' => [
        
    ],
    'landingPageUrl' => '',
    'position' => '',
    'program' => '',
    'resourceMimeType' => '',
    'resourceUrl' => '',
    'viewTrackingUrl' => ''
  ],
  'oggAudio' => null,
  'progressOffset' => [
    'percentage' => '',
    'seconds' => ''
  ],
  'requireHtml5' => null,
  'requireMraid' => null,
  'requirePingForAttribution' => null,
  'reviewStatus' => [
    'approvalStatus' => '',
    'contentAndPolicyReviewStatus' => '',
    'creativeAndLandingPageReviewStatus' => '',
    'exchangeReviewStatuses' => [
        [
                'exchange' => '',
                'status' => ''
        ]
    ],
    'publisherReviewStatuses' => [
        [
                'publisherName' => '',
                'status' => ''
        ]
    ]
  ],
  'skipOffset' => [
    
  ],
  'skippable' => null,
  'thirdPartyTag' => '',
  'thirdPartyUrls' => [
    [
        'type' => '',
        'url' => ''
    ]
  ],
  'timerEvents' => [
    [
        'name' => '',
        'reportingName' => ''
    ]
  ],
  'trackerUrls' => [
    
  ],
  'transcodes' => [
    [
        'audioBitRateKbps' => '',
        'audioSampleRateHz' => '',
        'bitRateKbps' => '',
        'dimensions' => [
                
        ],
        'fileSizeBytes' => '',
        'frameRate' => '',
        'mimeType' => '',
        'name' => '',
        'transcoded' => null
    ]
  ],
  'universalAdId' => [
    'id' => '',
    'registry' => ''
  ],
  'updateTime' => '',
  'vastTagUrl' => '',
  'vpaid' => null
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId');
$request->setRequestMethod('PATCH');
$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}}/v2/advertisers/:advertiserId/creatives/:creativeId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}'
import http.client

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

payload = "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}"

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

conn.request("PATCH", "/baseUrl/v2/advertisers/:advertiserId/creatives/:creativeId", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"

payload = {
    "additionalDimensions": [
        {
            "heightPixels": 0,
            "widthPixels": 0
        }
    ],
    "advertiserId": "",
    "appendedTag": "",
    "assets": [
        {
            "asset": {
                "content": "",
                "mediaId": ""
            },
            "role": ""
        }
    ],
    "cmPlacementId": "",
    "cmTrackingAd": {
        "cmAdId": "",
        "cmCreativeId": "",
        "cmPlacementId": ""
    },
    "companionCreativeIds": [],
    "counterEvents": [
        {
            "name": "",
            "reportingName": ""
        }
    ],
    "createTime": "",
    "creativeAttributes": [],
    "creativeId": "",
    "creativeType": "",
    "dimensions": {},
    "displayName": "",
    "dynamic": False,
    "entityStatus": "",
    "exitEvents": [
        {
            "name": "",
            "reportingName": "",
            "type": "",
            "url": ""
        }
    ],
    "expandOnHover": False,
    "expandingDirection": "",
    "hostingSource": "",
    "html5Video": False,
    "iasCampaignMonitoring": False,
    "integrationCode": "",
    "jsTrackerUrl": "",
    "lineItemIds": [],
    "mediaDuration": "",
    "mp3Audio": False,
    "name": "",
    "notes": "",
    "obaIcon": {
        "clickTrackingUrl": "",
        "dimensions": {},
        "landingPageUrl": "",
        "position": "",
        "program": "",
        "resourceMimeType": "",
        "resourceUrl": "",
        "viewTrackingUrl": ""
    },
    "oggAudio": False,
    "progressOffset": {
        "percentage": "",
        "seconds": ""
    },
    "requireHtml5": False,
    "requireMraid": False,
    "requirePingForAttribution": False,
    "reviewStatus": {
        "approvalStatus": "",
        "contentAndPolicyReviewStatus": "",
        "creativeAndLandingPageReviewStatus": "",
        "exchangeReviewStatuses": [
            {
                "exchange": "",
                "status": ""
            }
        ],
        "publisherReviewStatuses": [
            {
                "publisherName": "",
                "status": ""
            }
        ]
    },
    "skipOffset": {},
    "skippable": False,
    "thirdPartyTag": "",
    "thirdPartyUrls": [
        {
            "type": "",
            "url": ""
        }
    ],
    "timerEvents": [
        {
            "name": "",
            "reportingName": ""
        }
    ],
    "trackerUrls": [],
    "transcodes": [
        {
            "audioBitRateKbps": "",
            "audioSampleRateHz": "",
            "bitRateKbps": "",
            "dimensions": {},
            "fileSizeBytes": "",
            "frameRate": "",
            "mimeType": "",
            "name": "",
            "transcoded": False
        }
    ],
    "universalAdId": {
        "id": "",
        "registry": ""
    },
    "updateTime": "",
    "vastTagUrl": "",
    "vpaid": False
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId"

payload <- "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")

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  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\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/v2/advertisers/:advertiserId/creatives/:creativeId') do |req|
  req.body = "{\n  \"additionalDimensions\": [\n    {\n      \"heightPixels\": 0,\n      \"widthPixels\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"appendedTag\": \"\",\n  \"assets\": [\n    {\n      \"asset\": {\n        \"content\": \"\",\n        \"mediaId\": \"\"\n      },\n      \"role\": \"\"\n    }\n  ],\n  \"cmPlacementId\": \"\",\n  \"cmTrackingAd\": {\n    \"cmAdId\": \"\",\n    \"cmCreativeId\": \"\",\n    \"cmPlacementId\": \"\"\n  },\n  \"companionCreativeIds\": [],\n  \"counterEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"createTime\": \"\",\n  \"creativeAttributes\": [],\n  \"creativeId\": \"\",\n  \"creativeType\": \"\",\n  \"dimensions\": {},\n  \"displayName\": \"\",\n  \"dynamic\": false,\n  \"entityStatus\": \"\",\n  \"exitEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\",\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"expandOnHover\": false,\n  \"expandingDirection\": \"\",\n  \"hostingSource\": \"\",\n  \"html5Video\": false,\n  \"iasCampaignMonitoring\": false,\n  \"integrationCode\": \"\",\n  \"jsTrackerUrl\": \"\",\n  \"lineItemIds\": [],\n  \"mediaDuration\": \"\",\n  \"mp3Audio\": false,\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"obaIcon\": {\n    \"clickTrackingUrl\": \"\",\n    \"dimensions\": {},\n    \"landingPageUrl\": \"\",\n    \"position\": \"\",\n    \"program\": \"\",\n    \"resourceMimeType\": \"\",\n    \"resourceUrl\": \"\",\n    \"viewTrackingUrl\": \"\"\n  },\n  \"oggAudio\": false,\n  \"progressOffset\": {\n    \"percentage\": \"\",\n    \"seconds\": \"\"\n  },\n  \"requireHtml5\": false,\n  \"requireMraid\": false,\n  \"requirePingForAttribution\": false,\n  \"reviewStatus\": {\n    \"approvalStatus\": \"\",\n    \"contentAndPolicyReviewStatus\": \"\",\n    \"creativeAndLandingPageReviewStatus\": \"\",\n    \"exchangeReviewStatuses\": [\n      {\n        \"exchange\": \"\",\n        \"status\": \"\"\n      }\n    ],\n    \"publisherReviewStatuses\": [\n      {\n        \"publisherName\": \"\",\n        \"status\": \"\"\n      }\n    ]\n  },\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"thirdPartyTag\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"type\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerEvents\": [\n    {\n      \"name\": \"\",\n      \"reportingName\": \"\"\n    }\n  ],\n  \"trackerUrls\": [],\n  \"transcodes\": [\n    {\n      \"audioBitRateKbps\": \"\",\n      \"audioSampleRateHz\": \"\",\n      \"bitRateKbps\": \"\",\n      \"dimensions\": {},\n      \"fileSizeBytes\": \"\",\n      \"frameRate\": \"\",\n      \"mimeType\": \"\",\n      \"name\": \"\",\n      \"transcoded\": false\n    }\n  ],\n  \"universalAdId\": {\n    \"id\": \"\",\n    \"registry\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"vastTagUrl\": \"\",\n  \"vpaid\": false\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}}/v2/advertisers/:advertiserId/creatives/:creativeId";

    let payload = json!({
        "additionalDimensions": (
            json!({
                "heightPixels": 0,
                "widthPixels": 0
            })
        ),
        "advertiserId": "",
        "appendedTag": "",
        "assets": (
            json!({
                "asset": json!({
                    "content": "",
                    "mediaId": ""
                }),
                "role": ""
            })
        ),
        "cmPlacementId": "",
        "cmTrackingAd": json!({
            "cmAdId": "",
            "cmCreativeId": "",
            "cmPlacementId": ""
        }),
        "companionCreativeIds": (),
        "counterEvents": (
            json!({
                "name": "",
                "reportingName": ""
            })
        ),
        "createTime": "",
        "creativeAttributes": (),
        "creativeId": "",
        "creativeType": "",
        "dimensions": json!({}),
        "displayName": "",
        "dynamic": false,
        "entityStatus": "",
        "exitEvents": (
            json!({
                "name": "",
                "reportingName": "",
                "type": "",
                "url": ""
            })
        ),
        "expandOnHover": false,
        "expandingDirection": "",
        "hostingSource": "",
        "html5Video": false,
        "iasCampaignMonitoring": false,
        "integrationCode": "",
        "jsTrackerUrl": "",
        "lineItemIds": (),
        "mediaDuration": "",
        "mp3Audio": false,
        "name": "",
        "notes": "",
        "obaIcon": json!({
            "clickTrackingUrl": "",
            "dimensions": json!({}),
            "landingPageUrl": "",
            "position": "",
            "program": "",
            "resourceMimeType": "",
            "resourceUrl": "",
            "viewTrackingUrl": ""
        }),
        "oggAudio": false,
        "progressOffset": json!({
            "percentage": "",
            "seconds": ""
        }),
        "requireHtml5": false,
        "requireMraid": false,
        "requirePingForAttribution": false,
        "reviewStatus": json!({
            "approvalStatus": "",
            "contentAndPolicyReviewStatus": "",
            "creativeAndLandingPageReviewStatus": "",
            "exchangeReviewStatuses": (
                json!({
                    "exchange": "",
                    "status": ""
                })
            ),
            "publisherReviewStatuses": (
                json!({
                    "publisherName": "",
                    "status": ""
                })
            )
        }),
        "skipOffset": json!({}),
        "skippable": false,
        "thirdPartyTag": "",
        "thirdPartyUrls": (
            json!({
                "type": "",
                "url": ""
            })
        ),
        "timerEvents": (
            json!({
                "name": "",
                "reportingName": ""
            })
        ),
        "trackerUrls": (),
        "transcodes": (
            json!({
                "audioBitRateKbps": "",
                "audioSampleRateHz": "",
                "bitRateKbps": "",
                "dimensions": json!({}),
                "fileSizeBytes": "",
                "frameRate": "",
                "mimeType": "",
                "name": "",
                "transcoded": false
            })
        ),
        "universalAdId": json!({
            "id": "",
            "registry": ""
        }),
        "updateTime": "",
        "vastTagUrl": "",
        "vpaid": false
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId \
  --header 'content-type: application/json' \
  --data '{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}'
echo '{
  "additionalDimensions": [
    {
      "heightPixels": 0,
      "widthPixels": 0
    }
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    {
      "asset": {
        "content": "",
        "mediaId": ""
      },
      "role": ""
    }
  ],
  "cmPlacementId": "",
  "cmTrackingAd": {
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  },
  "companionCreativeIds": [],
  "counterEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": {},
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    {
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    }
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": {
    "clickTrackingUrl": "",
    "dimensions": {},
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  },
  "oggAudio": false,
  "progressOffset": {
    "percentage": "",
    "seconds": ""
  },
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": {
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      {
        "exchange": "",
        "status": ""
      }
    ],
    "publisherReviewStatuses": [
      {
        "publisherName": "",
        "status": ""
      }
    ]
  },
  "skipOffset": {},
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    {
      "type": "",
      "url": ""
    }
  ],
  "timerEvents": [
    {
      "name": "",
      "reportingName": ""
    }
  ],
  "trackerUrls": [],
  "transcodes": [
    {
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": {},
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    }
  ],
  "universalAdId": {
    "id": "",
    "registry": ""
  },
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
}' |  \
  http PATCH {{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "additionalDimensions": [\n    {\n      "heightPixels": 0,\n      "widthPixels": 0\n    }\n  ],\n  "advertiserId": "",\n  "appendedTag": "",\n  "assets": [\n    {\n      "asset": {\n        "content": "",\n        "mediaId": ""\n      },\n      "role": ""\n    }\n  ],\n  "cmPlacementId": "",\n  "cmTrackingAd": {\n    "cmAdId": "",\n    "cmCreativeId": "",\n    "cmPlacementId": ""\n  },\n  "companionCreativeIds": [],\n  "counterEvents": [\n    {\n      "name": "",\n      "reportingName": ""\n    }\n  ],\n  "createTime": "",\n  "creativeAttributes": [],\n  "creativeId": "",\n  "creativeType": "",\n  "dimensions": {},\n  "displayName": "",\n  "dynamic": false,\n  "entityStatus": "",\n  "exitEvents": [\n    {\n      "name": "",\n      "reportingName": "",\n      "type": "",\n      "url": ""\n    }\n  ],\n  "expandOnHover": false,\n  "expandingDirection": "",\n  "hostingSource": "",\n  "html5Video": false,\n  "iasCampaignMonitoring": false,\n  "integrationCode": "",\n  "jsTrackerUrl": "",\n  "lineItemIds": [],\n  "mediaDuration": "",\n  "mp3Audio": false,\n  "name": "",\n  "notes": "",\n  "obaIcon": {\n    "clickTrackingUrl": "",\n    "dimensions": {},\n    "landingPageUrl": "",\n    "position": "",\n    "program": "",\n    "resourceMimeType": "",\n    "resourceUrl": "",\n    "viewTrackingUrl": ""\n  },\n  "oggAudio": false,\n  "progressOffset": {\n    "percentage": "",\n    "seconds": ""\n  },\n  "requireHtml5": false,\n  "requireMraid": false,\n  "requirePingForAttribution": false,\n  "reviewStatus": {\n    "approvalStatus": "",\n    "contentAndPolicyReviewStatus": "",\n    "creativeAndLandingPageReviewStatus": "",\n    "exchangeReviewStatuses": [\n      {\n        "exchange": "",\n        "status": ""\n      }\n    ],\n    "publisherReviewStatuses": [\n      {\n        "publisherName": "",\n        "status": ""\n      }\n    ]\n  },\n  "skipOffset": {},\n  "skippable": false,\n  "thirdPartyTag": "",\n  "thirdPartyUrls": [\n    {\n      "type": "",\n      "url": ""\n    }\n  ],\n  "timerEvents": [\n    {\n      "name": "",\n      "reportingName": ""\n    }\n  ],\n  "trackerUrls": [],\n  "transcodes": [\n    {\n      "audioBitRateKbps": "",\n      "audioSampleRateHz": "",\n      "bitRateKbps": "",\n      "dimensions": {},\n      "fileSizeBytes": "",\n      "frameRate": "",\n      "mimeType": "",\n      "name": "",\n      "transcoded": false\n    }\n  ],\n  "universalAdId": {\n    "id": "",\n    "registry": ""\n  },\n  "updateTime": "",\n  "vastTagUrl": "",\n  "vpaid": false\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "additionalDimensions": [
    [
      "heightPixels": 0,
      "widthPixels": 0
    ]
  ],
  "advertiserId": "",
  "appendedTag": "",
  "assets": [
    [
      "asset": [
        "content": "",
        "mediaId": ""
      ],
      "role": ""
    ]
  ],
  "cmPlacementId": "",
  "cmTrackingAd": [
    "cmAdId": "",
    "cmCreativeId": "",
    "cmPlacementId": ""
  ],
  "companionCreativeIds": [],
  "counterEvents": [
    [
      "name": "",
      "reportingName": ""
    ]
  ],
  "createTime": "",
  "creativeAttributes": [],
  "creativeId": "",
  "creativeType": "",
  "dimensions": [],
  "displayName": "",
  "dynamic": false,
  "entityStatus": "",
  "exitEvents": [
    [
      "name": "",
      "reportingName": "",
      "type": "",
      "url": ""
    ]
  ],
  "expandOnHover": false,
  "expandingDirection": "",
  "hostingSource": "",
  "html5Video": false,
  "iasCampaignMonitoring": false,
  "integrationCode": "",
  "jsTrackerUrl": "",
  "lineItemIds": [],
  "mediaDuration": "",
  "mp3Audio": false,
  "name": "",
  "notes": "",
  "obaIcon": [
    "clickTrackingUrl": "",
    "dimensions": [],
    "landingPageUrl": "",
    "position": "",
    "program": "",
    "resourceMimeType": "",
    "resourceUrl": "",
    "viewTrackingUrl": ""
  ],
  "oggAudio": false,
  "progressOffset": [
    "percentage": "",
    "seconds": ""
  ],
  "requireHtml5": false,
  "requireMraid": false,
  "requirePingForAttribution": false,
  "reviewStatus": [
    "approvalStatus": "",
    "contentAndPolicyReviewStatus": "",
    "creativeAndLandingPageReviewStatus": "",
    "exchangeReviewStatuses": [
      [
        "exchange": "",
        "status": ""
      ]
    ],
    "publisherReviewStatuses": [
      [
        "publisherName": "",
        "status": ""
      ]
    ]
  ],
  "skipOffset": [],
  "skippable": false,
  "thirdPartyTag": "",
  "thirdPartyUrls": [
    [
      "type": "",
      "url": ""
    ]
  ],
  "timerEvents": [
    [
      "name": "",
      "reportingName": ""
    ]
  ],
  "trackerUrls": [],
  "transcodes": [
    [
      "audioBitRateKbps": "",
      "audioSampleRateHz": "",
      "bitRateKbps": "",
      "dimensions": [],
      "fileSizeBytes": "",
      "frameRate": "",
      "mimeType": "",
      "name": "",
      "transcoded": false
    ]
  ],
  "universalAdId": [
    "id": "",
    "registry": ""
  ],
  "updateTime": "",
  "vastTagUrl": "",
  "vpaid": false
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/creatives/:creativeId")! 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()
DELETE displayvideo.advertisers.delete
{{baseUrl}}/v2/advertisers/:advertiserId
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId");

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

(client/delete "{{baseUrl}}/v2/advertisers/:advertiserId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId"

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}}/v2/advertisers/:advertiserId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId"

	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/v2/advertisers/:advertiserId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/advertisers/:advertiserId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId"))
    .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}}/v2/advertisers/:advertiserId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/advertisers/:advertiserId")
  .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}}/v2/advertisers/:advertiserId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId';
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}}/v2/advertisers/:advertiserId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId',
  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}}/v2/advertisers/:advertiserId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/v2/advertisers/:advertiserId');

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}}/v2/advertisers/:advertiserId'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId';
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}}/v2/advertisers/:advertiserId"]
                                                       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}}/v2/advertisers/:advertiserId" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/v2/advertisers/:advertiserId")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId")

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/v2/advertisers/:advertiserId') do |req|
end

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

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

    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}}/v2/advertisers/:advertiserId
http DELETE {{baseUrl}}/v2/advertisers/:advertiserId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId")! 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 displayvideo.advertisers.editAssignedTargetingOptions
{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions
QUERY PARAMS

advertiserId
BODY json

{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions");

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  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions" {:content-type :json
                                                                                                      :form-params {:createRequests [{:assignedTargetingOptions [{:ageRangeDetails {:ageRange ""}
                                                                                                                                                                  :appCategoryDetails {:displayName ""
                                                                                                                                                                                       :negative false
                                                                                                                                                                                       :targetingOptionId ""}
                                                                                                                                                                  :appDetails {:appId ""
                                                                                                                                                                               :appPlatform ""
                                                                                                                                                                               :displayName ""
                                                                                                                                                                               :negative false}
                                                                                                                                                                  :assignedTargetingOptionId ""
                                                                                                                                                                  :assignedTargetingOptionIdAlias ""
                                                                                                                                                                  :audienceGroupDetails {:excludedFirstAndThirdPartyAudienceGroup {:settings [{:firstAndThirdPartyAudienceId ""
                                                                                                                                                                                                                                               :recency ""}]}
                                                                                                                                                                                         :excludedGoogleAudienceGroup {:settings [{:googleAudienceId ""}]}
                                                                                                                                                                                         :includedCombinedAudienceGroup {:settings [{:combinedAudienceId ""}]}
                                                                                                                                                                                         :includedCustomListGroup {:settings [{:customListId ""}]}
                                                                                                                                                                                         :includedFirstAndThirdPartyAudienceGroups [{}]
                                                                                                                                                                                         :includedGoogleAudienceGroup {}}
                                                                                                                                                                  :audioContentTypeDetails {:audioContentType ""}
                                                                                                                                                                  :authorizedSellerStatusDetails {:authorizedSellerStatus ""
                                                                                                                                                                                                  :targetingOptionId ""}
                                                                                                                                                                  :browserDetails {:displayName ""
                                                                                                                                                                                   :negative false
                                                                                                                                                                                   :targetingOptionId ""}
                                                                                                                                                                  :businessChainDetails {:displayName ""
                                                                                                                                                                                         :proximityRadiusAmount ""
                                                                                                                                                                                         :proximityRadiusUnit ""
                                                                                                                                                                                         :targetingOptionId ""}
                                                                                                                                                                  :carrierAndIspDetails {:displayName ""
                                                                                                                                                                                         :negative false
                                                                                                                                                                                         :targetingOptionId ""}
                                                                                                                                                                  :categoryDetails {:displayName ""
                                                                                                                                                                                    :negative false
                                                                                                                                                                                    :targetingOptionId ""}
                                                                                                                                                                  :channelDetails {:channelId ""
                                                                                                                                                                                   :negative false}
                                                                                                                                                                  :contentDurationDetails {:contentDuration ""
                                                                                                                                                                                           :targetingOptionId ""}
                                                                                                                                                                  :contentGenreDetails {:displayName ""
                                                                                                                                                                                        :negative false
                                                                                                                                                                                        :targetingOptionId ""}
                                                                                                                                                                  :contentInstreamPositionDetails {:adType ""
                                                                                                                                                                                                   :contentInstreamPosition ""}
                                                                                                                                                                  :contentOutstreamPositionDetails {:adType ""
                                                                                                                                                                                                    :contentOutstreamPosition ""}
                                                                                                                                                                  :contentStreamTypeDetails {:contentStreamType ""
                                                                                                                                                                                             :targetingOptionId ""}
                                                                                                                                                                  :dayAndTimeDetails {:dayOfWeek ""
                                                                                                                                                                                      :endHour 0
                                                                                                                                                                                      :startHour 0
                                                                                                                                                                                      :timeZoneResolution ""}
                                                                                                                                                                  :deviceMakeModelDetails {:displayName ""
                                                                                                                                                                                           :negative false
                                                                                                                                                                                           :targetingOptionId ""}
                                                                                                                                                                  :deviceTypeDetails {:deviceType ""
                                                                                                                                                                                      :youtubeAndPartnersBidMultiplier ""}
                                                                                                                                                                  :digitalContentLabelExclusionDetails {:excludedContentRatingTier ""}
                                                                                                                                                                  :environmentDetails {:environment ""}
                                                                                                                                                                  :exchangeDetails {:exchange ""}
                                                                                                                                                                  :genderDetails {:gender ""}
                                                                                                                                                                  :geoRegionDetails {:displayName ""
                                                                                                                                                                                     :geoRegionType ""
                                                                                                                                                                                     :negative false
                                                                                                                                                                                     :targetingOptionId ""}
                                                                                                                                                                  :householdIncomeDetails {:householdIncome ""}
                                                                                                                                                                  :inheritance ""
                                                                                                                                                                  :inventorySourceDetails {:inventorySourceId ""}
                                                                                                                                                                  :inventorySourceGroupDetails {:inventorySourceGroupId ""}
                                                                                                                                                                  :keywordDetails {:keyword ""
                                                                                                                                                                                   :negative false}
                                                                                                                                                                  :languageDetails {:displayName ""
                                                                                                                                                                                    :negative false
                                                                                                                                                                                    :targetingOptionId ""}
                                                                                                                                                                  :name ""
                                                                                                                                                                  :nativeContentPositionDetails {:contentPosition ""}
                                                                                                                                                                  :negativeKeywordListDetails {:negativeKeywordListId ""}
                                                                                                                                                                  :omidDetails {:omid ""}
                                                                                                                                                                  :onScreenPositionDetails {:adType ""
                                                                                                                                                                                            :onScreenPosition ""
                                                                                                                                                                                            :targetingOptionId ""}
                                                                                                                                                                  :operatingSystemDetails {:displayName ""
                                                                                                                                                                                           :negative false
                                                                                                                                                                                           :targetingOptionId ""}
                                                                                                                                                                  :parentalStatusDetails {:parentalStatus ""}
                                                                                                                                                                  :poiDetails {:displayName ""
                                                                                                                                                                               :latitude ""
                                                                                                                                                                               :longitude ""
                                                                                                                                                                               :proximityRadiusAmount ""
                                                                                                                                                                               :proximityRadiusUnit ""
                                                                                                                                                                               :targetingOptionId ""}
                                                                                                                                                                  :proximityLocationListDetails {:proximityLocationListId ""
                                                                                                                                                                                                 :proximityRadius ""
                                                                                                                                                                                                 :proximityRadiusUnit ""}
                                                                                                                                                                  :regionalLocationListDetails {:negative false
                                                                                                                                                                                                :regionalLocationListId ""}
                                                                                                                                                                  :sensitiveCategoryExclusionDetails {:excludedSensitiveCategory ""}
                                                                                                                                                                  :sessionPositionDetails {:sessionPosition ""}
                                                                                                                                                                  :subExchangeDetails {:targetingOptionId ""}
                                                                                                                                                                  :targetingType ""
                                                                                                                                                                  :thirdPartyVerifierDetails {:adloox {:excludedAdlooxCategories []}
                                                                                                                                                                                              :doubleVerify {:appStarRating {:avoidInsufficientStarRating false
                                                                                                                                                                                                                             :avoidedStarRating ""}
                                                                                                                                                                                                             :avoidedAgeRatings []
                                                                                                                                                                                                             :brandSafetyCategories {:avoidUnknownBrandSafetyCategory false
                                                                                                                                                                                                                                     :avoidedHighSeverityCategories []
                                                                                                                                                                                                                                     :avoidedMediumSeverityCategories []}
                                                                                                                                                                                                             :customSegmentId ""
                                                                                                                                                                                                             :displayViewability {:iab ""
                                                                                                                                                                                                                                  :viewableDuring ""}
                                                                                                                                                                                                             :fraudInvalidTraffic {:avoidInsufficientOption false
                                                                                                                                                                                                                                   :avoidedFraudOption ""}
                                                                                                                                                                                                             :videoViewability {:playerImpressionRate ""
                                                                                                                                                                                                                                :videoIab ""
                                                                                                                                                                                                                                :videoViewableRate ""}}
                                                                                                                                                                                              :integralAdScience {:customSegmentId []
                                                                                                                                                                                                                  :displayViewability ""
                                                                                                                                                                                                                  :excludeUnrateable false
                                                                                                                                                                                                                  :excludedAdFraudRisk ""
                                                                                                                                                                                                                  :excludedAdultRisk ""
                                                                                                                                                                                                                  :excludedAlcoholRisk ""
                                                                                                                                                                                                                  :excludedDrugsRisk ""
                                                                                                                                                                                                                  :excludedGamblingRisk ""
                                                                                                                                                                                                                  :excludedHateSpeechRisk ""
                                                                                                                                                                                                                  :excludedIllegalDownloadsRisk ""
                                                                                                                                                                                                                  :excludedOffensiveLanguageRisk ""
                                                                                                                                                                                                                  :excludedViolenceRisk ""
                                                                                                                                                                                                                  :traqScoreOption ""
                                                                                                                                                                                                                  :videoViewability ""}}
                                                                                                                                                                  :urlDetails {:negative false
                                                                                                                                                                               :url ""}
                                                                                                                                                                  :userRewardedContentDetails {:targetingOptionId ""
                                                                                                                                                                                               :userRewardedContent ""}
                                                                                                                                                                  :videoPlayerSizeDetails {:videoPlayerSize ""}
                                                                                                                                                                  :viewabilityDetails {:viewability ""}
                                                                                                                                                                  :youtubeChannelDetails {:channelId ""
                                                                                                                                                                                          :negative false}
                                                                                                                                                                  :youtubeVideoDetails {:negative false
                                                                                                                                                                                        :videoId ""}}]
                                                                                                                                      :targetingType ""}]
                                                                                                                    :deleteRequests [{:assignedTargetingOptionIds []
                                                                                                                                      :targetingType ""}]}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\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}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions"),
    Content = new StringContent("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\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}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions"

	payload := strings.NewReader("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\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/v2/advertisers/:advertiserId:editAssignedTargetingOptions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 8533

{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\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  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions")
  .header("content-type", "application/json")
  .body("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  createRequests: [
    {
      assignedTargetingOptions: [
        {
          ageRangeDetails: {
            ageRange: ''
          },
          appCategoryDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          appDetails: {
            appId: '',
            appPlatform: '',
            displayName: '',
            negative: false
          },
          assignedTargetingOptionId: '',
          assignedTargetingOptionIdAlias: '',
          audienceGroupDetails: {
            excludedFirstAndThirdPartyAudienceGroup: {
              settings: [
                {
                  firstAndThirdPartyAudienceId: '',
                  recency: ''
                }
              ]
            },
            excludedGoogleAudienceGroup: {
              settings: [
                {
                  googleAudienceId: ''
                }
              ]
            },
            includedCombinedAudienceGroup: {
              settings: [
                {
                  combinedAudienceId: ''
                }
              ]
            },
            includedCustomListGroup: {
              settings: [
                {
                  customListId: ''
                }
              ]
            },
            includedFirstAndThirdPartyAudienceGroups: [
              {}
            ],
            includedGoogleAudienceGroup: {}
          },
          audioContentTypeDetails: {
            audioContentType: ''
          },
          authorizedSellerStatusDetails: {
            authorizedSellerStatus: '',
            targetingOptionId: ''
          },
          browserDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          businessChainDetails: {
            displayName: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          carrierAndIspDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          categoryDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          channelDetails: {
            channelId: '',
            negative: false
          },
          contentDurationDetails: {
            contentDuration: '',
            targetingOptionId: ''
          },
          contentGenreDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          contentInstreamPositionDetails: {
            adType: '',
            contentInstreamPosition: ''
          },
          contentOutstreamPositionDetails: {
            adType: '',
            contentOutstreamPosition: ''
          },
          contentStreamTypeDetails: {
            contentStreamType: '',
            targetingOptionId: ''
          },
          dayAndTimeDetails: {
            dayOfWeek: '',
            endHour: 0,
            startHour: 0,
            timeZoneResolution: ''
          },
          deviceMakeModelDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          deviceTypeDetails: {
            deviceType: '',
            youtubeAndPartnersBidMultiplier: ''
          },
          digitalContentLabelExclusionDetails: {
            excludedContentRatingTier: ''
          },
          environmentDetails: {
            environment: ''
          },
          exchangeDetails: {
            exchange: ''
          },
          genderDetails: {
            gender: ''
          },
          geoRegionDetails: {
            displayName: '',
            geoRegionType: '',
            negative: false,
            targetingOptionId: ''
          },
          householdIncomeDetails: {
            householdIncome: ''
          },
          inheritance: '',
          inventorySourceDetails: {
            inventorySourceId: ''
          },
          inventorySourceGroupDetails: {
            inventorySourceGroupId: ''
          },
          keywordDetails: {
            keyword: '',
            negative: false
          },
          languageDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          name: '',
          nativeContentPositionDetails: {
            contentPosition: ''
          },
          negativeKeywordListDetails: {
            negativeKeywordListId: ''
          },
          omidDetails: {
            omid: ''
          },
          onScreenPositionDetails: {
            adType: '',
            onScreenPosition: '',
            targetingOptionId: ''
          },
          operatingSystemDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          parentalStatusDetails: {
            parentalStatus: ''
          },
          poiDetails: {
            displayName: '',
            latitude: '',
            longitude: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          proximityLocationListDetails: {
            proximityLocationListId: '',
            proximityRadius: '',
            proximityRadiusUnit: ''
          },
          regionalLocationListDetails: {
            negative: false,
            regionalLocationListId: ''
          },
          sensitiveCategoryExclusionDetails: {
            excludedSensitiveCategory: ''
          },
          sessionPositionDetails: {
            sessionPosition: ''
          },
          subExchangeDetails: {
            targetingOptionId: ''
          },
          targetingType: '',
          thirdPartyVerifierDetails: {
            adloox: {
              excludedAdlooxCategories: []
            },
            doubleVerify: {
              appStarRating: {
                avoidInsufficientStarRating: false,
                avoidedStarRating: ''
              },
              avoidedAgeRatings: [],
              brandSafetyCategories: {
                avoidUnknownBrandSafetyCategory: false,
                avoidedHighSeverityCategories: [],
                avoidedMediumSeverityCategories: []
              },
              customSegmentId: '',
              displayViewability: {
                iab: '',
                viewableDuring: ''
              },
              fraudInvalidTraffic: {
                avoidInsufficientOption: false,
                avoidedFraudOption: ''
              },
              videoViewability: {
                playerImpressionRate: '',
                videoIab: '',
                videoViewableRate: ''
              }
            },
            integralAdScience: {
              customSegmentId: [],
              displayViewability: '',
              excludeUnrateable: false,
              excludedAdFraudRisk: '',
              excludedAdultRisk: '',
              excludedAlcoholRisk: '',
              excludedDrugsRisk: '',
              excludedGamblingRisk: '',
              excludedHateSpeechRisk: '',
              excludedIllegalDownloadsRisk: '',
              excludedOffensiveLanguageRisk: '',
              excludedViolenceRisk: '',
              traqScoreOption: '',
              videoViewability: ''
            }
          },
          urlDetails: {
            negative: false,
            url: ''
          },
          userRewardedContentDetails: {
            targetingOptionId: '',
            userRewardedContent: ''
          },
          videoPlayerSizeDetails: {
            videoPlayerSize: ''
          },
          viewabilityDetails: {
            viewability: ''
          },
          youtubeChannelDetails: {
            channelId: '',
            negative: false
          },
          youtubeVideoDetails: {
            negative: false,
            videoId: ''
          }
        }
      ],
      targetingType: ''
    }
  ],
  deleteRequests: [
    {
      assignedTargetingOptionIds: [],
      targetingType: ''
    }
  ]
});

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

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

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    createRequests: [
      {
        assignedTargetingOptions: [
          {
            ageRangeDetails: {ageRange: ''},
            appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
            assignedTargetingOptionId: '',
            assignedTargetingOptionIdAlias: '',
            audienceGroupDetails: {
              excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
              excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
              includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
              includedCustomListGroup: {settings: [{customListId: ''}]},
              includedFirstAndThirdPartyAudienceGroups: [{}],
              includedGoogleAudienceGroup: {}
            },
            audioContentTypeDetails: {audioContentType: ''},
            authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
            browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
            businessChainDetails: {
              displayName: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
            categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            channelDetails: {channelId: '', negative: false},
            contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
            contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
            contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
            contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
            contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
            dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
            deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
            deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
            digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
            environmentDetails: {environment: ''},
            exchangeDetails: {exchange: ''},
            genderDetails: {gender: ''},
            geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
            householdIncomeDetails: {householdIncome: ''},
            inheritance: '',
            inventorySourceDetails: {inventorySourceId: ''},
            inventorySourceGroupDetails: {inventorySourceGroupId: ''},
            keywordDetails: {keyword: '', negative: false},
            languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
            name: '',
            nativeContentPositionDetails: {contentPosition: ''},
            negativeKeywordListDetails: {negativeKeywordListId: ''},
            omidDetails: {omid: ''},
            onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
            operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
            parentalStatusDetails: {parentalStatus: ''},
            poiDetails: {
              displayName: '',
              latitude: '',
              longitude: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
            regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
            sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
            sessionPositionDetails: {sessionPosition: ''},
            subExchangeDetails: {targetingOptionId: ''},
            targetingType: '',
            thirdPartyVerifierDetails: {
              adloox: {excludedAdlooxCategories: []},
              doubleVerify: {
                appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
                avoidedAgeRatings: [],
                brandSafetyCategories: {
                  avoidUnknownBrandSafetyCategory: false,
                  avoidedHighSeverityCategories: [],
                  avoidedMediumSeverityCategories: []
                },
                customSegmentId: '',
                displayViewability: {iab: '', viewableDuring: ''},
                fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
                videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
              },
              integralAdScience: {
                customSegmentId: [],
                displayViewability: '',
                excludeUnrateable: false,
                excludedAdFraudRisk: '',
                excludedAdultRisk: '',
                excludedAlcoholRisk: '',
                excludedDrugsRisk: '',
                excludedGamblingRisk: '',
                excludedHateSpeechRisk: '',
                excludedIllegalDownloadsRisk: '',
                excludedOffensiveLanguageRisk: '',
                excludedViolenceRisk: '',
                traqScoreOption: '',
                videoViewability: ''
              }
            },
            urlDetails: {negative: false, url: ''},
            userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
            videoPlayerSizeDetails: {videoPlayerSize: ''},
            viewabilityDetails: {viewability: ''},
            youtubeChannelDetails: {channelId: '', negative: false},
            youtubeVideoDetails: {negative: false, videoId: ''}
          }
        ],
        targetingType: ''
      }
    ],
    deleteRequests: [{assignedTargetingOptionIds: [], targetingType: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createRequests":[{"assignedTargetingOptions":[{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}],"targetingType":""}],"deleteRequests":[{"assignedTargetingOptionIds":[],"targetingType":""}]}'
};

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}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "createRequests": [\n    {\n      "assignedTargetingOptions": [\n        {\n          "ageRangeDetails": {\n            "ageRange": ""\n          },\n          "appCategoryDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "appDetails": {\n            "appId": "",\n            "appPlatform": "",\n            "displayName": "",\n            "negative": false\n          },\n          "assignedTargetingOptionId": "",\n          "assignedTargetingOptionIdAlias": "",\n          "audienceGroupDetails": {\n            "excludedFirstAndThirdPartyAudienceGroup": {\n              "settings": [\n                {\n                  "firstAndThirdPartyAudienceId": "",\n                  "recency": ""\n                }\n              ]\n            },\n            "excludedGoogleAudienceGroup": {\n              "settings": [\n                {\n                  "googleAudienceId": ""\n                }\n              ]\n            },\n            "includedCombinedAudienceGroup": {\n              "settings": [\n                {\n                  "combinedAudienceId": ""\n                }\n              ]\n            },\n            "includedCustomListGroup": {\n              "settings": [\n                {\n                  "customListId": ""\n                }\n              ]\n            },\n            "includedFirstAndThirdPartyAudienceGroups": [\n              {}\n            ],\n            "includedGoogleAudienceGroup": {}\n          },\n          "audioContentTypeDetails": {\n            "audioContentType": ""\n          },\n          "authorizedSellerStatusDetails": {\n            "authorizedSellerStatus": "",\n            "targetingOptionId": ""\n          },\n          "browserDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "businessChainDetails": {\n            "displayName": "",\n            "proximityRadiusAmount": "",\n            "proximityRadiusUnit": "",\n            "targetingOptionId": ""\n          },\n          "carrierAndIspDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "categoryDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "channelDetails": {\n            "channelId": "",\n            "negative": false\n          },\n          "contentDurationDetails": {\n            "contentDuration": "",\n            "targetingOptionId": ""\n          },\n          "contentGenreDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "contentInstreamPositionDetails": {\n            "adType": "",\n            "contentInstreamPosition": ""\n          },\n          "contentOutstreamPositionDetails": {\n            "adType": "",\n            "contentOutstreamPosition": ""\n          },\n          "contentStreamTypeDetails": {\n            "contentStreamType": "",\n            "targetingOptionId": ""\n          },\n          "dayAndTimeDetails": {\n            "dayOfWeek": "",\n            "endHour": 0,\n            "startHour": 0,\n            "timeZoneResolution": ""\n          },\n          "deviceMakeModelDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "deviceTypeDetails": {\n            "deviceType": "",\n            "youtubeAndPartnersBidMultiplier": ""\n          },\n          "digitalContentLabelExclusionDetails": {\n            "excludedContentRatingTier": ""\n          },\n          "environmentDetails": {\n            "environment": ""\n          },\n          "exchangeDetails": {\n            "exchange": ""\n          },\n          "genderDetails": {\n            "gender": ""\n          },\n          "geoRegionDetails": {\n            "displayName": "",\n            "geoRegionType": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "householdIncomeDetails": {\n            "householdIncome": ""\n          },\n          "inheritance": "",\n          "inventorySourceDetails": {\n            "inventorySourceId": ""\n          },\n          "inventorySourceGroupDetails": {\n            "inventorySourceGroupId": ""\n          },\n          "keywordDetails": {\n            "keyword": "",\n            "negative": false\n          },\n          "languageDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "name": "",\n          "nativeContentPositionDetails": {\n            "contentPosition": ""\n          },\n          "negativeKeywordListDetails": {\n            "negativeKeywordListId": ""\n          },\n          "omidDetails": {\n            "omid": ""\n          },\n          "onScreenPositionDetails": {\n            "adType": "",\n            "onScreenPosition": "",\n            "targetingOptionId": ""\n          },\n          "operatingSystemDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "parentalStatusDetails": {\n            "parentalStatus": ""\n          },\n          "poiDetails": {\n            "displayName": "",\n            "latitude": "",\n            "longitude": "",\n            "proximityRadiusAmount": "",\n            "proximityRadiusUnit": "",\n            "targetingOptionId": ""\n          },\n          "proximityLocationListDetails": {\n            "proximityLocationListId": "",\n            "proximityRadius": "",\n            "proximityRadiusUnit": ""\n          },\n          "regionalLocationListDetails": {\n            "negative": false,\n            "regionalLocationListId": ""\n          },\n          "sensitiveCategoryExclusionDetails": {\n            "excludedSensitiveCategory": ""\n          },\n          "sessionPositionDetails": {\n            "sessionPosition": ""\n          },\n          "subExchangeDetails": {\n            "targetingOptionId": ""\n          },\n          "targetingType": "",\n          "thirdPartyVerifierDetails": {\n            "adloox": {\n              "excludedAdlooxCategories": []\n            },\n            "doubleVerify": {\n              "appStarRating": {\n                "avoidInsufficientStarRating": false,\n                "avoidedStarRating": ""\n              },\n              "avoidedAgeRatings": [],\n              "brandSafetyCategories": {\n                "avoidUnknownBrandSafetyCategory": false,\n                "avoidedHighSeverityCategories": [],\n                "avoidedMediumSeverityCategories": []\n              },\n              "customSegmentId": "",\n              "displayViewability": {\n                "iab": "",\n                "viewableDuring": ""\n              },\n              "fraudInvalidTraffic": {\n                "avoidInsufficientOption": false,\n                "avoidedFraudOption": ""\n              },\n              "videoViewability": {\n                "playerImpressionRate": "",\n                "videoIab": "",\n                "videoViewableRate": ""\n              }\n            },\n            "integralAdScience": {\n              "customSegmentId": [],\n              "displayViewability": "",\n              "excludeUnrateable": false,\n              "excludedAdFraudRisk": "",\n              "excludedAdultRisk": "",\n              "excludedAlcoholRisk": "",\n              "excludedDrugsRisk": "",\n              "excludedGamblingRisk": "",\n              "excludedHateSpeechRisk": "",\n              "excludedIllegalDownloadsRisk": "",\n              "excludedOffensiveLanguageRisk": "",\n              "excludedViolenceRisk": "",\n              "traqScoreOption": "",\n              "videoViewability": ""\n            }\n          },\n          "urlDetails": {\n            "negative": false,\n            "url": ""\n          },\n          "userRewardedContentDetails": {\n            "targetingOptionId": "",\n            "userRewardedContent": ""\n          },\n          "videoPlayerSizeDetails": {\n            "videoPlayerSize": ""\n          },\n          "viewabilityDetails": {\n            "viewability": ""\n          },\n          "youtubeChannelDetails": {\n            "channelId": "",\n            "negative": false\n          },\n          "youtubeVideoDetails": {\n            "negative": false,\n            "videoId": ""\n          }\n        }\n      ],\n      "targetingType": ""\n    }\n  ],\n  "deleteRequests": [\n    {\n      "assignedTargetingOptionIds": [],\n      "targetingType": ""\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions")
  .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/v2/advertisers/:advertiserId:editAssignedTargetingOptions',
  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({
  createRequests: [
    {
      assignedTargetingOptions: [
        {
          ageRangeDetails: {ageRange: ''},
          appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
          appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
          assignedTargetingOptionId: '',
          assignedTargetingOptionIdAlias: '',
          audienceGroupDetails: {
            excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
            excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
            includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
            includedCustomListGroup: {settings: [{customListId: ''}]},
            includedFirstAndThirdPartyAudienceGroups: [{}],
            includedGoogleAudienceGroup: {}
          },
          audioContentTypeDetails: {audioContentType: ''},
          authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
          browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
          businessChainDetails: {
            displayName: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
          categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
          channelDetails: {channelId: '', negative: false},
          contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
          contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
          contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
          contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
          contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
          dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
          deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
          deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
          digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
          environmentDetails: {environment: ''},
          exchangeDetails: {exchange: ''},
          genderDetails: {gender: ''},
          geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
          householdIncomeDetails: {householdIncome: ''},
          inheritance: '',
          inventorySourceDetails: {inventorySourceId: ''},
          inventorySourceGroupDetails: {inventorySourceGroupId: ''},
          keywordDetails: {keyword: '', negative: false},
          languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
          name: '',
          nativeContentPositionDetails: {contentPosition: ''},
          negativeKeywordListDetails: {negativeKeywordListId: ''},
          omidDetails: {omid: ''},
          onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
          operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
          parentalStatusDetails: {parentalStatus: ''},
          poiDetails: {
            displayName: '',
            latitude: '',
            longitude: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
          regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
          sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
          sessionPositionDetails: {sessionPosition: ''},
          subExchangeDetails: {targetingOptionId: ''},
          targetingType: '',
          thirdPartyVerifierDetails: {
            adloox: {excludedAdlooxCategories: []},
            doubleVerify: {
              appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
              avoidedAgeRatings: [],
              brandSafetyCategories: {
                avoidUnknownBrandSafetyCategory: false,
                avoidedHighSeverityCategories: [],
                avoidedMediumSeverityCategories: []
              },
              customSegmentId: '',
              displayViewability: {iab: '', viewableDuring: ''},
              fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
              videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
            },
            integralAdScience: {
              customSegmentId: [],
              displayViewability: '',
              excludeUnrateable: false,
              excludedAdFraudRisk: '',
              excludedAdultRisk: '',
              excludedAlcoholRisk: '',
              excludedDrugsRisk: '',
              excludedGamblingRisk: '',
              excludedHateSpeechRisk: '',
              excludedIllegalDownloadsRisk: '',
              excludedOffensiveLanguageRisk: '',
              excludedViolenceRisk: '',
              traqScoreOption: '',
              videoViewability: ''
            }
          },
          urlDetails: {negative: false, url: ''},
          userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
          videoPlayerSizeDetails: {videoPlayerSize: ''},
          viewabilityDetails: {viewability: ''},
          youtubeChannelDetails: {channelId: '', negative: false},
          youtubeVideoDetails: {negative: false, videoId: ''}
        }
      ],
      targetingType: ''
    }
  ],
  deleteRequests: [{assignedTargetingOptionIds: [], targetingType: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  body: {
    createRequests: [
      {
        assignedTargetingOptions: [
          {
            ageRangeDetails: {ageRange: ''},
            appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
            assignedTargetingOptionId: '',
            assignedTargetingOptionIdAlias: '',
            audienceGroupDetails: {
              excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
              excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
              includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
              includedCustomListGroup: {settings: [{customListId: ''}]},
              includedFirstAndThirdPartyAudienceGroups: [{}],
              includedGoogleAudienceGroup: {}
            },
            audioContentTypeDetails: {audioContentType: ''},
            authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
            browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
            businessChainDetails: {
              displayName: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
            categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            channelDetails: {channelId: '', negative: false},
            contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
            contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
            contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
            contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
            contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
            dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
            deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
            deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
            digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
            environmentDetails: {environment: ''},
            exchangeDetails: {exchange: ''},
            genderDetails: {gender: ''},
            geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
            householdIncomeDetails: {householdIncome: ''},
            inheritance: '',
            inventorySourceDetails: {inventorySourceId: ''},
            inventorySourceGroupDetails: {inventorySourceGroupId: ''},
            keywordDetails: {keyword: '', negative: false},
            languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
            name: '',
            nativeContentPositionDetails: {contentPosition: ''},
            negativeKeywordListDetails: {negativeKeywordListId: ''},
            omidDetails: {omid: ''},
            onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
            operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
            parentalStatusDetails: {parentalStatus: ''},
            poiDetails: {
              displayName: '',
              latitude: '',
              longitude: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
            regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
            sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
            sessionPositionDetails: {sessionPosition: ''},
            subExchangeDetails: {targetingOptionId: ''},
            targetingType: '',
            thirdPartyVerifierDetails: {
              adloox: {excludedAdlooxCategories: []},
              doubleVerify: {
                appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
                avoidedAgeRatings: [],
                brandSafetyCategories: {
                  avoidUnknownBrandSafetyCategory: false,
                  avoidedHighSeverityCategories: [],
                  avoidedMediumSeverityCategories: []
                },
                customSegmentId: '',
                displayViewability: {iab: '', viewableDuring: ''},
                fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
                videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
              },
              integralAdScience: {
                customSegmentId: [],
                displayViewability: '',
                excludeUnrateable: false,
                excludedAdFraudRisk: '',
                excludedAdultRisk: '',
                excludedAlcoholRisk: '',
                excludedDrugsRisk: '',
                excludedGamblingRisk: '',
                excludedHateSpeechRisk: '',
                excludedIllegalDownloadsRisk: '',
                excludedOffensiveLanguageRisk: '',
                excludedViolenceRisk: '',
                traqScoreOption: '',
                videoViewability: ''
              }
            },
            urlDetails: {negative: false, url: ''},
            userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
            videoPlayerSizeDetails: {videoPlayerSize: ''},
            viewabilityDetails: {viewability: ''},
            youtubeChannelDetails: {channelId: '', negative: false},
            youtubeVideoDetails: {negative: false, videoId: ''}
          }
        ],
        targetingType: ''
      }
    ],
    deleteRequests: [{assignedTargetingOptionIds: [], targetingType: ''}]
  },
  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}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions');

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

req.type('json');
req.send({
  createRequests: [
    {
      assignedTargetingOptions: [
        {
          ageRangeDetails: {
            ageRange: ''
          },
          appCategoryDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          appDetails: {
            appId: '',
            appPlatform: '',
            displayName: '',
            negative: false
          },
          assignedTargetingOptionId: '',
          assignedTargetingOptionIdAlias: '',
          audienceGroupDetails: {
            excludedFirstAndThirdPartyAudienceGroup: {
              settings: [
                {
                  firstAndThirdPartyAudienceId: '',
                  recency: ''
                }
              ]
            },
            excludedGoogleAudienceGroup: {
              settings: [
                {
                  googleAudienceId: ''
                }
              ]
            },
            includedCombinedAudienceGroup: {
              settings: [
                {
                  combinedAudienceId: ''
                }
              ]
            },
            includedCustomListGroup: {
              settings: [
                {
                  customListId: ''
                }
              ]
            },
            includedFirstAndThirdPartyAudienceGroups: [
              {}
            ],
            includedGoogleAudienceGroup: {}
          },
          audioContentTypeDetails: {
            audioContentType: ''
          },
          authorizedSellerStatusDetails: {
            authorizedSellerStatus: '',
            targetingOptionId: ''
          },
          browserDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          businessChainDetails: {
            displayName: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          carrierAndIspDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          categoryDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          channelDetails: {
            channelId: '',
            negative: false
          },
          contentDurationDetails: {
            contentDuration: '',
            targetingOptionId: ''
          },
          contentGenreDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          contentInstreamPositionDetails: {
            adType: '',
            contentInstreamPosition: ''
          },
          contentOutstreamPositionDetails: {
            adType: '',
            contentOutstreamPosition: ''
          },
          contentStreamTypeDetails: {
            contentStreamType: '',
            targetingOptionId: ''
          },
          dayAndTimeDetails: {
            dayOfWeek: '',
            endHour: 0,
            startHour: 0,
            timeZoneResolution: ''
          },
          deviceMakeModelDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          deviceTypeDetails: {
            deviceType: '',
            youtubeAndPartnersBidMultiplier: ''
          },
          digitalContentLabelExclusionDetails: {
            excludedContentRatingTier: ''
          },
          environmentDetails: {
            environment: ''
          },
          exchangeDetails: {
            exchange: ''
          },
          genderDetails: {
            gender: ''
          },
          geoRegionDetails: {
            displayName: '',
            geoRegionType: '',
            negative: false,
            targetingOptionId: ''
          },
          householdIncomeDetails: {
            householdIncome: ''
          },
          inheritance: '',
          inventorySourceDetails: {
            inventorySourceId: ''
          },
          inventorySourceGroupDetails: {
            inventorySourceGroupId: ''
          },
          keywordDetails: {
            keyword: '',
            negative: false
          },
          languageDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          name: '',
          nativeContentPositionDetails: {
            contentPosition: ''
          },
          negativeKeywordListDetails: {
            negativeKeywordListId: ''
          },
          omidDetails: {
            omid: ''
          },
          onScreenPositionDetails: {
            adType: '',
            onScreenPosition: '',
            targetingOptionId: ''
          },
          operatingSystemDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          parentalStatusDetails: {
            parentalStatus: ''
          },
          poiDetails: {
            displayName: '',
            latitude: '',
            longitude: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          proximityLocationListDetails: {
            proximityLocationListId: '',
            proximityRadius: '',
            proximityRadiusUnit: ''
          },
          regionalLocationListDetails: {
            negative: false,
            regionalLocationListId: ''
          },
          sensitiveCategoryExclusionDetails: {
            excludedSensitiveCategory: ''
          },
          sessionPositionDetails: {
            sessionPosition: ''
          },
          subExchangeDetails: {
            targetingOptionId: ''
          },
          targetingType: '',
          thirdPartyVerifierDetails: {
            adloox: {
              excludedAdlooxCategories: []
            },
            doubleVerify: {
              appStarRating: {
                avoidInsufficientStarRating: false,
                avoidedStarRating: ''
              },
              avoidedAgeRatings: [],
              brandSafetyCategories: {
                avoidUnknownBrandSafetyCategory: false,
                avoidedHighSeverityCategories: [],
                avoidedMediumSeverityCategories: []
              },
              customSegmentId: '',
              displayViewability: {
                iab: '',
                viewableDuring: ''
              },
              fraudInvalidTraffic: {
                avoidInsufficientOption: false,
                avoidedFraudOption: ''
              },
              videoViewability: {
                playerImpressionRate: '',
                videoIab: '',
                videoViewableRate: ''
              }
            },
            integralAdScience: {
              customSegmentId: [],
              displayViewability: '',
              excludeUnrateable: false,
              excludedAdFraudRisk: '',
              excludedAdultRisk: '',
              excludedAlcoholRisk: '',
              excludedDrugsRisk: '',
              excludedGamblingRisk: '',
              excludedHateSpeechRisk: '',
              excludedIllegalDownloadsRisk: '',
              excludedOffensiveLanguageRisk: '',
              excludedViolenceRisk: '',
              traqScoreOption: '',
              videoViewability: ''
            }
          },
          urlDetails: {
            negative: false,
            url: ''
          },
          userRewardedContentDetails: {
            targetingOptionId: '',
            userRewardedContent: ''
          },
          videoPlayerSizeDetails: {
            videoPlayerSize: ''
          },
          viewabilityDetails: {
            viewability: ''
          },
          youtubeChannelDetails: {
            channelId: '',
            negative: false
          },
          youtubeVideoDetails: {
            negative: false,
            videoId: ''
          }
        }
      ],
      targetingType: ''
    }
  ],
  deleteRequests: [
    {
      assignedTargetingOptionIds: [],
      targetingType: ''
    }
  ]
});

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}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    createRequests: [
      {
        assignedTargetingOptions: [
          {
            ageRangeDetails: {ageRange: ''},
            appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
            assignedTargetingOptionId: '',
            assignedTargetingOptionIdAlias: '',
            audienceGroupDetails: {
              excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
              excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
              includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
              includedCustomListGroup: {settings: [{customListId: ''}]},
              includedFirstAndThirdPartyAudienceGroups: [{}],
              includedGoogleAudienceGroup: {}
            },
            audioContentTypeDetails: {audioContentType: ''},
            authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
            browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
            businessChainDetails: {
              displayName: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
            categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            channelDetails: {channelId: '', negative: false},
            contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
            contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
            contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
            contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
            contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
            dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
            deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
            deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
            digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
            environmentDetails: {environment: ''},
            exchangeDetails: {exchange: ''},
            genderDetails: {gender: ''},
            geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
            householdIncomeDetails: {householdIncome: ''},
            inheritance: '',
            inventorySourceDetails: {inventorySourceId: ''},
            inventorySourceGroupDetails: {inventorySourceGroupId: ''},
            keywordDetails: {keyword: '', negative: false},
            languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
            name: '',
            nativeContentPositionDetails: {contentPosition: ''},
            negativeKeywordListDetails: {negativeKeywordListId: ''},
            omidDetails: {omid: ''},
            onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
            operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
            parentalStatusDetails: {parentalStatus: ''},
            poiDetails: {
              displayName: '',
              latitude: '',
              longitude: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
            regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
            sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
            sessionPositionDetails: {sessionPosition: ''},
            subExchangeDetails: {targetingOptionId: ''},
            targetingType: '',
            thirdPartyVerifierDetails: {
              adloox: {excludedAdlooxCategories: []},
              doubleVerify: {
                appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
                avoidedAgeRatings: [],
                brandSafetyCategories: {
                  avoidUnknownBrandSafetyCategory: false,
                  avoidedHighSeverityCategories: [],
                  avoidedMediumSeverityCategories: []
                },
                customSegmentId: '',
                displayViewability: {iab: '', viewableDuring: ''},
                fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
                videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
              },
              integralAdScience: {
                customSegmentId: [],
                displayViewability: '',
                excludeUnrateable: false,
                excludedAdFraudRisk: '',
                excludedAdultRisk: '',
                excludedAlcoholRisk: '',
                excludedDrugsRisk: '',
                excludedGamblingRisk: '',
                excludedHateSpeechRisk: '',
                excludedIllegalDownloadsRisk: '',
                excludedOffensiveLanguageRisk: '',
                excludedViolenceRisk: '',
                traqScoreOption: '',
                videoViewability: ''
              }
            },
            urlDetails: {negative: false, url: ''},
            userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
            videoPlayerSizeDetails: {videoPlayerSize: ''},
            viewabilityDetails: {viewability: ''},
            youtubeChannelDetails: {channelId: '', negative: false},
            youtubeVideoDetails: {negative: false, videoId: ''}
          }
        ],
        targetingType: ''
      }
    ],
    deleteRequests: [{assignedTargetingOptionIds: [], targetingType: ''}]
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createRequests":[{"assignedTargetingOptions":[{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}],"targetingType":""}],"deleteRequests":[{"assignedTargetingOptionIds":[],"targetingType":""}]}'
};

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 = @{ @"createRequests": @[ @{ @"assignedTargetingOptions": @[ @{ @"ageRangeDetails": @{ @"ageRange": @"" }, @"appCategoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"appDetails": @{ @"appId": @"", @"appPlatform": @"", @"displayName": @"", @"negative": @NO }, @"assignedTargetingOptionId": @"", @"assignedTargetingOptionIdAlias": @"", @"audienceGroupDetails": @{ @"excludedFirstAndThirdPartyAudienceGroup": @{ @"settings": @[ @{ @"firstAndThirdPartyAudienceId": @"", @"recency": @"" } ] }, @"excludedGoogleAudienceGroup": @{ @"settings": @[ @{ @"googleAudienceId": @"" } ] }, @"includedCombinedAudienceGroup": @{ @"settings": @[ @{ @"combinedAudienceId": @"" } ] }, @"includedCustomListGroup": @{ @"settings": @[ @{ @"customListId": @"" } ] }, @"includedFirstAndThirdPartyAudienceGroups": @[ @{  } ], @"includedGoogleAudienceGroup": @{  } }, @"audioContentTypeDetails": @{ @"audioContentType": @"" }, @"authorizedSellerStatusDetails": @{ @"authorizedSellerStatus": @"", @"targetingOptionId": @"" }, @"browserDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"businessChainDetails": @{ @"displayName": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" }, @"carrierAndIspDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"categoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"channelDetails": @{ @"channelId": @"", @"negative": @NO }, @"contentDurationDetails": @{ @"contentDuration": @"", @"targetingOptionId": @"" }, @"contentGenreDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"contentInstreamPositionDetails": @{ @"adType": @"", @"contentInstreamPosition": @"" }, @"contentOutstreamPositionDetails": @{ @"adType": @"", @"contentOutstreamPosition": @"" }, @"contentStreamTypeDetails": @{ @"contentStreamType": @"", @"targetingOptionId": @"" }, @"dayAndTimeDetails": @{ @"dayOfWeek": @"", @"endHour": @0, @"startHour": @0, @"timeZoneResolution": @"" }, @"deviceMakeModelDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"deviceTypeDetails": @{ @"deviceType": @"", @"youtubeAndPartnersBidMultiplier": @"" }, @"digitalContentLabelExclusionDetails": @{ @"excludedContentRatingTier": @"" }, @"environmentDetails": @{ @"environment": @"" }, @"exchangeDetails": @{ @"exchange": @"" }, @"genderDetails": @{ @"gender": @"" }, @"geoRegionDetails": @{ @"displayName": @"", @"geoRegionType": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"householdIncomeDetails": @{ @"householdIncome": @"" }, @"inheritance": @"", @"inventorySourceDetails": @{ @"inventorySourceId": @"" }, @"inventorySourceGroupDetails": @{ @"inventorySourceGroupId": @"" }, @"keywordDetails": @{ @"keyword": @"", @"negative": @NO }, @"languageDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"name": @"", @"nativeContentPositionDetails": @{ @"contentPosition": @"" }, @"negativeKeywordListDetails": @{ @"negativeKeywordListId": @"" }, @"omidDetails": @{ @"omid": @"" }, @"onScreenPositionDetails": @{ @"adType": @"", @"onScreenPosition": @"", @"targetingOptionId": @"" }, @"operatingSystemDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"parentalStatusDetails": @{ @"parentalStatus": @"" }, @"poiDetails": @{ @"displayName": @"", @"latitude": @"", @"longitude": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" }, @"proximityLocationListDetails": @{ @"proximityLocationListId": @"", @"proximityRadius": @"", @"proximityRadiusUnit": @"" }, @"regionalLocationListDetails": @{ @"negative": @NO, @"regionalLocationListId": @"" }, @"sensitiveCategoryExclusionDetails": @{ @"excludedSensitiveCategory": @"" }, @"sessionPositionDetails": @{ @"sessionPosition": @"" }, @"subExchangeDetails": @{ @"targetingOptionId": @"" }, @"targetingType": @"", @"thirdPartyVerifierDetails": @{ @"adloox": @{ @"excludedAdlooxCategories": @[  ] }, @"doubleVerify": @{ @"appStarRating": @{ @"avoidInsufficientStarRating": @NO, @"avoidedStarRating": @"" }, @"avoidedAgeRatings": @[  ], @"brandSafetyCategories": @{ @"avoidUnknownBrandSafetyCategory": @NO, @"avoidedHighSeverityCategories": @[  ], @"avoidedMediumSeverityCategories": @[  ] }, @"customSegmentId": @"", @"displayViewability": @{ @"iab": @"", @"viewableDuring": @"" }, @"fraudInvalidTraffic": @{ @"avoidInsufficientOption": @NO, @"avoidedFraudOption": @"" }, @"videoViewability": @{ @"playerImpressionRate": @"", @"videoIab": @"", @"videoViewableRate": @"" } }, @"integralAdScience": @{ @"customSegmentId": @[  ], @"displayViewability": @"", @"excludeUnrateable": @NO, @"excludedAdFraudRisk": @"", @"excludedAdultRisk": @"", @"excludedAlcoholRisk": @"", @"excludedDrugsRisk": @"", @"excludedGamblingRisk": @"", @"excludedHateSpeechRisk": @"", @"excludedIllegalDownloadsRisk": @"", @"excludedOffensiveLanguageRisk": @"", @"excludedViolenceRisk": @"", @"traqScoreOption": @"", @"videoViewability": @"" } }, @"urlDetails": @{ @"negative": @NO, @"url": @"" }, @"userRewardedContentDetails": @{ @"targetingOptionId": @"", @"userRewardedContent": @"" }, @"videoPlayerSizeDetails": @{ @"videoPlayerSize": @"" }, @"viewabilityDetails": @{ @"viewability": @"" }, @"youtubeChannelDetails": @{ @"channelId": @"", @"negative": @NO }, @"youtubeVideoDetails": @{ @"negative": @NO, @"videoId": @"" } } ], @"targetingType": @"" } ],
                              @"deleteRequests": @[ @{ @"assignedTargetingOptionIds": @[  ], @"targetingType": @"" } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions",
  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([
    'createRequests' => [
        [
                'assignedTargetingOptions' => [
                                [
                                                                'ageRangeDetails' => [
                                                                                                                                'ageRange' => ''
                                                                ],
                                                                'appCategoryDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'appDetails' => [
                                                                                                                                'appId' => '',
                                                                                                                                'appPlatform' => '',
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null
                                                                ],
                                                                'assignedTargetingOptionId' => '',
                                                                'assignedTargetingOptionIdAlias' => '',
                                                                'audienceGroupDetails' => [
                                                                                                                                'excludedFirstAndThirdPartyAudienceGroup' => [
                                                                                                                                                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'firstAndThirdPartyAudienceId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'recency' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'excludedGoogleAudienceGroup' => [
                                                                                                                                                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'googleAudienceId' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'includedCombinedAudienceGroup' => [
                                                                                                                                                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'combinedAudienceId' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'includedCustomListGroup' => [
                                                                                                                                                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'customListId' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'includedFirstAndThirdPartyAudienceGroups' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'includedGoogleAudienceGroup' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'audioContentTypeDetails' => [
                                                                                                                                'audioContentType' => ''
                                                                ],
                                                                'authorizedSellerStatusDetails' => [
                                                                                                                                'authorizedSellerStatus' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'browserDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'businessChainDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'proximityRadiusAmount' => '',
                                                                                                                                'proximityRadiusUnit' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'carrierAndIspDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'categoryDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'channelDetails' => [
                                                                                                                                'channelId' => '',
                                                                                                                                'negative' => null
                                                                ],
                                                                'contentDurationDetails' => [
                                                                                                                                'contentDuration' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'contentGenreDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'contentInstreamPositionDetails' => [
                                                                                                                                'adType' => '',
                                                                                                                                'contentInstreamPosition' => ''
                                                                ],
                                                                'contentOutstreamPositionDetails' => [
                                                                                                                                'adType' => '',
                                                                                                                                'contentOutstreamPosition' => ''
                                                                ],
                                                                'contentStreamTypeDetails' => [
                                                                                                                                'contentStreamType' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'dayAndTimeDetails' => [
                                                                                                                                'dayOfWeek' => '',
                                                                                                                                'endHour' => 0,
                                                                                                                                'startHour' => 0,
                                                                                                                                'timeZoneResolution' => ''
                                                                ],
                                                                'deviceMakeModelDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'deviceTypeDetails' => [
                                                                                                                                'deviceType' => '',
                                                                                                                                'youtubeAndPartnersBidMultiplier' => ''
                                                                ],
                                                                'digitalContentLabelExclusionDetails' => [
                                                                                                                                'excludedContentRatingTier' => ''
                                                                ],
                                                                'environmentDetails' => [
                                                                                                                                'environment' => ''
                                                                ],
                                                                'exchangeDetails' => [
                                                                                                                                'exchange' => ''
                                                                ],
                                                                'genderDetails' => [
                                                                                                                                'gender' => ''
                                                                ],
                                                                'geoRegionDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'geoRegionType' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'householdIncomeDetails' => [
                                                                                                                                'householdIncome' => ''
                                                                ],
                                                                'inheritance' => '',
                                                                'inventorySourceDetails' => [
                                                                                                                                'inventorySourceId' => ''
                                                                ],
                                                                'inventorySourceGroupDetails' => [
                                                                                                                                'inventorySourceGroupId' => ''
                                                                ],
                                                                'keywordDetails' => [
                                                                                                                                'keyword' => '',
                                                                                                                                'negative' => null
                                                                ],
                                                                'languageDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'name' => '',
                                                                'nativeContentPositionDetails' => [
                                                                                                                                'contentPosition' => ''
                                                                ],
                                                                'negativeKeywordListDetails' => [
                                                                                                                                'negativeKeywordListId' => ''
                                                                ],
                                                                'omidDetails' => [
                                                                                                                                'omid' => ''
                                                                ],
                                                                'onScreenPositionDetails' => [
                                                                                                                                'adType' => '',
                                                                                                                                'onScreenPosition' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'operatingSystemDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'parentalStatusDetails' => [
                                                                                                                                'parentalStatus' => ''
                                                                ],
                                                                'poiDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'latitude' => '',
                                                                                                                                'longitude' => '',
                                                                                                                                'proximityRadiusAmount' => '',
                                                                                                                                'proximityRadiusUnit' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'proximityLocationListDetails' => [
                                                                                                                                'proximityLocationListId' => '',
                                                                                                                                'proximityRadius' => '',
                                                                                                                                'proximityRadiusUnit' => ''
                                                                ],
                                                                'regionalLocationListDetails' => [
                                                                                                                                'negative' => null,
                                                                                                                                'regionalLocationListId' => ''
                                                                ],
                                                                'sensitiveCategoryExclusionDetails' => [
                                                                                                                                'excludedSensitiveCategory' => ''
                                                                ],
                                                                'sessionPositionDetails' => [
                                                                                                                                'sessionPosition' => ''
                                                                ],
                                                                'subExchangeDetails' => [
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'targetingType' => '',
                                                                'thirdPartyVerifierDetails' => [
                                                                                                                                'adloox' => [
                                                                                                                                                                                                                                                                'excludedAdlooxCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'doubleVerify' => [
                                                                                                                                                                                                                                                                'appStarRating' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidInsufficientStarRating' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidedStarRating' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'avoidedAgeRatings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'brandSafetyCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidUnknownBrandSafetyCategory' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidedHighSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidedMediumSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'customSegmentId' => '',
                                                                                                                                                                                                                                                                'displayViewability' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iab' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'viewableDuring' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'fraudInvalidTraffic' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidInsufficientOption' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidedFraudOption' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'videoViewability' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'playerImpressionRate' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'videoIab' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'videoViewableRate' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'integralAdScience' => [
                                                                                                                                                                                                                                                                'customSegmentId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'displayViewability' => '',
                                                                                                                                                                                                                                                                'excludeUnrateable' => null,
                                                                                                                                                                                                                                                                'excludedAdFraudRisk' => '',
                                                                                                                                                                                                                                                                'excludedAdultRisk' => '',
                                                                                                                                                                                                                                                                'excludedAlcoholRisk' => '',
                                                                                                                                                                                                                                                                'excludedDrugsRisk' => '',
                                                                                                                                                                                                                                                                'excludedGamblingRisk' => '',
                                                                                                                                                                                                                                                                'excludedHateSpeechRisk' => '',
                                                                                                                                                                                                                                                                'excludedIllegalDownloadsRisk' => '',
                                                                                                                                                                                                                                                                'excludedOffensiveLanguageRisk' => '',
                                                                                                                                                                                                                                                                'excludedViolenceRisk' => '',
                                                                                                                                                                                                                                                                'traqScoreOption' => '',
                                                                                                                                                                                                                                                                'videoViewability' => ''
                                                                                                                                ]
                                                                ],
                                                                'urlDetails' => [
                                                                                                                                'negative' => null,
                                                                                                                                'url' => ''
                                                                ],
                                                                'userRewardedContentDetails' => [
                                                                                                                                'targetingOptionId' => '',
                                                                                                                                'userRewardedContent' => ''
                                                                ],
                                                                'videoPlayerSizeDetails' => [
                                                                                                                                'videoPlayerSize' => ''
                                                                ],
                                                                'viewabilityDetails' => [
                                                                                                                                'viewability' => ''
                                                                ],
                                                                'youtubeChannelDetails' => [
                                                                                                                                'channelId' => '',
                                                                                                                                'negative' => null
                                                                ],
                                                                'youtubeVideoDetails' => [
                                                                                                                                'negative' => null,
                                                                                                                                'videoId' => ''
                                                                ]
                                ]
                ],
                'targetingType' => ''
        ]
    ],
    'deleteRequests' => [
        [
                'assignedTargetingOptionIds' => [
                                
                ],
                'targetingType' => ''
        ]
    ]
  ]),
  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}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions', [
  'body' => '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'createRequests' => [
    [
        'assignedTargetingOptions' => [
                [
                                'ageRangeDetails' => [
                                                                'ageRange' => ''
                                ],
                                'appCategoryDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'appDetails' => [
                                                                'appId' => '',
                                                                'appPlatform' => '',
                                                                'displayName' => '',
                                                                'negative' => null
                                ],
                                'assignedTargetingOptionId' => '',
                                'assignedTargetingOptionIdAlias' => '',
                                'audienceGroupDetails' => [
                                                                'excludedFirstAndThirdPartyAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'firstAndThirdPartyAudienceId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'recency' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'excludedGoogleAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'googleAudienceId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedCombinedAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'combinedAudienceId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedCustomListGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'customListId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedFirstAndThirdPartyAudienceGroups' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'includedGoogleAudienceGroup' => [
                                                                                                                                
                                                                ]
                                ],
                                'audioContentTypeDetails' => [
                                                                'audioContentType' => ''
                                ],
                                'authorizedSellerStatusDetails' => [
                                                                'authorizedSellerStatus' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'browserDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'businessChainDetails' => [
                                                                'displayName' => '',
                                                                'proximityRadiusAmount' => '',
                                                                'proximityRadiusUnit' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'carrierAndIspDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'categoryDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'channelDetails' => [
                                                                'channelId' => '',
                                                                'negative' => null
                                ],
                                'contentDurationDetails' => [
                                                                'contentDuration' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'contentGenreDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'contentInstreamPositionDetails' => [
                                                                'adType' => '',
                                                                'contentInstreamPosition' => ''
                                ],
                                'contentOutstreamPositionDetails' => [
                                                                'adType' => '',
                                                                'contentOutstreamPosition' => ''
                                ],
                                'contentStreamTypeDetails' => [
                                                                'contentStreamType' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'dayAndTimeDetails' => [
                                                                'dayOfWeek' => '',
                                                                'endHour' => 0,
                                                                'startHour' => 0,
                                                                'timeZoneResolution' => ''
                                ],
                                'deviceMakeModelDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'deviceTypeDetails' => [
                                                                'deviceType' => '',
                                                                'youtubeAndPartnersBidMultiplier' => ''
                                ],
                                'digitalContentLabelExclusionDetails' => [
                                                                'excludedContentRatingTier' => ''
                                ],
                                'environmentDetails' => [
                                                                'environment' => ''
                                ],
                                'exchangeDetails' => [
                                                                'exchange' => ''
                                ],
                                'genderDetails' => [
                                                                'gender' => ''
                                ],
                                'geoRegionDetails' => [
                                                                'displayName' => '',
                                                                'geoRegionType' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'householdIncomeDetails' => [
                                                                'householdIncome' => ''
                                ],
                                'inheritance' => '',
                                'inventorySourceDetails' => [
                                                                'inventorySourceId' => ''
                                ],
                                'inventorySourceGroupDetails' => [
                                                                'inventorySourceGroupId' => ''
                                ],
                                'keywordDetails' => [
                                                                'keyword' => '',
                                                                'negative' => null
                                ],
                                'languageDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'name' => '',
                                'nativeContentPositionDetails' => [
                                                                'contentPosition' => ''
                                ],
                                'negativeKeywordListDetails' => [
                                                                'negativeKeywordListId' => ''
                                ],
                                'omidDetails' => [
                                                                'omid' => ''
                                ],
                                'onScreenPositionDetails' => [
                                                                'adType' => '',
                                                                'onScreenPosition' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'operatingSystemDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'parentalStatusDetails' => [
                                                                'parentalStatus' => ''
                                ],
                                'poiDetails' => [
                                                                'displayName' => '',
                                                                'latitude' => '',
                                                                'longitude' => '',
                                                                'proximityRadiusAmount' => '',
                                                                'proximityRadiusUnit' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'proximityLocationListDetails' => [
                                                                'proximityLocationListId' => '',
                                                                'proximityRadius' => '',
                                                                'proximityRadiusUnit' => ''
                                ],
                                'regionalLocationListDetails' => [
                                                                'negative' => null,
                                                                'regionalLocationListId' => ''
                                ],
                                'sensitiveCategoryExclusionDetails' => [
                                                                'excludedSensitiveCategory' => ''
                                ],
                                'sessionPositionDetails' => [
                                                                'sessionPosition' => ''
                                ],
                                'subExchangeDetails' => [
                                                                'targetingOptionId' => ''
                                ],
                                'targetingType' => '',
                                'thirdPartyVerifierDetails' => [
                                                                'adloox' => [
                                                                                                                                'excludedAdlooxCategories' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'doubleVerify' => [
                                                                                                                                'appStarRating' => [
                                                                                                                                                                                                                                                                'avoidInsufficientStarRating' => null,
                                                                                                                                                                                                                                                                'avoidedStarRating' => ''
                                                                                                                                ],
                                                                                                                                'avoidedAgeRatings' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'brandSafetyCategories' => [
                                                                                                                                                                                                                                                                'avoidUnknownBrandSafetyCategory' => null,
                                                                                                                                                                                                                                                                'avoidedHighSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'avoidedMediumSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'customSegmentId' => '',
                                                                                                                                'displayViewability' => [
                                                                                                                                                                                                                                                                'iab' => '',
                                                                                                                                                                                                                                                                'viewableDuring' => ''
                                                                                                                                ],
                                                                                                                                'fraudInvalidTraffic' => [
                                                                                                                                                                                                                                                                'avoidInsufficientOption' => null,
                                                                                                                                                                                                                                                                'avoidedFraudOption' => ''
                                                                                                                                ],
                                                                                                                                'videoViewability' => [
                                                                                                                                                                                                                                                                'playerImpressionRate' => '',
                                                                                                                                                                                                                                                                'videoIab' => '',
                                                                                                                                                                                                                                                                'videoViewableRate' => ''
                                                                                                                                ]
                                                                ],
                                                                'integralAdScience' => [
                                                                                                                                'customSegmentId' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'displayViewability' => '',
                                                                                                                                'excludeUnrateable' => null,
                                                                                                                                'excludedAdFraudRisk' => '',
                                                                                                                                'excludedAdultRisk' => '',
                                                                                                                                'excludedAlcoholRisk' => '',
                                                                                                                                'excludedDrugsRisk' => '',
                                                                                                                                'excludedGamblingRisk' => '',
                                                                                                                                'excludedHateSpeechRisk' => '',
                                                                                                                                'excludedIllegalDownloadsRisk' => '',
                                                                                                                                'excludedOffensiveLanguageRisk' => '',
                                                                                                                                'excludedViolenceRisk' => '',
                                                                                                                                'traqScoreOption' => '',
                                                                                                                                'videoViewability' => ''
                                                                ]
                                ],
                                'urlDetails' => [
                                                                'negative' => null,
                                                                'url' => ''
                                ],
                                'userRewardedContentDetails' => [
                                                                'targetingOptionId' => '',
                                                                'userRewardedContent' => ''
                                ],
                                'videoPlayerSizeDetails' => [
                                                                'videoPlayerSize' => ''
                                ],
                                'viewabilityDetails' => [
                                                                'viewability' => ''
                                ],
                                'youtubeChannelDetails' => [
                                                                'channelId' => '',
                                                                'negative' => null
                                ],
                                'youtubeVideoDetails' => [
                                                                'negative' => null,
                                                                'videoId' => ''
                                ]
                ]
        ],
        'targetingType' => ''
    ]
  ],
  'deleteRequests' => [
    [
        'assignedTargetingOptionIds' => [
                
        ],
        'targetingType' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'createRequests' => [
    [
        'assignedTargetingOptions' => [
                [
                                'ageRangeDetails' => [
                                                                'ageRange' => ''
                                ],
                                'appCategoryDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'appDetails' => [
                                                                'appId' => '',
                                                                'appPlatform' => '',
                                                                'displayName' => '',
                                                                'negative' => null
                                ],
                                'assignedTargetingOptionId' => '',
                                'assignedTargetingOptionIdAlias' => '',
                                'audienceGroupDetails' => [
                                                                'excludedFirstAndThirdPartyAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'firstAndThirdPartyAudienceId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'recency' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'excludedGoogleAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'googleAudienceId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedCombinedAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'combinedAudienceId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedCustomListGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'customListId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedFirstAndThirdPartyAudienceGroups' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'includedGoogleAudienceGroup' => [
                                                                                                                                
                                                                ]
                                ],
                                'audioContentTypeDetails' => [
                                                                'audioContentType' => ''
                                ],
                                'authorizedSellerStatusDetails' => [
                                                                'authorizedSellerStatus' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'browserDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'businessChainDetails' => [
                                                                'displayName' => '',
                                                                'proximityRadiusAmount' => '',
                                                                'proximityRadiusUnit' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'carrierAndIspDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'categoryDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'channelDetails' => [
                                                                'channelId' => '',
                                                                'negative' => null
                                ],
                                'contentDurationDetails' => [
                                                                'contentDuration' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'contentGenreDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'contentInstreamPositionDetails' => [
                                                                'adType' => '',
                                                                'contentInstreamPosition' => ''
                                ],
                                'contentOutstreamPositionDetails' => [
                                                                'adType' => '',
                                                                'contentOutstreamPosition' => ''
                                ],
                                'contentStreamTypeDetails' => [
                                                                'contentStreamType' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'dayAndTimeDetails' => [
                                                                'dayOfWeek' => '',
                                                                'endHour' => 0,
                                                                'startHour' => 0,
                                                                'timeZoneResolution' => ''
                                ],
                                'deviceMakeModelDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'deviceTypeDetails' => [
                                                                'deviceType' => '',
                                                                'youtubeAndPartnersBidMultiplier' => ''
                                ],
                                'digitalContentLabelExclusionDetails' => [
                                                                'excludedContentRatingTier' => ''
                                ],
                                'environmentDetails' => [
                                                                'environment' => ''
                                ],
                                'exchangeDetails' => [
                                                                'exchange' => ''
                                ],
                                'genderDetails' => [
                                                                'gender' => ''
                                ],
                                'geoRegionDetails' => [
                                                                'displayName' => '',
                                                                'geoRegionType' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'householdIncomeDetails' => [
                                                                'householdIncome' => ''
                                ],
                                'inheritance' => '',
                                'inventorySourceDetails' => [
                                                                'inventorySourceId' => ''
                                ],
                                'inventorySourceGroupDetails' => [
                                                                'inventorySourceGroupId' => ''
                                ],
                                'keywordDetails' => [
                                                                'keyword' => '',
                                                                'negative' => null
                                ],
                                'languageDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'name' => '',
                                'nativeContentPositionDetails' => [
                                                                'contentPosition' => ''
                                ],
                                'negativeKeywordListDetails' => [
                                                                'negativeKeywordListId' => ''
                                ],
                                'omidDetails' => [
                                                                'omid' => ''
                                ],
                                'onScreenPositionDetails' => [
                                                                'adType' => '',
                                                                'onScreenPosition' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'operatingSystemDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'parentalStatusDetails' => [
                                                                'parentalStatus' => ''
                                ],
                                'poiDetails' => [
                                                                'displayName' => '',
                                                                'latitude' => '',
                                                                'longitude' => '',
                                                                'proximityRadiusAmount' => '',
                                                                'proximityRadiusUnit' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'proximityLocationListDetails' => [
                                                                'proximityLocationListId' => '',
                                                                'proximityRadius' => '',
                                                                'proximityRadiusUnit' => ''
                                ],
                                'regionalLocationListDetails' => [
                                                                'negative' => null,
                                                                'regionalLocationListId' => ''
                                ],
                                'sensitiveCategoryExclusionDetails' => [
                                                                'excludedSensitiveCategory' => ''
                                ],
                                'sessionPositionDetails' => [
                                                                'sessionPosition' => ''
                                ],
                                'subExchangeDetails' => [
                                                                'targetingOptionId' => ''
                                ],
                                'targetingType' => '',
                                'thirdPartyVerifierDetails' => [
                                                                'adloox' => [
                                                                                                                                'excludedAdlooxCategories' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'doubleVerify' => [
                                                                                                                                'appStarRating' => [
                                                                                                                                                                                                                                                                'avoidInsufficientStarRating' => null,
                                                                                                                                                                                                                                                                'avoidedStarRating' => ''
                                                                                                                                ],
                                                                                                                                'avoidedAgeRatings' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'brandSafetyCategories' => [
                                                                                                                                                                                                                                                                'avoidUnknownBrandSafetyCategory' => null,
                                                                                                                                                                                                                                                                'avoidedHighSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'avoidedMediumSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'customSegmentId' => '',
                                                                                                                                'displayViewability' => [
                                                                                                                                                                                                                                                                'iab' => '',
                                                                                                                                                                                                                                                                'viewableDuring' => ''
                                                                                                                                ],
                                                                                                                                'fraudInvalidTraffic' => [
                                                                                                                                                                                                                                                                'avoidInsufficientOption' => null,
                                                                                                                                                                                                                                                                'avoidedFraudOption' => ''
                                                                                                                                ],
                                                                                                                                'videoViewability' => [
                                                                                                                                                                                                                                                                'playerImpressionRate' => '',
                                                                                                                                                                                                                                                                'videoIab' => '',
                                                                                                                                                                                                                                                                'videoViewableRate' => ''
                                                                                                                                ]
                                                                ],
                                                                'integralAdScience' => [
                                                                                                                                'customSegmentId' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'displayViewability' => '',
                                                                                                                                'excludeUnrateable' => null,
                                                                                                                                'excludedAdFraudRisk' => '',
                                                                                                                                'excludedAdultRisk' => '',
                                                                                                                                'excludedAlcoholRisk' => '',
                                                                                                                                'excludedDrugsRisk' => '',
                                                                                                                                'excludedGamblingRisk' => '',
                                                                                                                                'excludedHateSpeechRisk' => '',
                                                                                                                                'excludedIllegalDownloadsRisk' => '',
                                                                                                                                'excludedOffensiveLanguageRisk' => '',
                                                                                                                                'excludedViolenceRisk' => '',
                                                                                                                                'traqScoreOption' => '',
                                                                                                                                'videoViewability' => ''
                                                                ]
                                ],
                                'urlDetails' => [
                                                                'negative' => null,
                                                                'url' => ''
                                ],
                                'userRewardedContentDetails' => [
                                                                'targetingOptionId' => '',
                                                                'userRewardedContent' => ''
                                ],
                                'videoPlayerSizeDetails' => [
                                                                'videoPlayerSize' => ''
                                ],
                                'viewabilityDetails' => [
                                                                'viewability' => ''
                                ],
                                'youtubeChannelDetails' => [
                                                                'channelId' => '',
                                                                'negative' => null
                                ],
                                'youtubeVideoDetails' => [
                                                                'negative' => null,
                                                                'videoId' => ''
                                ]
                ]
        ],
        'targetingType' => ''
    ]
  ],
  'deleteRequests' => [
    [
        'assignedTargetingOptionIds' => [
                
        ],
        'targetingType' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions');
$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}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}'
import http.client

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

payload = "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}"

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

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId:editAssignedTargetingOptions", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions"

payload = {
    "createRequests": [
        {
            "assignedTargetingOptions": [
                {
                    "ageRangeDetails": { "ageRange": "" },
                    "appCategoryDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "appDetails": {
                        "appId": "",
                        "appPlatform": "",
                        "displayName": "",
                        "negative": False
                    },
                    "assignedTargetingOptionId": "",
                    "assignedTargetingOptionIdAlias": "",
                    "audienceGroupDetails": {
                        "excludedFirstAndThirdPartyAudienceGroup": { "settings": [
                                {
                                    "firstAndThirdPartyAudienceId": "",
                                    "recency": ""
                                }
                            ] },
                        "excludedGoogleAudienceGroup": { "settings": [{ "googleAudienceId": "" }] },
                        "includedCombinedAudienceGroup": { "settings": [{ "combinedAudienceId": "" }] },
                        "includedCustomListGroup": { "settings": [{ "customListId": "" }] },
                        "includedFirstAndThirdPartyAudienceGroups": [{}],
                        "includedGoogleAudienceGroup": {}
                    },
                    "audioContentTypeDetails": { "audioContentType": "" },
                    "authorizedSellerStatusDetails": {
                        "authorizedSellerStatus": "",
                        "targetingOptionId": ""
                    },
                    "browserDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "businessChainDetails": {
                        "displayName": "",
                        "proximityRadiusAmount": "",
                        "proximityRadiusUnit": "",
                        "targetingOptionId": ""
                    },
                    "carrierAndIspDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "categoryDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "channelDetails": {
                        "channelId": "",
                        "negative": False
                    },
                    "contentDurationDetails": {
                        "contentDuration": "",
                        "targetingOptionId": ""
                    },
                    "contentGenreDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "contentInstreamPositionDetails": {
                        "adType": "",
                        "contentInstreamPosition": ""
                    },
                    "contentOutstreamPositionDetails": {
                        "adType": "",
                        "contentOutstreamPosition": ""
                    },
                    "contentStreamTypeDetails": {
                        "contentStreamType": "",
                        "targetingOptionId": ""
                    },
                    "dayAndTimeDetails": {
                        "dayOfWeek": "",
                        "endHour": 0,
                        "startHour": 0,
                        "timeZoneResolution": ""
                    },
                    "deviceMakeModelDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "deviceTypeDetails": {
                        "deviceType": "",
                        "youtubeAndPartnersBidMultiplier": ""
                    },
                    "digitalContentLabelExclusionDetails": { "excludedContentRatingTier": "" },
                    "environmentDetails": { "environment": "" },
                    "exchangeDetails": { "exchange": "" },
                    "genderDetails": { "gender": "" },
                    "geoRegionDetails": {
                        "displayName": "",
                        "geoRegionType": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "householdIncomeDetails": { "householdIncome": "" },
                    "inheritance": "",
                    "inventorySourceDetails": { "inventorySourceId": "" },
                    "inventorySourceGroupDetails": { "inventorySourceGroupId": "" },
                    "keywordDetails": {
                        "keyword": "",
                        "negative": False
                    },
                    "languageDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "name": "",
                    "nativeContentPositionDetails": { "contentPosition": "" },
                    "negativeKeywordListDetails": { "negativeKeywordListId": "" },
                    "omidDetails": { "omid": "" },
                    "onScreenPositionDetails": {
                        "adType": "",
                        "onScreenPosition": "",
                        "targetingOptionId": ""
                    },
                    "operatingSystemDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "parentalStatusDetails": { "parentalStatus": "" },
                    "poiDetails": {
                        "displayName": "",
                        "latitude": "",
                        "longitude": "",
                        "proximityRadiusAmount": "",
                        "proximityRadiusUnit": "",
                        "targetingOptionId": ""
                    },
                    "proximityLocationListDetails": {
                        "proximityLocationListId": "",
                        "proximityRadius": "",
                        "proximityRadiusUnit": ""
                    },
                    "regionalLocationListDetails": {
                        "negative": False,
                        "regionalLocationListId": ""
                    },
                    "sensitiveCategoryExclusionDetails": { "excludedSensitiveCategory": "" },
                    "sessionPositionDetails": { "sessionPosition": "" },
                    "subExchangeDetails": { "targetingOptionId": "" },
                    "targetingType": "",
                    "thirdPartyVerifierDetails": {
                        "adloox": { "excludedAdlooxCategories": [] },
                        "doubleVerify": {
                            "appStarRating": {
                                "avoidInsufficientStarRating": False,
                                "avoidedStarRating": ""
                            },
                            "avoidedAgeRatings": [],
                            "brandSafetyCategories": {
                                "avoidUnknownBrandSafetyCategory": False,
                                "avoidedHighSeverityCategories": [],
                                "avoidedMediumSeverityCategories": []
                            },
                            "customSegmentId": "",
                            "displayViewability": {
                                "iab": "",
                                "viewableDuring": ""
                            },
                            "fraudInvalidTraffic": {
                                "avoidInsufficientOption": False,
                                "avoidedFraudOption": ""
                            },
                            "videoViewability": {
                                "playerImpressionRate": "",
                                "videoIab": "",
                                "videoViewableRate": ""
                            }
                        },
                        "integralAdScience": {
                            "customSegmentId": [],
                            "displayViewability": "",
                            "excludeUnrateable": False,
                            "excludedAdFraudRisk": "",
                            "excludedAdultRisk": "",
                            "excludedAlcoholRisk": "",
                            "excludedDrugsRisk": "",
                            "excludedGamblingRisk": "",
                            "excludedHateSpeechRisk": "",
                            "excludedIllegalDownloadsRisk": "",
                            "excludedOffensiveLanguageRisk": "",
                            "excludedViolenceRisk": "",
                            "traqScoreOption": "",
                            "videoViewability": ""
                        }
                    },
                    "urlDetails": {
                        "negative": False,
                        "url": ""
                    },
                    "userRewardedContentDetails": {
                        "targetingOptionId": "",
                        "userRewardedContent": ""
                    },
                    "videoPlayerSizeDetails": { "videoPlayerSize": "" },
                    "viewabilityDetails": { "viewability": "" },
                    "youtubeChannelDetails": {
                        "channelId": "",
                        "negative": False
                    },
                    "youtubeVideoDetails": {
                        "negative": False,
                        "videoId": ""
                    }
                }
            ],
            "targetingType": ""
        }
    ],
    "deleteRequests": [
        {
            "assignedTargetingOptionIds": [],
            "targetingType": ""
        }
    ]
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions"

payload <- "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\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}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions")

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  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\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/v2/advertisers/:advertiserId:editAssignedTargetingOptions') do |req|
  req.body = "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions";

    let payload = json!({
        "createRequests": (
            json!({
                "assignedTargetingOptions": (
                    json!({
                        "ageRangeDetails": json!({"ageRange": ""}),
                        "appCategoryDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "appDetails": json!({
                            "appId": "",
                            "appPlatform": "",
                            "displayName": "",
                            "negative": false
                        }),
                        "assignedTargetingOptionId": "",
                        "assignedTargetingOptionIdAlias": "",
                        "audienceGroupDetails": json!({
                            "excludedFirstAndThirdPartyAudienceGroup": json!({"settings": (
                                    json!({
                                        "firstAndThirdPartyAudienceId": "",
                                        "recency": ""
                                    })
                                )}),
                            "excludedGoogleAudienceGroup": json!({"settings": (json!({"googleAudienceId": ""}))}),
                            "includedCombinedAudienceGroup": json!({"settings": (json!({"combinedAudienceId": ""}))}),
                            "includedCustomListGroup": json!({"settings": (json!({"customListId": ""}))}),
                            "includedFirstAndThirdPartyAudienceGroups": (json!({})),
                            "includedGoogleAudienceGroup": json!({})
                        }),
                        "audioContentTypeDetails": json!({"audioContentType": ""}),
                        "authorizedSellerStatusDetails": json!({
                            "authorizedSellerStatus": "",
                            "targetingOptionId": ""
                        }),
                        "browserDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "businessChainDetails": json!({
                            "displayName": "",
                            "proximityRadiusAmount": "",
                            "proximityRadiusUnit": "",
                            "targetingOptionId": ""
                        }),
                        "carrierAndIspDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "categoryDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "channelDetails": json!({
                            "channelId": "",
                            "negative": false
                        }),
                        "contentDurationDetails": json!({
                            "contentDuration": "",
                            "targetingOptionId": ""
                        }),
                        "contentGenreDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "contentInstreamPositionDetails": json!({
                            "adType": "",
                            "contentInstreamPosition": ""
                        }),
                        "contentOutstreamPositionDetails": json!({
                            "adType": "",
                            "contentOutstreamPosition": ""
                        }),
                        "contentStreamTypeDetails": json!({
                            "contentStreamType": "",
                            "targetingOptionId": ""
                        }),
                        "dayAndTimeDetails": json!({
                            "dayOfWeek": "",
                            "endHour": 0,
                            "startHour": 0,
                            "timeZoneResolution": ""
                        }),
                        "deviceMakeModelDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "deviceTypeDetails": json!({
                            "deviceType": "",
                            "youtubeAndPartnersBidMultiplier": ""
                        }),
                        "digitalContentLabelExclusionDetails": json!({"excludedContentRatingTier": ""}),
                        "environmentDetails": json!({"environment": ""}),
                        "exchangeDetails": json!({"exchange": ""}),
                        "genderDetails": json!({"gender": ""}),
                        "geoRegionDetails": json!({
                            "displayName": "",
                            "geoRegionType": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "householdIncomeDetails": json!({"householdIncome": ""}),
                        "inheritance": "",
                        "inventorySourceDetails": json!({"inventorySourceId": ""}),
                        "inventorySourceGroupDetails": json!({"inventorySourceGroupId": ""}),
                        "keywordDetails": json!({
                            "keyword": "",
                            "negative": false
                        }),
                        "languageDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "name": "",
                        "nativeContentPositionDetails": json!({"contentPosition": ""}),
                        "negativeKeywordListDetails": json!({"negativeKeywordListId": ""}),
                        "omidDetails": json!({"omid": ""}),
                        "onScreenPositionDetails": json!({
                            "adType": "",
                            "onScreenPosition": "",
                            "targetingOptionId": ""
                        }),
                        "operatingSystemDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "parentalStatusDetails": json!({"parentalStatus": ""}),
                        "poiDetails": json!({
                            "displayName": "",
                            "latitude": "",
                            "longitude": "",
                            "proximityRadiusAmount": "",
                            "proximityRadiusUnit": "",
                            "targetingOptionId": ""
                        }),
                        "proximityLocationListDetails": json!({
                            "proximityLocationListId": "",
                            "proximityRadius": "",
                            "proximityRadiusUnit": ""
                        }),
                        "regionalLocationListDetails": json!({
                            "negative": false,
                            "regionalLocationListId": ""
                        }),
                        "sensitiveCategoryExclusionDetails": json!({"excludedSensitiveCategory": ""}),
                        "sessionPositionDetails": json!({"sessionPosition": ""}),
                        "subExchangeDetails": json!({"targetingOptionId": ""}),
                        "targetingType": "",
                        "thirdPartyVerifierDetails": json!({
                            "adloox": json!({"excludedAdlooxCategories": ()}),
                            "doubleVerify": json!({
                                "appStarRating": json!({
                                    "avoidInsufficientStarRating": false,
                                    "avoidedStarRating": ""
                                }),
                                "avoidedAgeRatings": (),
                                "brandSafetyCategories": json!({
                                    "avoidUnknownBrandSafetyCategory": false,
                                    "avoidedHighSeverityCategories": (),
                                    "avoidedMediumSeverityCategories": ()
                                }),
                                "customSegmentId": "",
                                "displayViewability": json!({
                                    "iab": "",
                                    "viewableDuring": ""
                                }),
                                "fraudInvalidTraffic": json!({
                                    "avoidInsufficientOption": false,
                                    "avoidedFraudOption": ""
                                }),
                                "videoViewability": json!({
                                    "playerImpressionRate": "",
                                    "videoIab": "",
                                    "videoViewableRate": ""
                                })
                            }),
                            "integralAdScience": json!({
                                "customSegmentId": (),
                                "displayViewability": "",
                                "excludeUnrateable": false,
                                "excludedAdFraudRisk": "",
                                "excludedAdultRisk": "",
                                "excludedAlcoholRisk": "",
                                "excludedDrugsRisk": "",
                                "excludedGamblingRisk": "",
                                "excludedHateSpeechRisk": "",
                                "excludedIllegalDownloadsRisk": "",
                                "excludedOffensiveLanguageRisk": "",
                                "excludedViolenceRisk": "",
                                "traqScoreOption": "",
                                "videoViewability": ""
                            })
                        }),
                        "urlDetails": json!({
                            "negative": false,
                            "url": ""
                        }),
                        "userRewardedContentDetails": json!({
                            "targetingOptionId": "",
                            "userRewardedContent": ""
                        }),
                        "videoPlayerSizeDetails": json!({"videoPlayerSize": ""}),
                        "viewabilityDetails": json!({"viewability": ""}),
                        "youtubeChannelDetails": json!({
                            "channelId": "",
                            "negative": false
                        }),
                        "youtubeVideoDetails": json!({
                            "negative": false,
                            "videoId": ""
                        })
                    })
                ),
                "targetingType": ""
            })
        ),
        "deleteRequests": (
            json!({
                "assignedTargetingOptionIds": (),
                "targetingType": ""
            })
        )
    });

    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}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions \
  --header 'content-type: application/json' \
  --data '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}'
echo '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "createRequests": [\n    {\n      "assignedTargetingOptions": [\n        {\n          "ageRangeDetails": {\n            "ageRange": ""\n          },\n          "appCategoryDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "appDetails": {\n            "appId": "",\n            "appPlatform": "",\n            "displayName": "",\n            "negative": false\n          },\n          "assignedTargetingOptionId": "",\n          "assignedTargetingOptionIdAlias": "",\n          "audienceGroupDetails": {\n            "excludedFirstAndThirdPartyAudienceGroup": {\n              "settings": [\n                {\n                  "firstAndThirdPartyAudienceId": "",\n                  "recency": ""\n                }\n              ]\n            },\n            "excludedGoogleAudienceGroup": {\n              "settings": [\n                {\n                  "googleAudienceId": ""\n                }\n              ]\n            },\n            "includedCombinedAudienceGroup": {\n              "settings": [\n                {\n                  "combinedAudienceId": ""\n                }\n              ]\n            },\n            "includedCustomListGroup": {\n              "settings": [\n                {\n                  "customListId": ""\n                }\n              ]\n            },\n            "includedFirstAndThirdPartyAudienceGroups": [\n              {}\n            ],\n            "includedGoogleAudienceGroup": {}\n          },\n          "audioContentTypeDetails": {\n            "audioContentType": ""\n          },\n          "authorizedSellerStatusDetails": {\n            "authorizedSellerStatus": "",\n            "targetingOptionId": ""\n          },\n          "browserDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "businessChainDetails": {\n            "displayName": "",\n            "proximityRadiusAmount": "",\n            "proximityRadiusUnit": "",\n            "targetingOptionId": ""\n          },\n          "carrierAndIspDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "categoryDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "channelDetails": {\n            "channelId": "",\n            "negative": false\n          },\n          "contentDurationDetails": {\n            "contentDuration": "",\n            "targetingOptionId": ""\n          },\n          "contentGenreDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "contentInstreamPositionDetails": {\n            "adType": "",\n            "contentInstreamPosition": ""\n          },\n          "contentOutstreamPositionDetails": {\n            "adType": "",\n            "contentOutstreamPosition": ""\n          },\n          "contentStreamTypeDetails": {\n            "contentStreamType": "",\n            "targetingOptionId": ""\n          },\n          "dayAndTimeDetails": {\n            "dayOfWeek": "",\n            "endHour": 0,\n            "startHour": 0,\n            "timeZoneResolution": ""\n          },\n          "deviceMakeModelDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "deviceTypeDetails": {\n            "deviceType": "",\n            "youtubeAndPartnersBidMultiplier": ""\n          },\n          "digitalContentLabelExclusionDetails": {\n            "excludedContentRatingTier": ""\n          },\n          "environmentDetails": {\n            "environment": ""\n          },\n          "exchangeDetails": {\n            "exchange": ""\n          },\n          "genderDetails": {\n            "gender": ""\n          },\n          "geoRegionDetails": {\n            "displayName": "",\n            "geoRegionType": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "householdIncomeDetails": {\n            "householdIncome": ""\n          },\n          "inheritance": "",\n          "inventorySourceDetails": {\n            "inventorySourceId": ""\n          },\n          "inventorySourceGroupDetails": {\n            "inventorySourceGroupId": ""\n          },\n          "keywordDetails": {\n            "keyword": "",\n            "negative": false\n          },\n          "languageDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "name": "",\n          "nativeContentPositionDetails": {\n            "contentPosition": ""\n          },\n          "negativeKeywordListDetails": {\n            "negativeKeywordListId": ""\n          },\n          "omidDetails": {\n            "omid": ""\n          },\n          "onScreenPositionDetails": {\n            "adType": "",\n            "onScreenPosition": "",\n            "targetingOptionId": ""\n          },\n          "operatingSystemDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "parentalStatusDetails": {\n            "parentalStatus": ""\n          },\n          "poiDetails": {\n            "displayName": "",\n            "latitude": "",\n            "longitude": "",\n            "proximityRadiusAmount": "",\n            "proximityRadiusUnit": "",\n            "targetingOptionId": ""\n          },\n          "proximityLocationListDetails": {\n            "proximityLocationListId": "",\n            "proximityRadius": "",\n            "proximityRadiusUnit": ""\n          },\n          "regionalLocationListDetails": {\n            "negative": false,\n            "regionalLocationListId": ""\n          },\n          "sensitiveCategoryExclusionDetails": {\n            "excludedSensitiveCategory": ""\n          },\n          "sessionPositionDetails": {\n            "sessionPosition": ""\n          },\n          "subExchangeDetails": {\n            "targetingOptionId": ""\n          },\n          "targetingType": "",\n          "thirdPartyVerifierDetails": {\n            "adloox": {\n              "excludedAdlooxCategories": []\n            },\n            "doubleVerify": {\n              "appStarRating": {\n                "avoidInsufficientStarRating": false,\n                "avoidedStarRating": ""\n              },\n              "avoidedAgeRatings": [],\n              "brandSafetyCategories": {\n                "avoidUnknownBrandSafetyCategory": false,\n                "avoidedHighSeverityCategories": [],\n                "avoidedMediumSeverityCategories": []\n              },\n              "customSegmentId": "",\n              "displayViewability": {\n                "iab": "",\n                "viewableDuring": ""\n              },\n              "fraudInvalidTraffic": {\n                "avoidInsufficientOption": false,\n                "avoidedFraudOption": ""\n              },\n              "videoViewability": {\n                "playerImpressionRate": "",\n                "videoIab": "",\n                "videoViewableRate": ""\n              }\n            },\n            "integralAdScience": {\n              "customSegmentId": [],\n              "displayViewability": "",\n              "excludeUnrateable": false,\n              "excludedAdFraudRisk": "",\n              "excludedAdultRisk": "",\n              "excludedAlcoholRisk": "",\n              "excludedDrugsRisk": "",\n              "excludedGamblingRisk": "",\n              "excludedHateSpeechRisk": "",\n              "excludedIllegalDownloadsRisk": "",\n              "excludedOffensiveLanguageRisk": "",\n              "excludedViolenceRisk": "",\n              "traqScoreOption": "",\n              "videoViewability": ""\n            }\n          },\n          "urlDetails": {\n            "negative": false,\n            "url": ""\n          },\n          "userRewardedContentDetails": {\n            "targetingOptionId": "",\n            "userRewardedContent": ""\n          },\n          "videoPlayerSizeDetails": {\n            "videoPlayerSize": ""\n          },\n          "viewabilityDetails": {\n            "viewability": ""\n          },\n          "youtubeChannelDetails": {\n            "channelId": "",\n            "negative": false\n          },\n          "youtubeVideoDetails": {\n            "negative": false,\n            "videoId": ""\n          }\n        }\n      ],\n      "targetingType": ""\n    }\n  ],\n  "deleteRequests": [\n    {\n      "assignedTargetingOptionIds": [],\n      "targetingType": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "createRequests": [
    [
      "assignedTargetingOptions": [
        [
          "ageRangeDetails": ["ageRange": ""],
          "appCategoryDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "appDetails": [
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          ],
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": [
            "excludedFirstAndThirdPartyAudienceGroup": ["settings": [
                [
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                ]
              ]],
            "excludedGoogleAudienceGroup": ["settings": [["googleAudienceId": ""]]],
            "includedCombinedAudienceGroup": ["settings": [["combinedAudienceId": ""]]],
            "includedCustomListGroup": ["settings": [["customListId": ""]]],
            "includedFirstAndThirdPartyAudienceGroups": [[]],
            "includedGoogleAudienceGroup": []
          ],
          "audioContentTypeDetails": ["audioContentType": ""],
          "authorizedSellerStatusDetails": [
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          ],
          "browserDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "businessChainDetails": [
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          ],
          "carrierAndIspDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "categoryDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "channelDetails": [
            "channelId": "",
            "negative": false
          ],
          "contentDurationDetails": [
            "contentDuration": "",
            "targetingOptionId": ""
          ],
          "contentGenreDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "contentInstreamPositionDetails": [
            "adType": "",
            "contentInstreamPosition": ""
          ],
          "contentOutstreamPositionDetails": [
            "adType": "",
            "contentOutstreamPosition": ""
          ],
          "contentStreamTypeDetails": [
            "contentStreamType": "",
            "targetingOptionId": ""
          ],
          "dayAndTimeDetails": [
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          ],
          "deviceMakeModelDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "deviceTypeDetails": [
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          ],
          "digitalContentLabelExclusionDetails": ["excludedContentRatingTier": ""],
          "environmentDetails": ["environment": ""],
          "exchangeDetails": ["exchange": ""],
          "genderDetails": ["gender": ""],
          "geoRegionDetails": [
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "householdIncomeDetails": ["householdIncome": ""],
          "inheritance": "",
          "inventorySourceDetails": ["inventorySourceId": ""],
          "inventorySourceGroupDetails": ["inventorySourceGroupId": ""],
          "keywordDetails": [
            "keyword": "",
            "negative": false
          ],
          "languageDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "name": "",
          "nativeContentPositionDetails": ["contentPosition": ""],
          "negativeKeywordListDetails": ["negativeKeywordListId": ""],
          "omidDetails": ["omid": ""],
          "onScreenPositionDetails": [
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          ],
          "operatingSystemDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "parentalStatusDetails": ["parentalStatus": ""],
          "poiDetails": [
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          ],
          "proximityLocationListDetails": [
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          ],
          "regionalLocationListDetails": [
            "negative": false,
            "regionalLocationListId": ""
          ],
          "sensitiveCategoryExclusionDetails": ["excludedSensitiveCategory": ""],
          "sessionPositionDetails": ["sessionPosition": ""],
          "subExchangeDetails": ["targetingOptionId": ""],
          "targetingType": "",
          "thirdPartyVerifierDetails": [
            "adloox": ["excludedAdlooxCategories": []],
            "doubleVerify": [
              "appStarRating": [
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              ],
              "avoidedAgeRatings": [],
              "brandSafetyCategories": [
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              ],
              "customSegmentId": "",
              "displayViewability": [
                "iab": "",
                "viewableDuring": ""
              ],
              "fraudInvalidTraffic": [
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              ],
              "videoViewability": [
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              ]
            ],
            "integralAdScience": [
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            ]
          ],
          "urlDetails": [
            "negative": false,
            "url": ""
          ],
          "userRewardedContentDetails": [
            "targetingOptionId": "",
            "userRewardedContent": ""
          ],
          "videoPlayerSizeDetails": ["videoPlayerSize": ""],
          "viewabilityDetails": ["viewability": ""],
          "youtubeChannelDetails": [
            "channelId": "",
            "negative": false
          ],
          "youtubeVideoDetails": [
            "negative": false,
            "videoId": ""
          ]
        ]
      ],
      "targetingType": ""
    ]
  ],
  "deleteRequests": [
    [
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    ]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId:editAssignedTargetingOptions")! 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 displayvideo.advertisers.get
{{baseUrl}}/v2/advertisers/:advertiserId
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId"

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}}/v2/advertisers/:advertiserId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId"

	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/v2/advertisers/:advertiserId HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId"))
    .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}}/v2/advertisers/:advertiserId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId")
  .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}}/v2/advertisers/:advertiserId');

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

const options = {method: 'GET', url: '{{baseUrl}}/v2/advertisers/:advertiserId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId';
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}}/v2/advertisers/:advertiserId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId',
  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}}/v2/advertisers/:advertiserId'};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId');

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}}/v2/advertisers/:advertiserId'};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId';
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}}/v2/advertisers/:advertiserId"]
                                                       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}}/v2/advertisers/:advertiserId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v2/advertisers/:advertiserId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId")

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

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

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

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

response = conn.get('/baseUrl/v2/advertisers/:advertiserId') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v2/advertisers/:advertiserId
http GET {{baseUrl}}/v2/advertisers/:advertiserId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId")! 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 displayvideo.advertisers.insertionOrders.create
{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders
QUERY PARAMS

advertiserId
BODY json

{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders");

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  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders" {:content-type :json
                                                                                         :form-params {:advertiserId ""
                                                                                                       :bidStrategy {:fixedBid {:bidAmountMicros ""}
                                                                                                                     :maximizeSpendAutoBid {:customBiddingAlgorithmId ""
                                                                                                                                            :maxAverageCpmBidAmountMicros ""
                                                                                                                                            :performanceGoalType ""
                                                                                                                                            :raiseBidForDeals false}
                                                                                                                     :performanceGoalAutoBid {:customBiddingAlgorithmId ""
                                                                                                                                              :maxAverageCpmBidAmountMicros ""
                                                                                                                                              :performanceGoalAmountMicros ""
                                                                                                                                              :performanceGoalType ""}}
                                                                                                       :billableOutcome ""
                                                                                                       :budget {:automationType ""
                                                                                                                :budgetSegments [{:budgetAmountMicros ""
                                                                                                                                  :campaignBudgetId ""
                                                                                                                                  :dateRange {:endDate {:day 0
                                                                                                                                                        :month 0
                                                                                                                                                        :year 0}
                                                                                                                                              :startDate {}}
                                                                                                                                  :description ""}]
                                                                                                                :budgetUnit ""}
                                                                                                       :campaignId ""
                                                                                                       :displayName ""
                                                                                                       :entityStatus ""
                                                                                                       :frequencyCap {:maxImpressions 0
                                                                                                                      :maxViews 0
                                                                                                                      :timeUnit ""
                                                                                                                      :timeUnitCount 0
                                                                                                                      :unlimited false}
                                                                                                       :insertionOrderId ""
                                                                                                       :insertionOrderType ""
                                                                                                       :integrationDetails {:details ""
                                                                                                                            :integrationCode ""}
                                                                                                       :name ""
                                                                                                       :pacing {:dailyMaxImpressions ""
                                                                                                                :dailyMaxMicros ""
                                                                                                                :pacingPeriod ""
                                                                                                                :pacingType ""}
                                                                                                       :partnerCosts [{:costType ""
                                                                                                                       :feeAmount ""
                                                                                                                       :feePercentageMillis ""
                                                                                                                       :feeType ""
                                                                                                                       :invoiceType ""}]
                                                                                                       :performanceGoal {:performanceGoalAmountMicros ""
                                                                                                                         :performanceGoalPercentageMicros ""
                                                                                                                         :performanceGoalString ""
                                                                                                                         :performanceGoalType ""}
                                                                                                       :reservationType ""
                                                                                                       :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId/insertionOrders"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId/insertionOrders");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\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/v2/advertisers/:advertiserId/insertionOrders HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1710

{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\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  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  bidStrategy: {
    fixedBid: {
      bidAmountMicros: ''
    },
    maximizeSpendAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalType: '',
      raiseBidForDeals: false
    },
    performanceGoalAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalAmountMicros: '',
      performanceGoalType: ''
    }
  },
  billableOutcome: '',
  budget: {
    automationType: '',
    budgetSegments: [
      {
        budgetAmountMicros: '',
        campaignBudgetId: '',
        dateRange: {
          endDate: {
            day: 0,
            month: 0,
            year: 0
          },
          startDate: {}
        },
        description: ''
      }
    ],
    budgetUnit: ''
  },
  campaignId: '',
  displayName: '',
  entityStatus: '',
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  insertionOrderId: '',
  insertionOrderType: '',
  integrationDetails: {
    details: '',
    integrationCode: ''
  },
  name: '',
  pacing: {
    dailyMaxImpressions: '',
    dailyMaxMicros: '',
    pacingPeriod: '',
    pacingType: ''
  },
  partnerCosts: [
    {
      costType: '',
      feeAmount: '',
      feePercentageMillis: '',
      feeType: '',
      invoiceType: ''
    }
  ],
  performanceGoal: {
    performanceGoalAmountMicros: '',
    performanceGoalPercentageMicros: '',
    performanceGoalString: '',
    performanceGoalType: ''
  },
  reservationType: '',
  updateTime: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {bidAmountMicros: ''},
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    billableOutcome: '',
    budget: {
      automationType: '',
      budgetSegments: [
        {
          budgetAmountMicros: '',
          campaignBudgetId: '',
          dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
          description: ''
        }
      ],
      budgetUnit: ''
    },
    campaignId: '',
    displayName: '',
    entityStatus: '',
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    insertionOrderType: '',
    integrationDetails: {details: '', integrationCode: ''},
    name: '',
    pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    performanceGoal: {
      performanceGoalAmountMicros: '',
      performanceGoalPercentageMicros: '',
      performanceGoalString: '',
      performanceGoalType: ''
    },
    reservationType: '',
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","bidStrategy":{"fixedBid":{"bidAmountMicros":""},"maximizeSpendAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalType":"","raiseBidForDeals":false},"performanceGoalAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalAmountMicros":"","performanceGoalType":""}},"billableOutcome":"","budget":{"automationType":"","budgetSegments":[{"budgetAmountMicros":"","campaignBudgetId":"","dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"description":""}],"budgetUnit":""},"campaignId":"","displayName":"","entityStatus":"","frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"insertionOrderId":"","insertionOrderType":"","integrationDetails":{"details":"","integrationCode":""},"name":"","pacing":{"dailyMaxImpressions":"","dailyMaxMicros":"","pacingPeriod":"","pacingType":""},"partnerCosts":[{"costType":"","feeAmount":"","feePercentageMillis":"","feeType":"","invoiceType":""}],"performanceGoal":{"performanceGoalAmountMicros":"","performanceGoalPercentageMicros":"","performanceGoalString":"","performanceGoalType":""},"reservationType":"","updateTime":""}'
};

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}}/v2/advertisers/:advertiserId/insertionOrders',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "bidStrategy": {\n    "fixedBid": {\n      "bidAmountMicros": ""\n    },\n    "maximizeSpendAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalType": "",\n      "raiseBidForDeals": false\n    },\n    "performanceGoalAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalAmountMicros": "",\n      "performanceGoalType": ""\n    }\n  },\n  "billableOutcome": "",\n  "budget": {\n    "automationType": "",\n    "budgetSegments": [\n      {\n        "budgetAmountMicros": "",\n        "campaignBudgetId": "",\n        "dateRange": {\n          "endDate": {\n            "day": 0,\n            "month": 0,\n            "year": 0\n          },\n          "startDate": {}\n        },\n        "description": ""\n      }\n    ],\n    "budgetUnit": ""\n  },\n  "campaignId": "",\n  "displayName": "",\n  "entityStatus": "",\n  "frequencyCap": {\n    "maxImpressions": 0,\n    "maxViews": 0,\n    "timeUnit": "",\n    "timeUnitCount": 0,\n    "unlimited": false\n  },\n  "insertionOrderId": "",\n  "insertionOrderType": "",\n  "integrationDetails": {\n    "details": "",\n    "integrationCode": ""\n  },\n  "name": "",\n  "pacing": {\n    "dailyMaxImpressions": "",\n    "dailyMaxMicros": "",\n    "pacingPeriod": "",\n    "pacingType": ""\n  },\n  "partnerCosts": [\n    {\n      "costType": "",\n      "feeAmount": "",\n      "feePercentageMillis": "",\n      "feeType": "",\n      "invoiceType": ""\n    }\n  ],\n  "performanceGoal": {\n    "performanceGoalAmountMicros": "",\n    "performanceGoalPercentageMicros": "",\n    "performanceGoalString": "",\n    "performanceGoalType": ""\n  },\n  "reservationType": "",\n  "updateTime": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders")
  .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/v2/advertisers/:advertiserId/insertionOrders',
  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({
  advertiserId: '',
  bidStrategy: {
    fixedBid: {bidAmountMicros: ''},
    maximizeSpendAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalType: '',
      raiseBidForDeals: false
    },
    performanceGoalAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalAmountMicros: '',
      performanceGoalType: ''
    }
  },
  billableOutcome: '',
  budget: {
    automationType: '',
    budgetSegments: [
      {
        budgetAmountMicros: '',
        campaignBudgetId: '',
        dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
        description: ''
      }
    ],
    budgetUnit: ''
  },
  campaignId: '',
  displayName: '',
  entityStatus: '',
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  insertionOrderId: '',
  insertionOrderType: '',
  integrationDetails: {details: '', integrationCode: ''},
  name: '',
  pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
  partnerCosts: [
    {
      costType: '',
      feeAmount: '',
      feePercentageMillis: '',
      feeType: '',
      invoiceType: ''
    }
  ],
  performanceGoal: {
    performanceGoalAmountMicros: '',
    performanceGoalPercentageMicros: '',
    performanceGoalString: '',
    performanceGoalType: ''
  },
  reservationType: '',
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {bidAmountMicros: ''},
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    billableOutcome: '',
    budget: {
      automationType: '',
      budgetSegments: [
        {
          budgetAmountMicros: '',
          campaignBudgetId: '',
          dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
          description: ''
        }
      ],
      budgetUnit: ''
    },
    campaignId: '',
    displayName: '',
    entityStatus: '',
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    insertionOrderType: '',
    integrationDetails: {details: '', integrationCode: ''},
    name: '',
    pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    performanceGoal: {
      performanceGoalAmountMicros: '',
      performanceGoalPercentageMicros: '',
      performanceGoalString: '',
      performanceGoalType: ''
    },
    reservationType: '',
    updateTime: ''
  },
  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}}/v2/advertisers/:advertiserId/insertionOrders');

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

req.type('json');
req.send({
  advertiserId: '',
  bidStrategy: {
    fixedBid: {
      bidAmountMicros: ''
    },
    maximizeSpendAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalType: '',
      raiseBidForDeals: false
    },
    performanceGoalAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalAmountMicros: '',
      performanceGoalType: ''
    }
  },
  billableOutcome: '',
  budget: {
    automationType: '',
    budgetSegments: [
      {
        budgetAmountMicros: '',
        campaignBudgetId: '',
        dateRange: {
          endDate: {
            day: 0,
            month: 0,
            year: 0
          },
          startDate: {}
        },
        description: ''
      }
    ],
    budgetUnit: ''
  },
  campaignId: '',
  displayName: '',
  entityStatus: '',
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  insertionOrderId: '',
  insertionOrderType: '',
  integrationDetails: {
    details: '',
    integrationCode: ''
  },
  name: '',
  pacing: {
    dailyMaxImpressions: '',
    dailyMaxMicros: '',
    pacingPeriod: '',
    pacingType: ''
  },
  partnerCosts: [
    {
      costType: '',
      feeAmount: '',
      feePercentageMillis: '',
      feeType: '',
      invoiceType: ''
    }
  ],
  performanceGoal: {
    performanceGoalAmountMicros: '',
    performanceGoalPercentageMicros: '',
    performanceGoalString: '',
    performanceGoalType: ''
  },
  reservationType: '',
  updateTime: ''
});

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}}/v2/advertisers/:advertiserId/insertionOrders',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {bidAmountMicros: ''},
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    billableOutcome: '',
    budget: {
      automationType: '',
      budgetSegments: [
        {
          budgetAmountMicros: '',
          campaignBudgetId: '',
          dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
          description: ''
        }
      ],
      budgetUnit: ''
    },
    campaignId: '',
    displayName: '',
    entityStatus: '',
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    insertionOrderType: '',
    integrationDetails: {details: '', integrationCode: ''},
    name: '',
    pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    performanceGoal: {
      performanceGoalAmountMicros: '',
      performanceGoalPercentageMicros: '',
      performanceGoalString: '',
      performanceGoalType: ''
    },
    reservationType: '',
    updateTime: ''
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","bidStrategy":{"fixedBid":{"bidAmountMicros":""},"maximizeSpendAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalType":"","raiseBidForDeals":false},"performanceGoalAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalAmountMicros":"","performanceGoalType":""}},"billableOutcome":"","budget":{"automationType":"","budgetSegments":[{"budgetAmountMicros":"","campaignBudgetId":"","dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"description":""}],"budgetUnit":""},"campaignId":"","displayName":"","entityStatus":"","frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"insertionOrderId":"","insertionOrderType":"","integrationDetails":{"details":"","integrationCode":""},"name":"","pacing":{"dailyMaxImpressions":"","dailyMaxMicros":"","pacingPeriod":"","pacingType":""},"partnerCosts":[{"costType":"","feeAmount":"","feePercentageMillis":"","feeType":"","invoiceType":""}],"performanceGoal":{"performanceGoalAmountMicros":"","performanceGoalPercentageMicros":"","performanceGoalString":"","performanceGoalType":""},"reservationType":"","updateTime":""}'
};

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 = @{ @"advertiserId": @"",
                              @"bidStrategy": @{ @"fixedBid": @{ @"bidAmountMicros": @"" }, @"maximizeSpendAutoBid": @{ @"customBiddingAlgorithmId": @"", @"maxAverageCpmBidAmountMicros": @"", @"performanceGoalType": @"", @"raiseBidForDeals": @NO }, @"performanceGoalAutoBid": @{ @"customBiddingAlgorithmId": @"", @"maxAverageCpmBidAmountMicros": @"", @"performanceGoalAmountMicros": @"", @"performanceGoalType": @"" } },
                              @"billableOutcome": @"",
                              @"budget": @{ @"automationType": @"", @"budgetSegments": @[ @{ @"budgetAmountMicros": @"", @"campaignBudgetId": @"", @"dateRange": @{ @"endDate": @{ @"day": @0, @"month": @0, @"year": @0 }, @"startDate": @{  } }, @"description": @"" } ], @"budgetUnit": @"" },
                              @"campaignId": @"",
                              @"displayName": @"",
                              @"entityStatus": @"",
                              @"frequencyCap": @{ @"maxImpressions": @0, @"maxViews": @0, @"timeUnit": @"", @"timeUnitCount": @0, @"unlimited": @NO },
                              @"insertionOrderId": @"",
                              @"insertionOrderType": @"",
                              @"integrationDetails": @{ @"details": @"", @"integrationCode": @"" },
                              @"name": @"",
                              @"pacing": @{ @"dailyMaxImpressions": @"", @"dailyMaxMicros": @"", @"pacingPeriod": @"", @"pacingType": @"" },
                              @"partnerCosts": @[ @{ @"costType": @"", @"feeAmount": @"", @"feePercentageMillis": @"", @"feeType": @"", @"invoiceType": @"" } ],
                              @"performanceGoal": @{ @"performanceGoalAmountMicros": @"", @"performanceGoalPercentageMicros": @"", @"performanceGoalString": @"", @"performanceGoalType": @"" },
                              @"reservationType": @"",
                              @"updateTime": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders"]
                                                       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}}/v2/advertisers/:advertiserId/insertionOrders" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders",
  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([
    'advertiserId' => '',
    'bidStrategy' => [
        'fixedBid' => [
                'bidAmountMicros' => ''
        ],
        'maximizeSpendAutoBid' => [
                'customBiddingAlgorithmId' => '',
                'maxAverageCpmBidAmountMicros' => '',
                'performanceGoalType' => '',
                'raiseBidForDeals' => null
        ],
        'performanceGoalAutoBid' => [
                'customBiddingAlgorithmId' => '',
                'maxAverageCpmBidAmountMicros' => '',
                'performanceGoalAmountMicros' => '',
                'performanceGoalType' => ''
        ]
    ],
    'billableOutcome' => '',
    'budget' => [
        'automationType' => '',
        'budgetSegments' => [
                [
                                'budgetAmountMicros' => '',
                                'campaignBudgetId' => '',
                                'dateRange' => [
                                                                'endDate' => [
                                                                                                                                'day' => 0,
                                                                                                                                'month' => 0,
                                                                                                                                'year' => 0
                                                                ],
                                                                'startDate' => [
                                                                                                                                
                                                                ]
                                ],
                                'description' => ''
                ]
        ],
        'budgetUnit' => ''
    ],
    'campaignId' => '',
    'displayName' => '',
    'entityStatus' => '',
    'frequencyCap' => [
        'maxImpressions' => 0,
        'maxViews' => 0,
        'timeUnit' => '',
        'timeUnitCount' => 0,
        'unlimited' => null
    ],
    'insertionOrderId' => '',
    'insertionOrderType' => '',
    'integrationDetails' => [
        'details' => '',
        'integrationCode' => ''
    ],
    'name' => '',
    'pacing' => [
        'dailyMaxImpressions' => '',
        'dailyMaxMicros' => '',
        'pacingPeriod' => '',
        'pacingType' => ''
    ],
    'partnerCosts' => [
        [
                'costType' => '',
                'feeAmount' => '',
                'feePercentageMillis' => '',
                'feeType' => '',
                'invoiceType' => ''
        ]
    ],
    'performanceGoal' => [
        'performanceGoalAmountMicros' => '',
        'performanceGoalPercentageMicros' => '',
        'performanceGoalString' => '',
        'performanceGoalType' => ''
    ],
    'reservationType' => '',
    'updateTime' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/insertionOrders', [
  'body' => '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'bidStrategy' => [
    'fixedBid' => [
        'bidAmountMicros' => ''
    ],
    'maximizeSpendAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalType' => '',
        'raiseBidForDeals' => null
    ],
    'performanceGoalAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalAmountMicros' => '',
        'performanceGoalType' => ''
    ]
  ],
  'billableOutcome' => '',
  'budget' => [
    'automationType' => '',
    'budgetSegments' => [
        [
                'budgetAmountMicros' => '',
                'campaignBudgetId' => '',
                'dateRange' => [
                                'endDate' => [
                                                                'day' => 0,
                                                                'month' => 0,
                                                                'year' => 0
                                ],
                                'startDate' => [
                                                                
                                ]
                ],
                'description' => ''
        ]
    ],
    'budgetUnit' => ''
  ],
  'campaignId' => '',
  'displayName' => '',
  'entityStatus' => '',
  'frequencyCap' => [
    'maxImpressions' => 0,
    'maxViews' => 0,
    'timeUnit' => '',
    'timeUnitCount' => 0,
    'unlimited' => null
  ],
  'insertionOrderId' => '',
  'insertionOrderType' => '',
  'integrationDetails' => [
    'details' => '',
    'integrationCode' => ''
  ],
  'name' => '',
  'pacing' => [
    'dailyMaxImpressions' => '',
    'dailyMaxMicros' => '',
    'pacingPeriod' => '',
    'pacingType' => ''
  ],
  'partnerCosts' => [
    [
        'costType' => '',
        'feeAmount' => '',
        'feePercentageMillis' => '',
        'feeType' => '',
        'invoiceType' => ''
    ]
  ],
  'performanceGoal' => [
    'performanceGoalAmountMicros' => '',
    'performanceGoalPercentageMicros' => '',
    'performanceGoalString' => '',
    'performanceGoalType' => ''
  ],
  'reservationType' => '',
  'updateTime' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'bidStrategy' => [
    'fixedBid' => [
        'bidAmountMicros' => ''
    ],
    'maximizeSpendAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalType' => '',
        'raiseBidForDeals' => null
    ],
    'performanceGoalAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalAmountMicros' => '',
        'performanceGoalType' => ''
    ]
  ],
  'billableOutcome' => '',
  'budget' => [
    'automationType' => '',
    'budgetSegments' => [
        [
                'budgetAmountMicros' => '',
                'campaignBudgetId' => '',
                'dateRange' => [
                                'endDate' => [
                                                                'day' => 0,
                                                                'month' => 0,
                                                                'year' => 0
                                ],
                                'startDate' => [
                                                                
                                ]
                ],
                'description' => ''
        ]
    ],
    'budgetUnit' => ''
  ],
  'campaignId' => '',
  'displayName' => '',
  'entityStatus' => '',
  'frequencyCap' => [
    'maxImpressions' => 0,
    'maxViews' => 0,
    'timeUnit' => '',
    'timeUnitCount' => 0,
    'unlimited' => null
  ],
  'insertionOrderId' => '',
  'insertionOrderType' => '',
  'integrationDetails' => [
    'details' => '',
    'integrationCode' => ''
  ],
  'name' => '',
  'pacing' => [
    'dailyMaxImpressions' => '',
    'dailyMaxMicros' => '',
    'pacingPeriod' => '',
    'pacingType' => ''
  ],
  'partnerCosts' => [
    [
        'costType' => '',
        'feeAmount' => '',
        'feePercentageMillis' => '',
        'feeType' => '',
        'invoiceType' => ''
    ]
  ],
  'performanceGoal' => [
    'performanceGoalAmountMicros' => '',
    'performanceGoalPercentageMicros' => '',
    'performanceGoalString' => '',
    'performanceGoalType' => ''
  ],
  'reservationType' => '',
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders');
$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}}/v2/advertisers/:advertiserId/insertionOrders' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}'
import http.client

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

payload = "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/insertionOrders", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders"

payload = {
    "advertiserId": "",
    "bidStrategy": {
        "fixedBid": { "bidAmountMicros": "" },
        "maximizeSpendAutoBid": {
            "customBiddingAlgorithmId": "",
            "maxAverageCpmBidAmountMicros": "",
            "performanceGoalType": "",
            "raiseBidForDeals": False
        },
        "performanceGoalAutoBid": {
            "customBiddingAlgorithmId": "",
            "maxAverageCpmBidAmountMicros": "",
            "performanceGoalAmountMicros": "",
            "performanceGoalType": ""
        }
    },
    "billableOutcome": "",
    "budget": {
        "automationType": "",
        "budgetSegments": [
            {
                "budgetAmountMicros": "",
                "campaignBudgetId": "",
                "dateRange": {
                    "endDate": {
                        "day": 0,
                        "month": 0,
                        "year": 0
                    },
                    "startDate": {}
                },
                "description": ""
            }
        ],
        "budgetUnit": ""
    },
    "campaignId": "",
    "displayName": "",
    "entityStatus": "",
    "frequencyCap": {
        "maxImpressions": 0,
        "maxViews": 0,
        "timeUnit": "",
        "timeUnitCount": 0,
        "unlimited": False
    },
    "insertionOrderId": "",
    "insertionOrderType": "",
    "integrationDetails": {
        "details": "",
        "integrationCode": ""
    },
    "name": "",
    "pacing": {
        "dailyMaxImpressions": "",
        "dailyMaxMicros": "",
        "pacingPeriod": "",
        "pacingType": ""
    },
    "partnerCosts": [
        {
            "costType": "",
            "feeAmount": "",
            "feePercentageMillis": "",
            "feeType": "",
            "invoiceType": ""
        }
    ],
    "performanceGoal": {
        "performanceGoalAmountMicros": "",
        "performanceGoalPercentageMicros": "",
        "performanceGoalString": "",
        "performanceGoalType": ""
    },
    "reservationType": "",
    "updateTime": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders"

payload <- "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId/insertionOrders")

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  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\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/v2/advertisers/:advertiserId/insertionOrders') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders";

    let payload = json!({
        "advertiserId": "",
        "bidStrategy": json!({
            "fixedBid": json!({"bidAmountMicros": ""}),
            "maximizeSpendAutoBid": json!({
                "customBiddingAlgorithmId": "",
                "maxAverageCpmBidAmountMicros": "",
                "performanceGoalType": "",
                "raiseBidForDeals": false
            }),
            "performanceGoalAutoBid": json!({
                "customBiddingAlgorithmId": "",
                "maxAverageCpmBidAmountMicros": "",
                "performanceGoalAmountMicros": "",
                "performanceGoalType": ""
            })
        }),
        "billableOutcome": "",
        "budget": json!({
            "automationType": "",
            "budgetSegments": (
                json!({
                    "budgetAmountMicros": "",
                    "campaignBudgetId": "",
                    "dateRange": json!({
                        "endDate": json!({
                            "day": 0,
                            "month": 0,
                            "year": 0
                        }),
                        "startDate": json!({})
                    }),
                    "description": ""
                })
            ),
            "budgetUnit": ""
        }),
        "campaignId": "",
        "displayName": "",
        "entityStatus": "",
        "frequencyCap": json!({
            "maxImpressions": 0,
            "maxViews": 0,
            "timeUnit": "",
            "timeUnitCount": 0,
            "unlimited": false
        }),
        "insertionOrderId": "",
        "insertionOrderType": "",
        "integrationDetails": json!({
            "details": "",
            "integrationCode": ""
        }),
        "name": "",
        "pacing": json!({
            "dailyMaxImpressions": "",
            "dailyMaxMicros": "",
            "pacingPeriod": "",
            "pacingType": ""
        }),
        "partnerCosts": (
            json!({
                "costType": "",
                "feeAmount": "",
                "feePercentageMillis": "",
                "feeType": "",
                "invoiceType": ""
            })
        ),
        "performanceGoal": json!({
            "performanceGoalAmountMicros": "",
            "performanceGoalPercentageMicros": "",
            "performanceGoalString": "",
            "performanceGoalType": ""
        }),
        "reservationType": "",
        "updateTime": ""
    });

    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}}/v2/advertisers/:advertiserId/insertionOrders \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}'
echo '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "bidStrategy": {\n    "fixedBid": {\n      "bidAmountMicros": ""\n    },\n    "maximizeSpendAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalType": "",\n      "raiseBidForDeals": false\n    },\n    "performanceGoalAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalAmountMicros": "",\n      "performanceGoalType": ""\n    }\n  },\n  "billableOutcome": "",\n  "budget": {\n    "automationType": "",\n    "budgetSegments": [\n      {\n        "budgetAmountMicros": "",\n        "campaignBudgetId": "",\n        "dateRange": {\n          "endDate": {\n            "day": 0,\n            "month": 0,\n            "year": 0\n          },\n          "startDate": {}\n        },\n        "description": ""\n      }\n    ],\n    "budgetUnit": ""\n  },\n  "campaignId": "",\n  "displayName": "",\n  "entityStatus": "",\n  "frequencyCap": {\n    "maxImpressions": 0,\n    "maxViews": 0,\n    "timeUnit": "",\n    "timeUnitCount": 0,\n    "unlimited": false\n  },\n  "insertionOrderId": "",\n  "insertionOrderType": "",\n  "integrationDetails": {\n    "details": "",\n    "integrationCode": ""\n  },\n  "name": "",\n  "pacing": {\n    "dailyMaxImpressions": "",\n    "dailyMaxMicros": "",\n    "pacingPeriod": "",\n    "pacingType": ""\n  },\n  "partnerCosts": [\n    {\n      "costType": "",\n      "feeAmount": "",\n      "feePercentageMillis": "",\n      "feeType": "",\n      "invoiceType": ""\n    }\n  ],\n  "performanceGoal": {\n    "performanceGoalAmountMicros": "",\n    "performanceGoalPercentageMicros": "",\n    "performanceGoalString": "",\n    "performanceGoalType": ""\n  },\n  "reservationType": "",\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "bidStrategy": [
    "fixedBid": ["bidAmountMicros": ""],
    "maximizeSpendAutoBid": [
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    ],
    "performanceGoalAutoBid": [
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    ]
  ],
  "billableOutcome": "",
  "budget": [
    "automationType": "",
    "budgetSegments": [
      [
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": [
          "endDate": [
            "day": 0,
            "month": 0,
            "year": 0
          ],
          "startDate": []
        ],
        "description": ""
      ]
    ],
    "budgetUnit": ""
  ],
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": [
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  ],
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": [
    "details": "",
    "integrationCode": ""
  ],
  "name": "",
  "pacing": [
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  ],
  "partnerCosts": [
    [
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    ]
  ],
  "performanceGoal": [
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  ],
  "reservationType": "",
  "updateTime": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders")! 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()
DELETE displayvideo.advertisers.insertionOrders.delete
{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId
QUERY PARAMS

advertiserId
insertionOrderId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId");

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

(client/delete "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"

	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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"))
    .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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
  .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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId';
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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId',
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId');

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId';
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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"]
                                                       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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId",
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")

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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId";

    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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId
http DELETE {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")! 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 displayvideo.advertisers.insertionOrders.get
{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId
QUERY PARAMS

advertiserId
insertionOrderId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"

	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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"))
    .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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
  .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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId';
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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId',
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId');

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId';
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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"]
                                                       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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")

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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId";

    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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId
http GET {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")! 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 displayvideo.advertisers.insertionOrders.list
{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders"

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}}/v2/advertisers/:advertiserId/insertionOrders"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders"

	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/v2/advertisers/:advertiserId/insertionOrders HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders"))
    .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}}/v2/advertisers/:advertiserId/insertionOrders")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders")
  .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}}/v2/advertisers/:advertiserId/insertionOrders');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders';
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}}/v2/advertisers/:advertiserId/insertionOrders',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/insertionOrders',
  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}}/v2/advertisers/:advertiserId/insertionOrders'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders');

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}}/v2/advertisers/:advertiserId/insertionOrders'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders';
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}}/v2/advertisers/:advertiserId/insertionOrders"]
                                                       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}}/v2/advertisers/:advertiserId/insertionOrders" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/insertionOrders")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders")

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/v2/advertisers/:advertiserId/insertionOrders') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders";

    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}}/v2/advertisers/:advertiserId/insertionOrders
http GET {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders")! 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 displayvideo.advertisers.insertionOrders.listAssignedTargetingOptions
{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions
QUERY PARAMS

advertiserId
insertionOrderId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions"

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions"

	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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions"))
    .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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions")
  .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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions',
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions');

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions",
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions")

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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions";

    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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions
http GET {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId:listAssignedTargetingOptions")! 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 displayvideo.advertisers.insertionOrders.patch
{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId
QUERY PARAMS

advertiserId
insertionOrderId
BODY json

{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId");

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  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}");

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

(client/patch "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId" {:content-type :json
                                                                                                            :form-params {:advertiserId ""
                                                                                                                          :bidStrategy {:fixedBid {:bidAmountMicros ""}
                                                                                                                                        :maximizeSpendAutoBid {:customBiddingAlgorithmId ""
                                                                                                                                                               :maxAverageCpmBidAmountMicros ""
                                                                                                                                                               :performanceGoalType ""
                                                                                                                                                               :raiseBidForDeals false}
                                                                                                                                        :performanceGoalAutoBid {:customBiddingAlgorithmId ""
                                                                                                                                                                 :maxAverageCpmBidAmountMicros ""
                                                                                                                                                                 :performanceGoalAmountMicros ""
                                                                                                                                                                 :performanceGoalType ""}}
                                                                                                                          :billableOutcome ""
                                                                                                                          :budget {:automationType ""
                                                                                                                                   :budgetSegments [{:budgetAmountMicros ""
                                                                                                                                                     :campaignBudgetId ""
                                                                                                                                                     :dateRange {:endDate {:day 0
                                                                                                                                                                           :month 0
                                                                                                                                                                           :year 0}
                                                                                                                                                                 :startDate {}}
                                                                                                                                                     :description ""}]
                                                                                                                                   :budgetUnit ""}
                                                                                                                          :campaignId ""
                                                                                                                          :displayName ""
                                                                                                                          :entityStatus ""
                                                                                                                          :frequencyCap {:maxImpressions 0
                                                                                                                                         :maxViews 0
                                                                                                                                         :timeUnit ""
                                                                                                                                         :timeUnitCount 0
                                                                                                                                         :unlimited false}
                                                                                                                          :insertionOrderId ""
                                                                                                                          :insertionOrderType ""
                                                                                                                          :integrationDetails {:details ""
                                                                                                                                               :integrationCode ""}
                                                                                                                          :name ""
                                                                                                                          :pacing {:dailyMaxImpressions ""
                                                                                                                                   :dailyMaxMicros ""
                                                                                                                                   :pacingPeriod ""
                                                                                                                                   :pacingType ""}
                                                                                                                          :partnerCosts [{:costType ""
                                                                                                                                          :feeAmount ""
                                                                                                                                          :feePercentageMillis ""
                                                                                                                                          :feeType ""
                                                                                                                                          :invoiceType ""}]
                                                                                                                          :performanceGoal {:performanceGoalAmountMicros ""
                                                                                                                                            :performanceGoalPercentageMicros ""
                                                                                                                                            :performanceGoalString ""
                                                                                                                                            :performanceGoalType ""}
                                                                                                                          :reservationType ""
                                                                                                                          :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1710

{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\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  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  bidStrategy: {
    fixedBid: {
      bidAmountMicros: ''
    },
    maximizeSpendAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalType: '',
      raiseBidForDeals: false
    },
    performanceGoalAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalAmountMicros: '',
      performanceGoalType: ''
    }
  },
  billableOutcome: '',
  budget: {
    automationType: '',
    budgetSegments: [
      {
        budgetAmountMicros: '',
        campaignBudgetId: '',
        dateRange: {
          endDate: {
            day: 0,
            month: 0,
            year: 0
          },
          startDate: {}
        },
        description: ''
      }
    ],
    budgetUnit: ''
  },
  campaignId: '',
  displayName: '',
  entityStatus: '',
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  insertionOrderId: '',
  insertionOrderType: '',
  integrationDetails: {
    details: '',
    integrationCode: ''
  },
  name: '',
  pacing: {
    dailyMaxImpressions: '',
    dailyMaxMicros: '',
    pacingPeriod: '',
    pacingType: ''
  },
  partnerCosts: [
    {
      costType: '',
      feeAmount: '',
      feePercentageMillis: '',
      feeType: '',
      invoiceType: ''
    }
  ],
  performanceGoal: {
    performanceGoalAmountMicros: '',
    performanceGoalPercentageMicros: '',
    performanceGoalString: '',
    performanceGoalType: ''
  },
  reservationType: '',
  updateTime: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {bidAmountMicros: ''},
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    billableOutcome: '',
    budget: {
      automationType: '',
      budgetSegments: [
        {
          budgetAmountMicros: '',
          campaignBudgetId: '',
          dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
          description: ''
        }
      ],
      budgetUnit: ''
    },
    campaignId: '',
    displayName: '',
    entityStatus: '',
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    insertionOrderType: '',
    integrationDetails: {details: '', integrationCode: ''},
    name: '',
    pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    performanceGoal: {
      performanceGoalAmountMicros: '',
      performanceGoalPercentageMicros: '',
      performanceGoalString: '',
      performanceGoalType: ''
    },
    reservationType: '',
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","bidStrategy":{"fixedBid":{"bidAmountMicros":""},"maximizeSpendAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalType":"","raiseBidForDeals":false},"performanceGoalAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalAmountMicros":"","performanceGoalType":""}},"billableOutcome":"","budget":{"automationType":"","budgetSegments":[{"budgetAmountMicros":"","campaignBudgetId":"","dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"description":""}],"budgetUnit":""},"campaignId":"","displayName":"","entityStatus":"","frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"insertionOrderId":"","insertionOrderType":"","integrationDetails":{"details":"","integrationCode":""},"name":"","pacing":{"dailyMaxImpressions":"","dailyMaxMicros":"","pacingPeriod":"","pacingType":""},"partnerCosts":[{"costType":"","feeAmount":"","feePercentageMillis":"","feeType":"","invoiceType":""}],"performanceGoal":{"performanceGoalAmountMicros":"","performanceGoalPercentageMicros":"","performanceGoalString":"","performanceGoalType":""},"reservationType":"","updateTime":""}'
};

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "bidStrategy": {\n    "fixedBid": {\n      "bidAmountMicros": ""\n    },\n    "maximizeSpendAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalType": "",\n      "raiseBidForDeals": false\n    },\n    "performanceGoalAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalAmountMicros": "",\n      "performanceGoalType": ""\n    }\n  },\n  "billableOutcome": "",\n  "budget": {\n    "automationType": "",\n    "budgetSegments": [\n      {\n        "budgetAmountMicros": "",\n        "campaignBudgetId": "",\n        "dateRange": {\n          "endDate": {\n            "day": 0,\n            "month": 0,\n            "year": 0\n          },\n          "startDate": {}\n        },\n        "description": ""\n      }\n    ],\n    "budgetUnit": ""\n  },\n  "campaignId": "",\n  "displayName": "",\n  "entityStatus": "",\n  "frequencyCap": {\n    "maxImpressions": 0,\n    "maxViews": 0,\n    "timeUnit": "",\n    "timeUnitCount": 0,\n    "unlimited": false\n  },\n  "insertionOrderId": "",\n  "insertionOrderType": "",\n  "integrationDetails": {\n    "details": "",\n    "integrationCode": ""\n  },\n  "name": "",\n  "pacing": {\n    "dailyMaxImpressions": "",\n    "dailyMaxMicros": "",\n    "pacingPeriod": "",\n    "pacingType": ""\n  },\n  "partnerCosts": [\n    {\n      "costType": "",\n      "feeAmount": "",\n      "feePercentageMillis": "",\n      "feeType": "",\n      "invoiceType": ""\n    }\n  ],\n  "performanceGoal": {\n    "performanceGoalAmountMicros": "",\n    "performanceGoalPercentageMicros": "",\n    "performanceGoalString": "",\n    "performanceGoalType": ""\n  },\n  "reservationType": "",\n  "updateTime": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")
  .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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId',
  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({
  advertiserId: '',
  bidStrategy: {
    fixedBid: {bidAmountMicros: ''},
    maximizeSpendAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalType: '',
      raiseBidForDeals: false
    },
    performanceGoalAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalAmountMicros: '',
      performanceGoalType: ''
    }
  },
  billableOutcome: '',
  budget: {
    automationType: '',
    budgetSegments: [
      {
        budgetAmountMicros: '',
        campaignBudgetId: '',
        dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
        description: ''
      }
    ],
    budgetUnit: ''
  },
  campaignId: '',
  displayName: '',
  entityStatus: '',
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  insertionOrderId: '',
  insertionOrderType: '',
  integrationDetails: {details: '', integrationCode: ''},
  name: '',
  pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
  partnerCosts: [
    {
      costType: '',
      feeAmount: '',
      feePercentageMillis: '',
      feeType: '',
      invoiceType: ''
    }
  ],
  performanceGoal: {
    performanceGoalAmountMicros: '',
    performanceGoalPercentageMicros: '',
    performanceGoalString: '',
    performanceGoalType: ''
  },
  reservationType: '',
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {bidAmountMicros: ''},
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    billableOutcome: '',
    budget: {
      automationType: '',
      budgetSegments: [
        {
          budgetAmountMicros: '',
          campaignBudgetId: '',
          dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
          description: ''
        }
      ],
      budgetUnit: ''
    },
    campaignId: '',
    displayName: '',
    entityStatus: '',
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    insertionOrderType: '',
    integrationDetails: {details: '', integrationCode: ''},
    name: '',
    pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    performanceGoal: {
      performanceGoalAmountMicros: '',
      performanceGoalPercentageMicros: '',
      performanceGoalString: '',
      performanceGoalType: ''
    },
    reservationType: '',
    updateTime: ''
  },
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId');

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

req.type('json');
req.send({
  advertiserId: '',
  bidStrategy: {
    fixedBid: {
      bidAmountMicros: ''
    },
    maximizeSpendAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalType: '',
      raiseBidForDeals: false
    },
    performanceGoalAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalAmountMicros: '',
      performanceGoalType: ''
    }
  },
  billableOutcome: '',
  budget: {
    automationType: '',
    budgetSegments: [
      {
        budgetAmountMicros: '',
        campaignBudgetId: '',
        dateRange: {
          endDate: {
            day: 0,
            month: 0,
            year: 0
          },
          startDate: {}
        },
        description: ''
      }
    ],
    budgetUnit: ''
  },
  campaignId: '',
  displayName: '',
  entityStatus: '',
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  insertionOrderId: '',
  insertionOrderType: '',
  integrationDetails: {
    details: '',
    integrationCode: ''
  },
  name: '',
  pacing: {
    dailyMaxImpressions: '',
    dailyMaxMicros: '',
    pacingPeriod: '',
    pacingType: ''
  },
  partnerCosts: [
    {
      costType: '',
      feeAmount: '',
      feePercentageMillis: '',
      feeType: '',
      invoiceType: ''
    }
  ],
  performanceGoal: {
    performanceGoalAmountMicros: '',
    performanceGoalPercentageMicros: '',
    performanceGoalString: '',
    performanceGoalType: ''
  },
  reservationType: '',
  updateTime: ''
});

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {bidAmountMicros: ''},
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    billableOutcome: '',
    budget: {
      automationType: '',
      budgetSegments: [
        {
          budgetAmountMicros: '',
          campaignBudgetId: '',
          dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
          description: ''
        }
      ],
      budgetUnit: ''
    },
    campaignId: '',
    displayName: '',
    entityStatus: '',
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    insertionOrderType: '',
    integrationDetails: {details: '', integrationCode: ''},
    name: '',
    pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    performanceGoal: {
      performanceGoalAmountMicros: '',
      performanceGoalPercentageMicros: '',
      performanceGoalString: '',
      performanceGoalType: ''
    },
    reservationType: '',
    updateTime: ''
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","bidStrategy":{"fixedBid":{"bidAmountMicros":""},"maximizeSpendAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalType":"","raiseBidForDeals":false},"performanceGoalAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalAmountMicros":"","performanceGoalType":""}},"billableOutcome":"","budget":{"automationType":"","budgetSegments":[{"budgetAmountMicros":"","campaignBudgetId":"","dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"description":""}],"budgetUnit":""},"campaignId":"","displayName":"","entityStatus":"","frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"insertionOrderId":"","insertionOrderType":"","integrationDetails":{"details":"","integrationCode":""},"name":"","pacing":{"dailyMaxImpressions":"","dailyMaxMicros":"","pacingPeriod":"","pacingType":""},"partnerCosts":[{"costType":"","feeAmount":"","feePercentageMillis":"","feeType":"","invoiceType":""}],"performanceGoal":{"performanceGoalAmountMicros":"","performanceGoalPercentageMicros":"","performanceGoalString":"","performanceGoalType":""},"reservationType":"","updateTime":""}'
};

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 = @{ @"advertiserId": @"",
                              @"bidStrategy": @{ @"fixedBid": @{ @"bidAmountMicros": @"" }, @"maximizeSpendAutoBid": @{ @"customBiddingAlgorithmId": @"", @"maxAverageCpmBidAmountMicros": @"", @"performanceGoalType": @"", @"raiseBidForDeals": @NO }, @"performanceGoalAutoBid": @{ @"customBiddingAlgorithmId": @"", @"maxAverageCpmBidAmountMicros": @"", @"performanceGoalAmountMicros": @"", @"performanceGoalType": @"" } },
                              @"billableOutcome": @"",
                              @"budget": @{ @"automationType": @"", @"budgetSegments": @[ @{ @"budgetAmountMicros": @"", @"campaignBudgetId": @"", @"dateRange": @{ @"endDate": @{ @"day": @0, @"month": @0, @"year": @0 }, @"startDate": @{  } }, @"description": @"" } ], @"budgetUnit": @"" },
                              @"campaignId": @"",
                              @"displayName": @"",
                              @"entityStatus": @"",
                              @"frequencyCap": @{ @"maxImpressions": @0, @"maxViews": @0, @"timeUnit": @"", @"timeUnitCount": @0, @"unlimited": @NO },
                              @"insertionOrderId": @"",
                              @"insertionOrderType": @"",
                              @"integrationDetails": @{ @"details": @"", @"integrationCode": @"" },
                              @"name": @"",
                              @"pacing": @{ @"dailyMaxImpressions": @"", @"dailyMaxMicros": @"", @"pacingPeriod": @"", @"pacingType": @"" },
                              @"partnerCosts": @[ @{ @"costType": @"", @"feeAmount": @"", @"feePercentageMillis": @"", @"feeType": @"", @"invoiceType": @"" } ],
                              @"performanceGoal": @{ @"performanceGoalAmountMicros": @"", @"performanceGoalPercentageMicros": @"", @"performanceGoalString": @"", @"performanceGoalType": @"" },
                              @"reservationType": @"",
                              @"updateTime": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"]
                                                       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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId",
  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([
    'advertiserId' => '',
    'bidStrategy' => [
        'fixedBid' => [
                'bidAmountMicros' => ''
        ],
        'maximizeSpendAutoBid' => [
                'customBiddingAlgorithmId' => '',
                'maxAverageCpmBidAmountMicros' => '',
                'performanceGoalType' => '',
                'raiseBidForDeals' => null
        ],
        'performanceGoalAutoBid' => [
                'customBiddingAlgorithmId' => '',
                'maxAverageCpmBidAmountMicros' => '',
                'performanceGoalAmountMicros' => '',
                'performanceGoalType' => ''
        ]
    ],
    'billableOutcome' => '',
    'budget' => [
        'automationType' => '',
        'budgetSegments' => [
                [
                                'budgetAmountMicros' => '',
                                'campaignBudgetId' => '',
                                'dateRange' => [
                                                                'endDate' => [
                                                                                                                                'day' => 0,
                                                                                                                                'month' => 0,
                                                                                                                                'year' => 0
                                                                ],
                                                                'startDate' => [
                                                                                                                                
                                                                ]
                                ],
                                'description' => ''
                ]
        ],
        'budgetUnit' => ''
    ],
    'campaignId' => '',
    'displayName' => '',
    'entityStatus' => '',
    'frequencyCap' => [
        'maxImpressions' => 0,
        'maxViews' => 0,
        'timeUnit' => '',
        'timeUnitCount' => 0,
        'unlimited' => null
    ],
    'insertionOrderId' => '',
    'insertionOrderType' => '',
    'integrationDetails' => [
        'details' => '',
        'integrationCode' => ''
    ],
    'name' => '',
    'pacing' => [
        'dailyMaxImpressions' => '',
        'dailyMaxMicros' => '',
        'pacingPeriod' => '',
        'pacingType' => ''
    ],
    'partnerCosts' => [
        [
                'costType' => '',
                'feeAmount' => '',
                'feePercentageMillis' => '',
                'feeType' => '',
                'invoiceType' => ''
        ]
    ],
    'performanceGoal' => [
        'performanceGoalAmountMicros' => '',
        'performanceGoalPercentageMicros' => '',
        'performanceGoalString' => '',
        'performanceGoalType' => ''
    ],
    'reservationType' => '',
    'updateTime' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId', [
  'body' => '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'bidStrategy' => [
    'fixedBid' => [
        'bidAmountMicros' => ''
    ],
    'maximizeSpendAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalType' => '',
        'raiseBidForDeals' => null
    ],
    'performanceGoalAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalAmountMicros' => '',
        'performanceGoalType' => ''
    ]
  ],
  'billableOutcome' => '',
  'budget' => [
    'automationType' => '',
    'budgetSegments' => [
        [
                'budgetAmountMicros' => '',
                'campaignBudgetId' => '',
                'dateRange' => [
                                'endDate' => [
                                                                'day' => 0,
                                                                'month' => 0,
                                                                'year' => 0
                                ],
                                'startDate' => [
                                                                
                                ]
                ],
                'description' => ''
        ]
    ],
    'budgetUnit' => ''
  ],
  'campaignId' => '',
  'displayName' => '',
  'entityStatus' => '',
  'frequencyCap' => [
    'maxImpressions' => 0,
    'maxViews' => 0,
    'timeUnit' => '',
    'timeUnitCount' => 0,
    'unlimited' => null
  ],
  'insertionOrderId' => '',
  'insertionOrderType' => '',
  'integrationDetails' => [
    'details' => '',
    'integrationCode' => ''
  ],
  'name' => '',
  'pacing' => [
    'dailyMaxImpressions' => '',
    'dailyMaxMicros' => '',
    'pacingPeriod' => '',
    'pacingType' => ''
  ],
  'partnerCosts' => [
    [
        'costType' => '',
        'feeAmount' => '',
        'feePercentageMillis' => '',
        'feeType' => '',
        'invoiceType' => ''
    ]
  ],
  'performanceGoal' => [
    'performanceGoalAmountMicros' => '',
    'performanceGoalPercentageMicros' => '',
    'performanceGoalString' => '',
    'performanceGoalType' => ''
  ],
  'reservationType' => '',
  'updateTime' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'bidStrategy' => [
    'fixedBid' => [
        'bidAmountMicros' => ''
    ],
    'maximizeSpendAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalType' => '',
        'raiseBidForDeals' => null
    ],
    'performanceGoalAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalAmountMicros' => '',
        'performanceGoalType' => ''
    ]
  ],
  'billableOutcome' => '',
  'budget' => [
    'automationType' => '',
    'budgetSegments' => [
        [
                'budgetAmountMicros' => '',
                'campaignBudgetId' => '',
                'dateRange' => [
                                'endDate' => [
                                                                'day' => 0,
                                                                'month' => 0,
                                                                'year' => 0
                                ],
                                'startDate' => [
                                                                
                                ]
                ],
                'description' => ''
        ]
    ],
    'budgetUnit' => ''
  ],
  'campaignId' => '',
  'displayName' => '',
  'entityStatus' => '',
  'frequencyCap' => [
    'maxImpressions' => 0,
    'maxViews' => 0,
    'timeUnit' => '',
    'timeUnitCount' => 0,
    'unlimited' => null
  ],
  'insertionOrderId' => '',
  'insertionOrderType' => '',
  'integrationDetails' => [
    'details' => '',
    'integrationCode' => ''
  ],
  'name' => '',
  'pacing' => [
    'dailyMaxImpressions' => '',
    'dailyMaxMicros' => '',
    'pacingPeriod' => '',
    'pacingType' => ''
  ],
  'partnerCosts' => [
    [
        'costType' => '',
        'feeAmount' => '',
        'feePercentageMillis' => '',
        'feeType' => '',
        'invoiceType' => ''
    ]
  ],
  'performanceGoal' => [
    'performanceGoalAmountMicros' => '',
    'performanceGoalPercentageMicros' => '',
    'performanceGoalString' => '',
    'performanceGoalType' => ''
  ],
  'reservationType' => '',
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId');
$request->setRequestMethod('PATCH');
$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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}'
import http.client

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

payload = "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"

payload = {
    "advertiserId": "",
    "bidStrategy": {
        "fixedBid": { "bidAmountMicros": "" },
        "maximizeSpendAutoBid": {
            "customBiddingAlgorithmId": "",
            "maxAverageCpmBidAmountMicros": "",
            "performanceGoalType": "",
            "raiseBidForDeals": False
        },
        "performanceGoalAutoBid": {
            "customBiddingAlgorithmId": "",
            "maxAverageCpmBidAmountMicros": "",
            "performanceGoalAmountMicros": "",
            "performanceGoalType": ""
        }
    },
    "billableOutcome": "",
    "budget": {
        "automationType": "",
        "budgetSegments": [
            {
                "budgetAmountMicros": "",
                "campaignBudgetId": "",
                "dateRange": {
                    "endDate": {
                        "day": 0,
                        "month": 0,
                        "year": 0
                    },
                    "startDate": {}
                },
                "description": ""
            }
        ],
        "budgetUnit": ""
    },
    "campaignId": "",
    "displayName": "",
    "entityStatus": "",
    "frequencyCap": {
        "maxImpressions": 0,
        "maxViews": 0,
        "timeUnit": "",
        "timeUnitCount": 0,
        "unlimited": False
    },
    "insertionOrderId": "",
    "insertionOrderType": "",
    "integrationDetails": {
        "details": "",
        "integrationCode": ""
    },
    "name": "",
    "pacing": {
        "dailyMaxImpressions": "",
        "dailyMaxMicros": "",
        "pacingPeriod": "",
        "pacingType": ""
    },
    "partnerCosts": [
        {
            "costType": "",
            "feeAmount": "",
            "feePercentageMillis": "",
            "feeType": "",
            "invoiceType": ""
        }
    ],
    "performanceGoal": {
        "performanceGoalAmountMicros": "",
        "performanceGoalPercentageMicros": "",
        "performanceGoalString": "",
        "performanceGoalType": ""
    },
    "reservationType": "",
    "updateTime": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId"

payload <- "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")

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  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"billableOutcome\": \"\",\n  \"budget\": {\n    \"automationType\": \"\",\n    \"budgetSegments\": [\n      {\n        \"budgetAmountMicros\": \"\",\n        \"campaignBudgetId\": \"\",\n        \"dateRange\": {\n          \"endDate\": {\n            \"day\": 0,\n            \"month\": 0,\n            \"year\": 0\n          },\n          \"startDate\": {}\n        },\n        \"description\": \"\"\n      }\n    ],\n    \"budgetUnit\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"insertionOrderType\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"performanceGoal\": {\n    \"performanceGoalAmountMicros\": \"\",\n    \"performanceGoalPercentageMicros\": \"\",\n    \"performanceGoalString\": \"\",\n    \"performanceGoalType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId";

    let payload = json!({
        "advertiserId": "",
        "bidStrategy": json!({
            "fixedBid": json!({"bidAmountMicros": ""}),
            "maximizeSpendAutoBid": json!({
                "customBiddingAlgorithmId": "",
                "maxAverageCpmBidAmountMicros": "",
                "performanceGoalType": "",
                "raiseBidForDeals": false
            }),
            "performanceGoalAutoBid": json!({
                "customBiddingAlgorithmId": "",
                "maxAverageCpmBidAmountMicros": "",
                "performanceGoalAmountMicros": "",
                "performanceGoalType": ""
            })
        }),
        "billableOutcome": "",
        "budget": json!({
            "automationType": "",
            "budgetSegments": (
                json!({
                    "budgetAmountMicros": "",
                    "campaignBudgetId": "",
                    "dateRange": json!({
                        "endDate": json!({
                            "day": 0,
                            "month": 0,
                            "year": 0
                        }),
                        "startDate": json!({})
                    }),
                    "description": ""
                })
            ),
            "budgetUnit": ""
        }),
        "campaignId": "",
        "displayName": "",
        "entityStatus": "",
        "frequencyCap": json!({
            "maxImpressions": 0,
            "maxViews": 0,
            "timeUnit": "",
            "timeUnitCount": 0,
            "unlimited": false
        }),
        "insertionOrderId": "",
        "insertionOrderType": "",
        "integrationDetails": json!({
            "details": "",
            "integrationCode": ""
        }),
        "name": "",
        "pacing": json!({
            "dailyMaxImpressions": "",
            "dailyMaxMicros": "",
            "pacingPeriod": "",
            "pacingType": ""
        }),
        "partnerCosts": (
            json!({
                "costType": "",
                "feeAmount": "",
                "feePercentageMillis": "",
                "feeType": "",
                "invoiceType": ""
            })
        ),
        "performanceGoal": json!({
            "performanceGoalAmountMicros": "",
            "performanceGoalPercentageMicros": "",
            "performanceGoalString": "",
            "performanceGoalType": ""
        }),
        "reservationType": "",
        "updateTime": ""
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}'
echo '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "billableOutcome": "",
  "budget": {
    "automationType": "",
    "budgetSegments": [
      {
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": {
          "endDate": {
            "day": 0,
            "month": 0,
            "year": 0
          },
          "startDate": {}
        },
        "description": ""
      }
    ],
    "budgetUnit": ""
  },
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "performanceGoal": {
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  },
  "reservationType": "",
  "updateTime": ""
}' |  \
  http PATCH {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "bidStrategy": {\n    "fixedBid": {\n      "bidAmountMicros": ""\n    },\n    "maximizeSpendAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalType": "",\n      "raiseBidForDeals": false\n    },\n    "performanceGoalAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalAmountMicros": "",\n      "performanceGoalType": ""\n    }\n  },\n  "billableOutcome": "",\n  "budget": {\n    "automationType": "",\n    "budgetSegments": [\n      {\n        "budgetAmountMicros": "",\n        "campaignBudgetId": "",\n        "dateRange": {\n          "endDate": {\n            "day": 0,\n            "month": 0,\n            "year": 0\n          },\n          "startDate": {}\n        },\n        "description": ""\n      }\n    ],\n    "budgetUnit": ""\n  },\n  "campaignId": "",\n  "displayName": "",\n  "entityStatus": "",\n  "frequencyCap": {\n    "maxImpressions": 0,\n    "maxViews": 0,\n    "timeUnit": "",\n    "timeUnitCount": 0,\n    "unlimited": false\n  },\n  "insertionOrderId": "",\n  "insertionOrderType": "",\n  "integrationDetails": {\n    "details": "",\n    "integrationCode": ""\n  },\n  "name": "",\n  "pacing": {\n    "dailyMaxImpressions": "",\n    "dailyMaxMicros": "",\n    "pacingPeriod": "",\n    "pacingType": ""\n  },\n  "partnerCosts": [\n    {\n      "costType": "",\n      "feeAmount": "",\n      "feePercentageMillis": "",\n      "feeType": "",\n      "invoiceType": ""\n    }\n  ],\n  "performanceGoal": {\n    "performanceGoalAmountMicros": "",\n    "performanceGoalPercentageMicros": "",\n    "performanceGoalString": "",\n    "performanceGoalType": ""\n  },\n  "reservationType": "",\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "bidStrategy": [
    "fixedBid": ["bidAmountMicros": ""],
    "maximizeSpendAutoBid": [
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    ],
    "performanceGoalAutoBid": [
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    ]
  ],
  "billableOutcome": "",
  "budget": [
    "automationType": "",
    "budgetSegments": [
      [
        "budgetAmountMicros": "",
        "campaignBudgetId": "",
        "dateRange": [
          "endDate": [
            "day": 0,
            "month": 0,
            "year": 0
          ],
          "startDate": []
        ],
        "description": ""
      ]
    ],
    "budgetUnit": ""
  ],
  "campaignId": "",
  "displayName": "",
  "entityStatus": "",
  "frequencyCap": [
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  ],
  "insertionOrderId": "",
  "insertionOrderType": "",
  "integrationDetails": [
    "details": "",
    "integrationCode": ""
  ],
  "name": "",
  "pacing": [
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  ],
  "partnerCosts": [
    [
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    ]
  ],
  "performanceGoal": [
    "performanceGoalAmountMicros": "",
    "performanceGoalPercentageMicros": "",
    "performanceGoalString": "",
    "performanceGoalType": ""
  ],
  "reservationType": "",
  "updateTime": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId")! 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()
POST displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.create
{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions
QUERY PARAMS

advertiserId
insertionOrderId
targetingType
BODY json

{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions");

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  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions" {:content-type :json
                                                                                                                                                                  :form-params {:ageRangeDetails {:ageRange ""}
                                                                                                                                                                                :appCategoryDetails {:displayName ""
                                                                                                                                                                                                     :negative false
                                                                                                                                                                                                     :targetingOptionId ""}
                                                                                                                                                                                :appDetails {:appId ""
                                                                                                                                                                                             :appPlatform ""
                                                                                                                                                                                             :displayName ""
                                                                                                                                                                                             :negative false}
                                                                                                                                                                                :assignedTargetingOptionId ""
                                                                                                                                                                                :assignedTargetingOptionIdAlias ""
                                                                                                                                                                                :audienceGroupDetails {:excludedFirstAndThirdPartyAudienceGroup {:settings [{:firstAndThirdPartyAudienceId ""
                                                                                                                                                                                                                                                             :recency ""}]}
                                                                                                                                                                                                       :excludedGoogleAudienceGroup {:settings [{:googleAudienceId ""}]}
                                                                                                                                                                                                       :includedCombinedAudienceGroup {:settings [{:combinedAudienceId ""}]}
                                                                                                                                                                                                       :includedCustomListGroup {:settings [{:customListId ""}]}
                                                                                                                                                                                                       :includedFirstAndThirdPartyAudienceGroups [{}]
                                                                                                                                                                                                       :includedGoogleAudienceGroup {}}
                                                                                                                                                                                :audioContentTypeDetails {:audioContentType ""}
                                                                                                                                                                                :authorizedSellerStatusDetails {:authorizedSellerStatus ""
                                                                                                                                                                                                                :targetingOptionId ""}
                                                                                                                                                                                :browserDetails {:displayName ""
                                                                                                                                                                                                 :negative false
                                                                                                                                                                                                 :targetingOptionId ""}
                                                                                                                                                                                :businessChainDetails {:displayName ""
                                                                                                                                                                                                       :proximityRadiusAmount ""
                                                                                                                                                                                                       :proximityRadiusUnit ""
                                                                                                                                                                                                       :targetingOptionId ""}
                                                                                                                                                                                :carrierAndIspDetails {:displayName ""
                                                                                                                                                                                                       :negative false
                                                                                                                                                                                                       :targetingOptionId ""}
                                                                                                                                                                                :categoryDetails {:displayName ""
                                                                                                                                                                                                  :negative false
                                                                                                                                                                                                  :targetingOptionId ""}
                                                                                                                                                                                :channelDetails {:channelId ""
                                                                                                                                                                                                 :negative false}
                                                                                                                                                                                :contentDurationDetails {:contentDuration ""
                                                                                                                                                                                                         :targetingOptionId ""}
                                                                                                                                                                                :contentGenreDetails {:displayName ""
                                                                                                                                                                                                      :negative false
                                                                                                                                                                                                      :targetingOptionId ""}
                                                                                                                                                                                :contentInstreamPositionDetails {:adType ""
                                                                                                                                                                                                                 :contentInstreamPosition ""}
                                                                                                                                                                                :contentOutstreamPositionDetails {:adType ""
                                                                                                                                                                                                                  :contentOutstreamPosition ""}
                                                                                                                                                                                :contentStreamTypeDetails {:contentStreamType ""
                                                                                                                                                                                                           :targetingOptionId ""}
                                                                                                                                                                                :dayAndTimeDetails {:dayOfWeek ""
                                                                                                                                                                                                    :endHour 0
                                                                                                                                                                                                    :startHour 0
                                                                                                                                                                                                    :timeZoneResolution ""}
                                                                                                                                                                                :deviceMakeModelDetails {:displayName ""
                                                                                                                                                                                                         :negative false
                                                                                                                                                                                                         :targetingOptionId ""}
                                                                                                                                                                                :deviceTypeDetails {:deviceType ""
                                                                                                                                                                                                    :youtubeAndPartnersBidMultiplier ""}
                                                                                                                                                                                :digitalContentLabelExclusionDetails {:excludedContentRatingTier ""}
                                                                                                                                                                                :environmentDetails {:environment ""}
                                                                                                                                                                                :exchangeDetails {:exchange ""}
                                                                                                                                                                                :genderDetails {:gender ""}
                                                                                                                                                                                :geoRegionDetails {:displayName ""
                                                                                                                                                                                                   :geoRegionType ""
                                                                                                                                                                                                   :negative false
                                                                                                                                                                                                   :targetingOptionId ""}
                                                                                                                                                                                :householdIncomeDetails {:householdIncome ""}
                                                                                                                                                                                :inheritance ""
                                                                                                                                                                                :inventorySourceDetails {:inventorySourceId ""}
                                                                                                                                                                                :inventorySourceGroupDetails {:inventorySourceGroupId ""}
                                                                                                                                                                                :keywordDetails {:keyword ""
                                                                                                                                                                                                 :negative false}
                                                                                                                                                                                :languageDetails {:displayName ""
                                                                                                                                                                                                  :negative false
                                                                                                                                                                                                  :targetingOptionId ""}
                                                                                                                                                                                :name ""
                                                                                                                                                                                :nativeContentPositionDetails {:contentPosition ""}
                                                                                                                                                                                :negativeKeywordListDetails {:negativeKeywordListId ""}
                                                                                                                                                                                :omidDetails {:omid ""}
                                                                                                                                                                                :onScreenPositionDetails {:adType ""
                                                                                                                                                                                                          :onScreenPosition ""
                                                                                                                                                                                                          :targetingOptionId ""}
                                                                                                                                                                                :operatingSystemDetails {:displayName ""
                                                                                                                                                                                                         :negative false
                                                                                                                                                                                                         :targetingOptionId ""}
                                                                                                                                                                                :parentalStatusDetails {:parentalStatus ""}
                                                                                                                                                                                :poiDetails {:displayName ""
                                                                                                                                                                                             :latitude ""
                                                                                                                                                                                             :longitude ""
                                                                                                                                                                                             :proximityRadiusAmount ""
                                                                                                                                                                                             :proximityRadiusUnit ""
                                                                                                                                                                                             :targetingOptionId ""}
                                                                                                                                                                                :proximityLocationListDetails {:proximityLocationListId ""
                                                                                                                                                                                                               :proximityRadius ""
                                                                                                                                                                                                               :proximityRadiusUnit ""}
                                                                                                                                                                                :regionalLocationListDetails {:negative false
                                                                                                                                                                                                              :regionalLocationListId ""}
                                                                                                                                                                                :sensitiveCategoryExclusionDetails {:excludedSensitiveCategory ""}
                                                                                                                                                                                :sessionPositionDetails {:sessionPosition ""}
                                                                                                                                                                                :subExchangeDetails {:targetingOptionId ""}
                                                                                                                                                                                :targetingType ""
                                                                                                                                                                                :thirdPartyVerifierDetails {:adloox {:excludedAdlooxCategories []}
                                                                                                                                                                                                            :doubleVerify {:appStarRating {:avoidInsufficientStarRating false
                                                                                                                                                                                                                                           :avoidedStarRating ""}
                                                                                                                                                                                                                           :avoidedAgeRatings []
                                                                                                                                                                                                                           :brandSafetyCategories {:avoidUnknownBrandSafetyCategory false
                                                                                                                                                                                                                                                   :avoidedHighSeverityCategories []
                                                                                                                                                                                                                                                   :avoidedMediumSeverityCategories []}
                                                                                                                                                                                                                           :customSegmentId ""
                                                                                                                                                                                                                           :displayViewability {:iab ""
                                                                                                                                                                                                                                                :viewableDuring ""}
                                                                                                                                                                                                                           :fraudInvalidTraffic {:avoidInsufficientOption false
                                                                                                                                                                                                                                                 :avoidedFraudOption ""}
                                                                                                                                                                                                                           :videoViewability {:playerImpressionRate ""
                                                                                                                                                                                                                                              :videoIab ""
                                                                                                                                                                                                                                              :videoViewableRate ""}}
                                                                                                                                                                                                            :integralAdScience {:customSegmentId []
                                                                                                                                                                                                                                :displayViewability ""
                                                                                                                                                                                                                                :excludeUnrateable false
                                                                                                                                                                                                                                :excludedAdFraudRisk ""
                                                                                                                                                                                                                                :excludedAdultRisk ""
                                                                                                                                                                                                                                :excludedAlcoholRisk ""
                                                                                                                                                                                                                                :excludedDrugsRisk ""
                                                                                                                                                                                                                                :excludedGamblingRisk ""
                                                                                                                                                                                                                                :excludedHateSpeechRisk ""
                                                                                                                                                                                                                                :excludedIllegalDownloadsRisk ""
                                                                                                                                                                                                                                :excludedOffensiveLanguageRisk ""
                                                                                                                                                                                                                                :excludedViolenceRisk ""
                                                                                                                                                                                                                                :traqScoreOption ""
                                                                                                                                                                                                                                :videoViewability ""}}
                                                                                                                                                                                :urlDetails {:negative false
                                                                                                                                                                                             :url ""}
                                                                                                                                                                                :userRewardedContentDetails {:targetingOptionId ""
                                                                                                                                                                                                             :userRewardedContent ""}
                                                                                                                                                                                :videoPlayerSizeDetails {:videoPlayerSize ""}
                                                                                                                                                                                :viewabilityDetails {:viewability ""}
                                                                                                                                                                                :youtubeChannelDetails {:channelId ""
                                                                                                                                                                                                        :negative false}
                                                                                                                                                                                :youtubeVideoDetails {:negative false
                                                                                                                                                                                                      :videoId ""}}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"),
    Content = new StringContent("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"

	payload := strings.NewReader("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 6099

{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")
  .header("content-type", "application/json")
  .body("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  ageRangeDetails: {
    ageRange: ''
  },
  appCategoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  appDetails: {
    appId: '',
    appPlatform: '',
    displayName: '',
    negative: false
  },
  assignedTargetingOptionId: '',
  assignedTargetingOptionIdAlias: '',
  audienceGroupDetails: {
    excludedFirstAndThirdPartyAudienceGroup: {
      settings: [
        {
          firstAndThirdPartyAudienceId: '',
          recency: ''
        }
      ]
    },
    excludedGoogleAudienceGroup: {
      settings: [
        {
          googleAudienceId: ''
        }
      ]
    },
    includedCombinedAudienceGroup: {
      settings: [
        {
          combinedAudienceId: ''
        }
      ]
    },
    includedCustomListGroup: {
      settings: [
        {
          customListId: ''
        }
      ]
    },
    includedFirstAndThirdPartyAudienceGroups: [
      {}
    ],
    includedGoogleAudienceGroup: {}
  },
  audioContentTypeDetails: {
    audioContentType: ''
  },
  authorizedSellerStatusDetails: {
    authorizedSellerStatus: '',
    targetingOptionId: ''
  },
  browserDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  businessChainDetails: {
    displayName: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  carrierAndIspDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  categoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  channelDetails: {
    channelId: '',
    negative: false
  },
  contentDurationDetails: {
    contentDuration: '',
    targetingOptionId: ''
  },
  contentGenreDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  contentInstreamPositionDetails: {
    adType: '',
    contentInstreamPosition: ''
  },
  contentOutstreamPositionDetails: {
    adType: '',
    contentOutstreamPosition: ''
  },
  contentStreamTypeDetails: {
    contentStreamType: '',
    targetingOptionId: ''
  },
  dayAndTimeDetails: {
    dayOfWeek: '',
    endHour: 0,
    startHour: 0,
    timeZoneResolution: ''
  },
  deviceMakeModelDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  deviceTypeDetails: {
    deviceType: '',
    youtubeAndPartnersBidMultiplier: ''
  },
  digitalContentLabelExclusionDetails: {
    excludedContentRatingTier: ''
  },
  environmentDetails: {
    environment: ''
  },
  exchangeDetails: {
    exchange: ''
  },
  genderDetails: {
    gender: ''
  },
  geoRegionDetails: {
    displayName: '',
    geoRegionType: '',
    negative: false,
    targetingOptionId: ''
  },
  householdIncomeDetails: {
    householdIncome: ''
  },
  inheritance: '',
  inventorySourceDetails: {
    inventorySourceId: ''
  },
  inventorySourceGroupDetails: {
    inventorySourceGroupId: ''
  },
  keywordDetails: {
    keyword: '',
    negative: false
  },
  languageDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  name: '',
  nativeContentPositionDetails: {
    contentPosition: ''
  },
  negativeKeywordListDetails: {
    negativeKeywordListId: ''
  },
  omidDetails: {
    omid: ''
  },
  onScreenPositionDetails: {
    adType: '',
    onScreenPosition: '',
    targetingOptionId: ''
  },
  operatingSystemDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  parentalStatusDetails: {
    parentalStatus: ''
  },
  poiDetails: {
    displayName: '',
    latitude: '',
    longitude: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  proximityLocationListDetails: {
    proximityLocationListId: '',
    proximityRadius: '',
    proximityRadiusUnit: ''
  },
  regionalLocationListDetails: {
    negative: false,
    regionalLocationListId: ''
  },
  sensitiveCategoryExclusionDetails: {
    excludedSensitiveCategory: ''
  },
  sessionPositionDetails: {
    sessionPosition: ''
  },
  subExchangeDetails: {
    targetingOptionId: ''
  },
  targetingType: '',
  thirdPartyVerifierDetails: {
    adloox: {
      excludedAdlooxCategories: []
    },
    doubleVerify: {
      appStarRating: {
        avoidInsufficientStarRating: false,
        avoidedStarRating: ''
      },
      avoidedAgeRatings: [],
      brandSafetyCategories: {
        avoidUnknownBrandSafetyCategory: false,
        avoidedHighSeverityCategories: [],
        avoidedMediumSeverityCategories: []
      },
      customSegmentId: '',
      displayViewability: {
        iab: '',
        viewableDuring: ''
      },
      fraudInvalidTraffic: {
        avoidInsufficientOption: false,
        avoidedFraudOption: ''
      },
      videoViewability: {
        playerImpressionRate: '',
        videoIab: '',
        videoViewableRate: ''
      }
    },
    integralAdScience: {
      customSegmentId: [],
      displayViewability: '',
      excludeUnrateable: false,
      excludedAdFraudRisk: '',
      excludedAdultRisk: '',
      excludedAlcoholRisk: '',
      excludedDrugsRisk: '',
      excludedGamblingRisk: '',
      excludedHateSpeechRisk: '',
      excludedIllegalDownloadsRisk: '',
      excludedOffensiveLanguageRisk: '',
      excludedViolenceRisk: '',
      traqScoreOption: '',
      videoViewability: ''
    }
  },
  urlDetails: {
    negative: false,
    url: ''
  },
  userRewardedContentDetails: {
    targetingOptionId: '',
    userRewardedContent: ''
  },
  videoPlayerSizeDetails: {
    videoPlayerSize: ''
  },
  viewabilityDetails: {
    viewability: ''
  },
  youtubeChannelDetails: {
    channelId: '',
    negative: false
  },
  youtubeVideoDetails: {
    negative: false,
    videoId: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    ageRangeDetails: {ageRange: ''},
    appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
    assignedTargetingOptionId: '',
    assignedTargetingOptionIdAlias: '',
    audienceGroupDetails: {
      excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
      excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
      includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
      includedCustomListGroup: {settings: [{customListId: ''}]},
      includedFirstAndThirdPartyAudienceGroups: [{}],
      includedGoogleAudienceGroup: {}
    },
    audioContentTypeDetails: {audioContentType: ''},
    authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
    browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
    businessChainDetails: {
      displayName: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
    categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    channelDetails: {channelId: '', negative: false},
    contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
    contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
    contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
    contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
    contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
    dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
    deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
    deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
    digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
    environmentDetails: {environment: ''},
    exchangeDetails: {exchange: ''},
    genderDetails: {gender: ''},
    geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
    householdIncomeDetails: {householdIncome: ''},
    inheritance: '',
    inventorySourceDetails: {inventorySourceId: ''},
    inventorySourceGroupDetails: {inventorySourceGroupId: ''},
    keywordDetails: {keyword: '', negative: false},
    languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
    name: '',
    nativeContentPositionDetails: {contentPosition: ''},
    negativeKeywordListDetails: {negativeKeywordListId: ''},
    omidDetails: {omid: ''},
    onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
    operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
    parentalStatusDetails: {parentalStatus: ''},
    poiDetails: {
      displayName: '',
      latitude: '',
      longitude: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
    regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
    sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
    sessionPositionDetails: {sessionPosition: ''},
    subExchangeDetails: {targetingOptionId: ''},
    targetingType: '',
    thirdPartyVerifierDetails: {
      adloox: {excludedAdlooxCategories: []},
      doubleVerify: {
        appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
        avoidedAgeRatings: [],
        brandSafetyCategories: {
          avoidUnknownBrandSafetyCategory: false,
          avoidedHighSeverityCategories: [],
          avoidedMediumSeverityCategories: []
        },
        customSegmentId: '',
        displayViewability: {iab: '', viewableDuring: ''},
        fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
        videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
      },
      integralAdScience: {
        customSegmentId: [],
        displayViewability: '',
        excludeUnrateable: false,
        excludedAdFraudRisk: '',
        excludedAdultRisk: '',
        excludedAlcoholRisk: '',
        excludedDrugsRisk: '',
        excludedGamblingRisk: '',
        excludedHateSpeechRisk: '',
        excludedIllegalDownloadsRisk: '',
        excludedOffensiveLanguageRisk: '',
        excludedViolenceRisk: '',
        traqScoreOption: '',
        videoViewability: ''
      }
    },
    urlDetails: {negative: false, url: ''},
    userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
    videoPlayerSizeDetails: {videoPlayerSize: ''},
    viewabilityDetails: {viewability: ''},
    youtubeChannelDetails: {channelId: '', negative: false},
    youtubeVideoDetails: {negative: false, videoId: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}'
};

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "ageRangeDetails": {\n    "ageRange": ""\n  },\n  "appCategoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "appDetails": {\n    "appId": "",\n    "appPlatform": "",\n    "displayName": "",\n    "negative": false\n  },\n  "assignedTargetingOptionId": "",\n  "assignedTargetingOptionIdAlias": "",\n  "audienceGroupDetails": {\n    "excludedFirstAndThirdPartyAudienceGroup": {\n      "settings": [\n        {\n          "firstAndThirdPartyAudienceId": "",\n          "recency": ""\n        }\n      ]\n    },\n    "excludedGoogleAudienceGroup": {\n      "settings": [\n        {\n          "googleAudienceId": ""\n        }\n      ]\n    },\n    "includedCombinedAudienceGroup": {\n      "settings": [\n        {\n          "combinedAudienceId": ""\n        }\n      ]\n    },\n    "includedCustomListGroup": {\n      "settings": [\n        {\n          "customListId": ""\n        }\n      ]\n    },\n    "includedFirstAndThirdPartyAudienceGroups": [\n      {}\n    ],\n    "includedGoogleAudienceGroup": {}\n  },\n  "audioContentTypeDetails": {\n    "audioContentType": ""\n  },\n  "authorizedSellerStatusDetails": {\n    "authorizedSellerStatus": "",\n    "targetingOptionId": ""\n  },\n  "browserDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "businessChainDetails": {\n    "displayName": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "carrierAndIspDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "categoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "channelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "contentDurationDetails": {\n    "contentDuration": "",\n    "targetingOptionId": ""\n  },\n  "contentGenreDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "contentInstreamPositionDetails": {\n    "adType": "",\n    "contentInstreamPosition": ""\n  },\n  "contentOutstreamPositionDetails": {\n    "adType": "",\n    "contentOutstreamPosition": ""\n  },\n  "contentStreamTypeDetails": {\n    "contentStreamType": "",\n    "targetingOptionId": ""\n  },\n  "dayAndTimeDetails": {\n    "dayOfWeek": "",\n    "endHour": 0,\n    "startHour": 0,\n    "timeZoneResolution": ""\n  },\n  "deviceMakeModelDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "deviceTypeDetails": {\n    "deviceType": "",\n    "youtubeAndPartnersBidMultiplier": ""\n  },\n  "digitalContentLabelExclusionDetails": {\n    "excludedContentRatingTier": ""\n  },\n  "environmentDetails": {\n    "environment": ""\n  },\n  "exchangeDetails": {\n    "exchange": ""\n  },\n  "genderDetails": {\n    "gender": ""\n  },\n  "geoRegionDetails": {\n    "displayName": "",\n    "geoRegionType": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "householdIncomeDetails": {\n    "householdIncome": ""\n  },\n  "inheritance": "",\n  "inventorySourceDetails": {\n    "inventorySourceId": ""\n  },\n  "inventorySourceGroupDetails": {\n    "inventorySourceGroupId": ""\n  },\n  "keywordDetails": {\n    "keyword": "",\n    "negative": false\n  },\n  "languageDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "name": "",\n  "nativeContentPositionDetails": {\n    "contentPosition": ""\n  },\n  "negativeKeywordListDetails": {\n    "negativeKeywordListId": ""\n  },\n  "omidDetails": {\n    "omid": ""\n  },\n  "onScreenPositionDetails": {\n    "adType": "",\n    "onScreenPosition": "",\n    "targetingOptionId": ""\n  },\n  "operatingSystemDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "parentalStatusDetails": {\n    "parentalStatus": ""\n  },\n  "poiDetails": {\n    "displayName": "",\n    "latitude": "",\n    "longitude": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "proximityLocationListDetails": {\n    "proximityLocationListId": "",\n    "proximityRadius": "",\n    "proximityRadiusUnit": ""\n  },\n  "regionalLocationListDetails": {\n    "negative": false,\n    "regionalLocationListId": ""\n  },\n  "sensitiveCategoryExclusionDetails": {\n    "excludedSensitiveCategory": ""\n  },\n  "sessionPositionDetails": {\n    "sessionPosition": ""\n  },\n  "subExchangeDetails": {\n    "targetingOptionId": ""\n  },\n  "targetingType": "",\n  "thirdPartyVerifierDetails": {\n    "adloox": {\n      "excludedAdlooxCategories": []\n    },\n    "doubleVerify": {\n      "appStarRating": {\n        "avoidInsufficientStarRating": false,\n        "avoidedStarRating": ""\n      },\n      "avoidedAgeRatings": [],\n      "brandSafetyCategories": {\n        "avoidUnknownBrandSafetyCategory": false,\n        "avoidedHighSeverityCategories": [],\n        "avoidedMediumSeverityCategories": []\n      },\n      "customSegmentId": "",\n      "displayViewability": {\n        "iab": "",\n        "viewableDuring": ""\n      },\n      "fraudInvalidTraffic": {\n        "avoidInsufficientOption": false,\n        "avoidedFraudOption": ""\n      },\n      "videoViewability": {\n        "playerImpressionRate": "",\n        "videoIab": "",\n        "videoViewableRate": ""\n      }\n    },\n    "integralAdScience": {\n      "customSegmentId": [],\n      "displayViewability": "",\n      "excludeUnrateable": false,\n      "excludedAdFraudRisk": "",\n      "excludedAdultRisk": "",\n      "excludedAlcoholRisk": "",\n      "excludedDrugsRisk": "",\n      "excludedGamblingRisk": "",\n      "excludedHateSpeechRisk": "",\n      "excludedIllegalDownloadsRisk": "",\n      "excludedOffensiveLanguageRisk": "",\n      "excludedViolenceRisk": "",\n      "traqScoreOption": "",\n      "videoViewability": ""\n    }\n  },\n  "urlDetails": {\n    "negative": false,\n    "url": ""\n  },\n  "userRewardedContentDetails": {\n    "targetingOptionId": "",\n    "userRewardedContent": ""\n  },\n  "videoPlayerSizeDetails": {\n    "videoPlayerSize": ""\n  },\n  "viewabilityDetails": {\n    "viewability": ""\n  },\n  "youtubeChannelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "youtubeVideoDetails": {\n    "negative": false,\n    "videoId": ""\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")
  .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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions',
  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({
  ageRangeDetails: {ageRange: ''},
  appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
  appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
  assignedTargetingOptionId: '',
  assignedTargetingOptionIdAlias: '',
  audienceGroupDetails: {
    excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
    excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
    includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
    includedCustomListGroup: {settings: [{customListId: ''}]},
    includedFirstAndThirdPartyAudienceGroups: [{}],
    includedGoogleAudienceGroup: {}
  },
  audioContentTypeDetails: {audioContentType: ''},
  authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
  browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
  businessChainDetails: {
    displayName: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
  categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
  channelDetails: {channelId: '', negative: false},
  contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
  contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
  contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
  contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
  contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
  dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
  deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
  deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
  digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
  environmentDetails: {environment: ''},
  exchangeDetails: {exchange: ''},
  genderDetails: {gender: ''},
  geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
  householdIncomeDetails: {householdIncome: ''},
  inheritance: '',
  inventorySourceDetails: {inventorySourceId: ''},
  inventorySourceGroupDetails: {inventorySourceGroupId: ''},
  keywordDetails: {keyword: '', negative: false},
  languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
  name: '',
  nativeContentPositionDetails: {contentPosition: ''},
  negativeKeywordListDetails: {negativeKeywordListId: ''},
  omidDetails: {omid: ''},
  onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
  operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
  parentalStatusDetails: {parentalStatus: ''},
  poiDetails: {
    displayName: '',
    latitude: '',
    longitude: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
  regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
  sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
  sessionPositionDetails: {sessionPosition: ''},
  subExchangeDetails: {targetingOptionId: ''},
  targetingType: '',
  thirdPartyVerifierDetails: {
    adloox: {excludedAdlooxCategories: []},
    doubleVerify: {
      appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
      avoidedAgeRatings: [],
      brandSafetyCategories: {
        avoidUnknownBrandSafetyCategory: false,
        avoidedHighSeverityCategories: [],
        avoidedMediumSeverityCategories: []
      },
      customSegmentId: '',
      displayViewability: {iab: '', viewableDuring: ''},
      fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
      videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
    },
    integralAdScience: {
      customSegmentId: [],
      displayViewability: '',
      excludeUnrateable: false,
      excludedAdFraudRisk: '',
      excludedAdultRisk: '',
      excludedAlcoholRisk: '',
      excludedDrugsRisk: '',
      excludedGamblingRisk: '',
      excludedHateSpeechRisk: '',
      excludedIllegalDownloadsRisk: '',
      excludedOffensiveLanguageRisk: '',
      excludedViolenceRisk: '',
      traqScoreOption: '',
      videoViewability: ''
    }
  },
  urlDetails: {negative: false, url: ''},
  userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
  videoPlayerSizeDetails: {videoPlayerSize: ''},
  viewabilityDetails: {viewability: ''},
  youtubeChannelDetails: {channelId: '', negative: false},
  youtubeVideoDetails: {negative: false, videoId: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  body: {
    ageRangeDetails: {ageRange: ''},
    appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
    assignedTargetingOptionId: '',
    assignedTargetingOptionIdAlias: '',
    audienceGroupDetails: {
      excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
      excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
      includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
      includedCustomListGroup: {settings: [{customListId: ''}]},
      includedFirstAndThirdPartyAudienceGroups: [{}],
      includedGoogleAudienceGroup: {}
    },
    audioContentTypeDetails: {audioContentType: ''},
    authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
    browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
    businessChainDetails: {
      displayName: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
    categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    channelDetails: {channelId: '', negative: false},
    contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
    contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
    contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
    contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
    contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
    dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
    deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
    deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
    digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
    environmentDetails: {environment: ''},
    exchangeDetails: {exchange: ''},
    genderDetails: {gender: ''},
    geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
    householdIncomeDetails: {householdIncome: ''},
    inheritance: '',
    inventorySourceDetails: {inventorySourceId: ''},
    inventorySourceGroupDetails: {inventorySourceGroupId: ''},
    keywordDetails: {keyword: '', negative: false},
    languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
    name: '',
    nativeContentPositionDetails: {contentPosition: ''},
    negativeKeywordListDetails: {negativeKeywordListId: ''},
    omidDetails: {omid: ''},
    onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
    operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
    parentalStatusDetails: {parentalStatus: ''},
    poiDetails: {
      displayName: '',
      latitude: '',
      longitude: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
    regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
    sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
    sessionPositionDetails: {sessionPosition: ''},
    subExchangeDetails: {targetingOptionId: ''},
    targetingType: '',
    thirdPartyVerifierDetails: {
      adloox: {excludedAdlooxCategories: []},
      doubleVerify: {
        appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
        avoidedAgeRatings: [],
        brandSafetyCategories: {
          avoidUnknownBrandSafetyCategory: false,
          avoidedHighSeverityCategories: [],
          avoidedMediumSeverityCategories: []
        },
        customSegmentId: '',
        displayViewability: {iab: '', viewableDuring: ''},
        fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
        videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
      },
      integralAdScience: {
        customSegmentId: [],
        displayViewability: '',
        excludeUnrateable: false,
        excludedAdFraudRisk: '',
        excludedAdultRisk: '',
        excludedAlcoholRisk: '',
        excludedDrugsRisk: '',
        excludedGamblingRisk: '',
        excludedHateSpeechRisk: '',
        excludedIllegalDownloadsRisk: '',
        excludedOffensiveLanguageRisk: '',
        excludedViolenceRisk: '',
        traqScoreOption: '',
        videoViewability: ''
      }
    },
    urlDetails: {negative: false, url: ''},
    userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
    videoPlayerSizeDetails: {videoPlayerSize: ''},
    viewabilityDetails: {viewability: ''},
    youtubeChannelDetails: {channelId: '', negative: false},
    youtubeVideoDetails: {negative: false, videoId: ''}
  },
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions');

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

req.type('json');
req.send({
  ageRangeDetails: {
    ageRange: ''
  },
  appCategoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  appDetails: {
    appId: '',
    appPlatform: '',
    displayName: '',
    negative: false
  },
  assignedTargetingOptionId: '',
  assignedTargetingOptionIdAlias: '',
  audienceGroupDetails: {
    excludedFirstAndThirdPartyAudienceGroup: {
      settings: [
        {
          firstAndThirdPartyAudienceId: '',
          recency: ''
        }
      ]
    },
    excludedGoogleAudienceGroup: {
      settings: [
        {
          googleAudienceId: ''
        }
      ]
    },
    includedCombinedAudienceGroup: {
      settings: [
        {
          combinedAudienceId: ''
        }
      ]
    },
    includedCustomListGroup: {
      settings: [
        {
          customListId: ''
        }
      ]
    },
    includedFirstAndThirdPartyAudienceGroups: [
      {}
    ],
    includedGoogleAudienceGroup: {}
  },
  audioContentTypeDetails: {
    audioContentType: ''
  },
  authorizedSellerStatusDetails: {
    authorizedSellerStatus: '',
    targetingOptionId: ''
  },
  browserDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  businessChainDetails: {
    displayName: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  carrierAndIspDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  categoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  channelDetails: {
    channelId: '',
    negative: false
  },
  contentDurationDetails: {
    contentDuration: '',
    targetingOptionId: ''
  },
  contentGenreDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  contentInstreamPositionDetails: {
    adType: '',
    contentInstreamPosition: ''
  },
  contentOutstreamPositionDetails: {
    adType: '',
    contentOutstreamPosition: ''
  },
  contentStreamTypeDetails: {
    contentStreamType: '',
    targetingOptionId: ''
  },
  dayAndTimeDetails: {
    dayOfWeek: '',
    endHour: 0,
    startHour: 0,
    timeZoneResolution: ''
  },
  deviceMakeModelDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  deviceTypeDetails: {
    deviceType: '',
    youtubeAndPartnersBidMultiplier: ''
  },
  digitalContentLabelExclusionDetails: {
    excludedContentRatingTier: ''
  },
  environmentDetails: {
    environment: ''
  },
  exchangeDetails: {
    exchange: ''
  },
  genderDetails: {
    gender: ''
  },
  geoRegionDetails: {
    displayName: '',
    geoRegionType: '',
    negative: false,
    targetingOptionId: ''
  },
  householdIncomeDetails: {
    householdIncome: ''
  },
  inheritance: '',
  inventorySourceDetails: {
    inventorySourceId: ''
  },
  inventorySourceGroupDetails: {
    inventorySourceGroupId: ''
  },
  keywordDetails: {
    keyword: '',
    negative: false
  },
  languageDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  name: '',
  nativeContentPositionDetails: {
    contentPosition: ''
  },
  negativeKeywordListDetails: {
    negativeKeywordListId: ''
  },
  omidDetails: {
    omid: ''
  },
  onScreenPositionDetails: {
    adType: '',
    onScreenPosition: '',
    targetingOptionId: ''
  },
  operatingSystemDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  parentalStatusDetails: {
    parentalStatus: ''
  },
  poiDetails: {
    displayName: '',
    latitude: '',
    longitude: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  proximityLocationListDetails: {
    proximityLocationListId: '',
    proximityRadius: '',
    proximityRadiusUnit: ''
  },
  regionalLocationListDetails: {
    negative: false,
    regionalLocationListId: ''
  },
  sensitiveCategoryExclusionDetails: {
    excludedSensitiveCategory: ''
  },
  sessionPositionDetails: {
    sessionPosition: ''
  },
  subExchangeDetails: {
    targetingOptionId: ''
  },
  targetingType: '',
  thirdPartyVerifierDetails: {
    adloox: {
      excludedAdlooxCategories: []
    },
    doubleVerify: {
      appStarRating: {
        avoidInsufficientStarRating: false,
        avoidedStarRating: ''
      },
      avoidedAgeRatings: [],
      brandSafetyCategories: {
        avoidUnknownBrandSafetyCategory: false,
        avoidedHighSeverityCategories: [],
        avoidedMediumSeverityCategories: []
      },
      customSegmentId: '',
      displayViewability: {
        iab: '',
        viewableDuring: ''
      },
      fraudInvalidTraffic: {
        avoidInsufficientOption: false,
        avoidedFraudOption: ''
      },
      videoViewability: {
        playerImpressionRate: '',
        videoIab: '',
        videoViewableRate: ''
      }
    },
    integralAdScience: {
      customSegmentId: [],
      displayViewability: '',
      excludeUnrateable: false,
      excludedAdFraudRisk: '',
      excludedAdultRisk: '',
      excludedAlcoholRisk: '',
      excludedDrugsRisk: '',
      excludedGamblingRisk: '',
      excludedHateSpeechRisk: '',
      excludedIllegalDownloadsRisk: '',
      excludedOffensiveLanguageRisk: '',
      excludedViolenceRisk: '',
      traqScoreOption: '',
      videoViewability: ''
    }
  },
  urlDetails: {
    negative: false,
    url: ''
  },
  userRewardedContentDetails: {
    targetingOptionId: '',
    userRewardedContent: ''
  },
  videoPlayerSizeDetails: {
    videoPlayerSize: ''
  },
  viewabilityDetails: {
    viewability: ''
  },
  youtubeChannelDetails: {
    channelId: '',
    negative: false
  },
  youtubeVideoDetails: {
    negative: false,
    videoId: ''
  }
});

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    ageRangeDetails: {ageRange: ''},
    appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
    assignedTargetingOptionId: '',
    assignedTargetingOptionIdAlias: '',
    audienceGroupDetails: {
      excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
      excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
      includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
      includedCustomListGroup: {settings: [{customListId: ''}]},
      includedFirstAndThirdPartyAudienceGroups: [{}],
      includedGoogleAudienceGroup: {}
    },
    audioContentTypeDetails: {audioContentType: ''},
    authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
    browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
    businessChainDetails: {
      displayName: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
    categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    channelDetails: {channelId: '', negative: false},
    contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
    contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
    contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
    contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
    contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
    dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
    deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
    deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
    digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
    environmentDetails: {environment: ''},
    exchangeDetails: {exchange: ''},
    genderDetails: {gender: ''},
    geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
    householdIncomeDetails: {householdIncome: ''},
    inheritance: '',
    inventorySourceDetails: {inventorySourceId: ''},
    inventorySourceGroupDetails: {inventorySourceGroupId: ''},
    keywordDetails: {keyword: '', negative: false},
    languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
    name: '',
    nativeContentPositionDetails: {contentPosition: ''},
    negativeKeywordListDetails: {negativeKeywordListId: ''},
    omidDetails: {omid: ''},
    onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
    operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
    parentalStatusDetails: {parentalStatus: ''},
    poiDetails: {
      displayName: '',
      latitude: '',
      longitude: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
    regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
    sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
    sessionPositionDetails: {sessionPosition: ''},
    subExchangeDetails: {targetingOptionId: ''},
    targetingType: '',
    thirdPartyVerifierDetails: {
      adloox: {excludedAdlooxCategories: []},
      doubleVerify: {
        appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
        avoidedAgeRatings: [],
        brandSafetyCategories: {
          avoidUnknownBrandSafetyCategory: false,
          avoidedHighSeverityCategories: [],
          avoidedMediumSeverityCategories: []
        },
        customSegmentId: '',
        displayViewability: {iab: '', viewableDuring: ''},
        fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
        videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
      },
      integralAdScience: {
        customSegmentId: [],
        displayViewability: '',
        excludeUnrateable: false,
        excludedAdFraudRisk: '',
        excludedAdultRisk: '',
        excludedAlcoholRisk: '',
        excludedDrugsRisk: '',
        excludedGamblingRisk: '',
        excludedHateSpeechRisk: '',
        excludedIllegalDownloadsRisk: '',
        excludedOffensiveLanguageRisk: '',
        excludedViolenceRisk: '',
        traqScoreOption: '',
        videoViewability: ''
      }
    },
    urlDetails: {negative: false, url: ''},
    userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
    videoPlayerSizeDetails: {videoPlayerSize: ''},
    viewabilityDetails: {viewability: ''},
    youtubeChannelDetails: {channelId: '', negative: false},
    youtubeVideoDetails: {negative: false, videoId: ''}
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}'
};

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 = @{ @"ageRangeDetails": @{ @"ageRange": @"" },
                              @"appCategoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"appDetails": @{ @"appId": @"", @"appPlatform": @"", @"displayName": @"", @"negative": @NO },
                              @"assignedTargetingOptionId": @"",
                              @"assignedTargetingOptionIdAlias": @"",
                              @"audienceGroupDetails": @{ @"excludedFirstAndThirdPartyAudienceGroup": @{ @"settings": @[ @{ @"firstAndThirdPartyAudienceId": @"", @"recency": @"" } ] }, @"excludedGoogleAudienceGroup": @{ @"settings": @[ @{ @"googleAudienceId": @"" } ] }, @"includedCombinedAudienceGroup": @{ @"settings": @[ @{ @"combinedAudienceId": @"" } ] }, @"includedCustomListGroup": @{ @"settings": @[ @{ @"customListId": @"" } ] }, @"includedFirstAndThirdPartyAudienceGroups": @[ @{  } ], @"includedGoogleAudienceGroup": @{  } },
                              @"audioContentTypeDetails": @{ @"audioContentType": @"" },
                              @"authorizedSellerStatusDetails": @{ @"authorizedSellerStatus": @"", @"targetingOptionId": @"" },
                              @"browserDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"businessChainDetails": @{ @"displayName": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" },
                              @"carrierAndIspDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"categoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"channelDetails": @{ @"channelId": @"", @"negative": @NO },
                              @"contentDurationDetails": @{ @"contentDuration": @"", @"targetingOptionId": @"" },
                              @"contentGenreDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"contentInstreamPositionDetails": @{ @"adType": @"", @"contentInstreamPosition": @"" },
                              @"contentOutstreamPositionDetails": @{ @"adType": @"", @"contentOutstreamPosition": @"" },
                              @"contentStreamTypeDetails": @{ @"contentStreamType": @"", @"targetingOptionId": @"" },
                              @"dayAndTimeDetails": @{ @"dayOfWeek": @"", @"endHour": @0, @"startHour": @0, @"timeZoneResolution": @"" },
                              @"deviceMakeModelDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"deviceTypeDetails": @{ @"deviceType": @"", @"youtubeAndPartnersBidMultiplier": @"" },
                              @"digitalContentLabelExclusionDetails": @{ @"excludedContentRatingTier": @"" },
                              @"environmentDetails": @{ @"environment": @"" },
                              @"exchangeDetails": @{ @"exchange": @"" },
                              @"genderDetails": @{ @"gender": @"" },
                              @"geoRegionDetails": @{ @"displayName": @"", @"geoRegionType": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"householdIncomeDetails": @{ @"householdIncome": @"" },
                              @"inheritance": @"",
                              @"inventorySourceDetails": @{ @"inventorySourceId": @"" },
                              @"inventorySourceGroupDetails": @{ @"inventorySourceGroupId": @"" },
                              @"keywordDetails": @{ @"keyword": @"", @"negative": @NO },
                              @"languageDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"name": @"",
                              @"nativeContentPositionDetails": @{ @"contentPosition": @"" },
                              @"negativeKeywordListDetails": @{ @"negativeKeywordListId": @"" },
                              @"omidDetails": @{ @"omid": @"" },
                              @"onScreenPositionDetails": @{ @"adType": @"", @"onScreenPosition": @"", @"targetingOptionId": @"" },
                              @"operatingSystemDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"parentalStatusDetails": @{ @"parentalStatus": @"" },
                              @"poiDetails": @{ @"displayName": @"", @"latitude": @"", @"longitude": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" },
                              @"proximityLocationListDetails": @{ @"proximityLocationListId": @"", @"proximityRadius": @"", @"proximityRadiusUnit": @"" },
                              @"regionalLocationListDetails": @{ @"negative": @NO, @"regionalLocationListId": @"" },
                              @"sensitiveCategoryExclusionDetails": @{ @"excludedSensitiveCategory": @"" },
                              @"sessionPositionDetails": @{ @"sessionPosition": @"" },
                              @"subExchangeDetails": @{ @"targetingOptionId": @"" },
                              @"targetingType": @"",
                              @"thirdPartyVerifierDetails": @{ @"adloox": @{ @"excludedAdlooxCategories": @[  ] }, @"doubleVerify": @{ @"appStarRating": @{ @"avoidInsufficientStarRating": @NO, @"avoidedStarRating": @"" }, @"avoidedAgeRatings": @[  ], @"brandSafetyCategories": @{ @"avoidUnknownBrandSafetyCategory": @NO, @"avoidedHighSeverityCategories": @[  ], @"avoidedMediumSeverityCategories": @[  ] }, @"customSegmentId": @"", @"displayViewability": @{ @"iab": @"", @"viewableDuring": @"" }, @"fraudInvalidTraffic": @{ @"avoidInsufficientOption": @NO, @"avoidedFraudOption": @"" }, @"videoViewability": @{ @"playerImpressionRate": @"", @"videoIab": @"", @"videoViewableRate": @"" } }, @"integralAdScience": @{ @"customSegmentId": @[  ], @"displayViewability": @"", @"excludeUnrateable": @NO, @"excludedAdFraudRisk": @"", @"excludedAdultRisk": @"", @"excludedAlcoholRisk": @"", @"excludedDrugsRisk": @"", @"excludedGamblingRisk": @"", @"excludedHateSpeechRisk": @"", @"excludedIllegalDownloadsRisk": @"", @"excludedOffensiveLanguageRisk": @"", @"excludedViolenceRisk": @"", @"traqScoreOption": @"", @"videoViewability": @"" } },
                              @"urlDetails": @{ @"negative": @NO, @"url": @"" },
                              @"userRewardedContentDetails": @{ @"targetingOptionId": @"", @"userRewardedContent": @"" },
                              @"videoPlayerSizeDetails": @{ @"videoPlayerSize": @"" },
                              @"viewabilityDetails": @{ @"viewability": @"" },
                              @"youtubeChannelDetails": @{ @"channelId": @"", @"negative": @NO },
                              @"youtubeVideoDetails": @{ @"negative": @NO, @"videoId": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions",
  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([
    'ageRangeDetails' => [
        'ageRange' => ''
    ],
    'appCategoryDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'appDetails' => [
        'appId' => '',
        'appPlatform' => '',
        'displayName' => '',
        'negative' => null
    ],
    'assignedTargetingOptionId' => '',
    'assignedTargetingOptionIdAlias' => '',
    'audienceGroupDetails' => [
        'excludedFirstAndThirdPartyAudienceGroup' => [
                'settings' => [
                                [
                                                                'firstAndThirdPartyAudienceId' => '',
                                                                'recency' => ''
                                ]
                ]
        ],
        'excludedGoogleAudienceGroup' => [
                'settings' => [
                                [
                                                                'googleAudienceId' => ''
                                ]
                ]
        ],
        'includedCombinedAudienceGroup' => [
                'settings' => [
                                [
                                                                'combinedAudienceId' => ''
                                ]
                ]
        ],
        'includedCustomListGroup' => [
                'settings' => [
                                [
                                                                'customListId' => ''
                                ]
                ]
        ],
        'includedFirstAndThirdPartyAudienceGroups' => [
                [
                                
                ]
        ],
        'includedGoogleAudienceGroup' => [
                
        ]
    ],
    'audioContentTypeDetails' => [
        'audioContentType' => ''
    ],
    'authorizedSellerStatusDetails' => [
        'authorizedSellerStatus' => '',
        'targetingOptionId' => ''
    ],
    'browserDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'businessChainDetails' => [
        'displayName' => '',
        'proximityRadiusAmount' => '',
        'proximityRadiusUnit' => '',
        'targetingOptionId' => ''
    ],
    'carrierAndIspDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'categoryDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'channelDetails' => [
        'channelId' => '',
        'negative' => null
    ],
    'contentDurationDetails' => [
        'contentDuration' => '',
        'targetingOptionId' => ''
    ],
    'contentGenreDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'contentInstreamPositionDetails' => [
        'adType' => '',
        'contentInstreamPosition' => ''
    ],
    'contentOutstreamPositionDetails' => [
        'adType' => '',
        'contentOutstreamPosition' => ''
    ],
    'contentStreamTypeDetails' => [
        'contentStreamType' => '',
        'targetingOptionId' => ''
    ],
    'dayAndTimeDetails' => [
        'dayOfWeek' => '',
        'endHour' => 0,
        'startHour' => 0,
        'timeZoneResolution' => ''
    ],
    'deviceMakeModelDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'deviceTypeDetails' => [
        'deviceType' => '',
        'youtubeAndPartnersBidMultiplier' => ''
    ],
    'digitalContentLabelExclusionDetails' => [
        'excludedContentRatingTier' => ''
    ],
    'environmentDetails' => [
        'environment' => ''
    ],
    'exchangeDetails' => [
        'exchange' => ''
    ],
    'genderDetails' => [
        'gender' => ''
    ],
    'geoRegionDetails' => [
        'displayName' => '',
        'geoRegionType' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'householdIncomeDetails' => [
        'householdIncome' => ''
    ],
    'inheritance' => '',
    'inventorySourceDetails' => [
        'inventorySourceId' => ''
    ],
    'inventorySourceGroupDetails' => [
        'inventorySourceGroupId' => ''
    ],
    'keywordDetails' => [
        'keyword' => '',
        'negative' => null
    ],
    'languageDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'name' => '',
    'nativeContentPositionDetails' => [
        'contentPosition' => ''
    ],
    'negativeKeywordListDetails' => [
        'negativeKeywordListId' => ''
    ],
    'omidDetails' => [
        'omid' => ''
    ],
    'onScreenPositionDetails' => [
        'adType' => '',
        'onScreenPosition' => '',
        'targetingOptionId' => ''
    ],
    'operatingSystemDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'parentalStatusDetails' => [
        'parentalStatus' => ''
    ],
    'poiDetails' => [
        'displayName' => '',
        'latitude' => '',
        'longitude' => '',
        'proximityRadiusAmount' => '',
        'proximityRadiusUnit' => '',
        'targetingOptionId' => ''
    ],
    'proximityLocationListDetails' => [
        'proximityLocationListId' => '',
        'proximityRadius' => '',
        'proximityRadiusUnit' => ''
    ],
    'regionalLocationListDetails' => [
        'negative' => null,
        'regionalLocationListId' => ''
    ],
    'sensitiveCategoryExclusionDetails' => [
        'excludedSensitiveCategory' => ''
    ],
    'sessionPositionDetails' => [
        'sessionPosition' => ''
    ],
    'subExchangeDetails' => [
        'targetingOptionId' => ''
    ],
    'targetingType' => '',
    'thirdPartyVerifierDetails' => [
        'adloox' => [
                'excludedAdlooxCategories' => [
                                
                ]
        ],
        'doubleVerify' => [
                'appStarRating' => [
                                'avoidInsufficientStarRating' => null,
                                'avoidedStarRating' => ''
                ],
                'avoidedAgeRatings' => [
                                
                ],
                'brandSafetyCategories' => [
                                'avoidUnknownBrandSafetyCategory' => null,
                                'avoidedHighSeverityCategories' => [
                                                                
                                ],
                                'avoidedMediumSeverityCategories' => [
                                                                
                                ]
                ],
                'customSegmentId' => '',
                'displayViewability' => [
                                'iab' => '',
                                'viewableDuring' => ''
                ],
                'fraudInvalidTraffic' => [
                                'avoidInsufficientOption' => null,
                                'avoidedFraudOption' => ''
                ],
                'videoViewability' => [
                                'playerImpressionRate' => '',
                                'videoIab' => '',
                                'videoViewableRate' => ''
                ]
        ],
        'integralAdScience' => [
                'customSegmentId' => [
                                
                ],
                'displayViewability' => '',
                'excludeUnrateable' => null,
                'excludedAdFraudRisk' => '',
                'excludedAdultRisk' => '',
                'excludedAlcoholRisk' => '',
                'excludedDrugsRisk' => '',
                'excludedGamblingRisk' => '',
                'excludedHateSpeechRisk' => '',
                'excludedIllegalDownloadsRisk' => '',
                'excludedOffensiveLanguageRisk' => '',
                'excludedViolenceRisk' => '',
                'traqScoreOption' => '',
                'videoViewability' => ''
        ]
    ],
    'urlDetails' => [
        'negative' => null,
        'url' => ''
    ],
    'userRewardedContentDetails' => [
        'targetingOptionId' => '',
        'userRewardedContent' => ''
    ],
    'videoPlayerSizeDetails' => [
        'videoPlayerSize' => ''
    ],
    'viewabilityDetails' => [
        'viewability' => ''
    ],
    'youtubeChannelDetails' => [
        'channelId' => '',
        'negative' => null
    ],
    'youtubeVideoDetails' => [
        'negative' => null,
        'videoId' => ''
    ]
  ]),
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions', [
  'body' => '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'ageRangeDetails' => [
    'ageRange' => ''
  ],
  'appCategoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'appDetails' => [
    'appId' => '',
    'appPlatform' => '',
    'displayName' => '',
    'negative' => null
  ],
  'assignedTargetingOptionId' => '',
  'assignedTargetingOptionIdAlias' => '',
  'audienceGroupDetails' => [
    'excludedFirstAndThirdPartyAudienceGroup' => [
        'settings' => [
                [
                                'firstAndThirdPartyAudienceId' => '',
                                'recency' => ''
                ]
        ]
    ],
    'excludedGoogleAudienceGroup' => [
        'settings' => [
                [
                                'googleAudienceId' => ''
                ]
        ]
    ],
    'includedCombinedAudienceGroup' => [
        'settings' => [
                [
                                'combinedAudienceId' => ''
                ]
        ]
    ],
    'includedCustomListGroup' => [
        'settings' => [
                [
                                'customListId' => ''
                ]
        ]
    ],
    'includedFirstAndThirdPartyAudienceGroups' => [
        [
                
        ]
    ],
    'includedGoogleAudienceGroup' => [
        
    ]
  ],
  'audioContentTypeDetails' => [
    'audioContentType' => ''
  ],
  'authorizedSellerStatusDetails' => [
    'authorizedSellerStatus' => '',
    'targetingOptionId' => ''
  ],
  'browserDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'businessChainDetails' => [
    'displayName' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'carrierAndIspDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'categoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'channelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'contentDurationDetails' => [
    'contentDuration' => '',
    'targetingOptionId' => ''
  ],
  'contentGenreDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'contentInstreamPositionDetails' => [
    'adType' => '',
    'contentInstreamPosition' => ''
  ],
  'contentOutstreamPositionDetails' => [
    'adType' => '',
    'contentOutstreamPosition' => ''
  ],
  'contentStreamTypeDetails' => [
    'contentStreamType' => '',
    'targetingOptionId' => ''
  ],
  'dayAndTimeDetails' => [
    'dayOfWeek' => '',
    'endHour' => 0,
    'startHour' => 0,
    'timeZoneResolution' => ''
  ],
  'deviceMakeModelDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'deviceTypeDetails' => [
    'deviceType' => '',
    'youtubeAndPartnersBidMultiplier' => ''
  ],
  'digitalContentLabelExclusionDetails' => [
    'excludedContentRatingTier' => ''
  ],
  'environmentDetails' => [
    'environment' => ''
  ],
  'exchangeDetails' => [
    'exchange' => ''
  ],
  'genderDetails' => [
    'gender' => ''
  ],
  'geoRegionDetails' => [
    'displayName' => '',
    'geoRegionType' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'householdIncomeDetails' => [
    'householdIncome' => ''
  ],
  'inheritance' => '',
  'inventorySourceDetails' => [
    'inventorySourceId' => ''
  ],
  'inventorySourceGroupDetails' => [
    'inventorySourceGroupId' => ''
  ],
  'keywordDetails' => [
    'keyword' => '',
    'negative' => null
  ],
  'languageDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'name' => '',
  'nativeContentPositionDetails' => [
    'contentPosition' => ''
  ],
  'negativeKeywordListDetails' => [
    'negativeKeywordListId' => ''
  ],
  'omidDetails' => [
    'omid' => ''
  ],
  'onScreenPositionDetails' => [
    'adType' => '',
    'onScreenPosition' => '',
    'targetingOptionId' => ''
  ],
  'operatingSystemDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'parentalStatusDetails' => [
    'parentalStatus' => ''
  ],
  'poiDetails' => [
    'displayName' => '',
    'latitude' => '',
    'longitude' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'proximityLocationListDetails' => [
    'proximityLocationListId' => '',
    'proximityRadius' => '',
    'proximityRadiusUnit' => ''
  ],
  'regionalLocationListDetails' => [
    'negative' => null,
    'regionalLocationListId' => ''
  ],
  'sensitiveCategoryExclusionDetails' => [
    'excludedSensitiveCategory' => ''
  ],
  'sessionPositionDetails' => [
    'sessionPosition' => ''
  ],
  'subExchangeDetails' => [
    'targetingOptionId' => ''
  ],
  'targetingType' => '',
  'thirdPartyVerifierDetails' => [
    'adloox' => [
        'excludedAdlooxCategories' => [
                
        ]
    ],
    'doubleVerify' => [
        'appStarRating' => [
                'avoidInsufficientStarRating' => null,
                'avoidedStarRating' => ''
        ],
        'avoidedAgeRatings' => [
                
        ],
        'brandSafetyCategories' => [
                'avoidUnknownBrandSafetyCategory' => null,
                'avoidedHighSeverityCategories' => [
                                
                ],
                'avoidedMediumSeverityCategories' => [
                                
                ]
        ],
        'customSegmentId' => '',
        'displayViewability' => [
                'iab' => '',
                'viewableDuring' => ''
        ],
        'fraudInvalidTraffic' => [
                'avoidInsufficientOption' => null,
                'avoidedFraudOption' => ''
        ],
        'videoViewability' => [
                'playerImpressionRate' => '',
                'videoIab' => '',
                'videoViewableRate' => ''
        ]
    ],
    'integralAdScience' => [
        'customSegmentId' => [
                
        ],
        'displayViewability' => '',
        'excludeUnrateable' => null,
        'excludedAdFraudRisk' => '',
        'excludedAdultRisk' => '',
        'excludedAlcoholRisk' => '',
        'excludedDrugsRisk' => '',
        'excludedGamblingRisk' => '',
        'excludedHateSpeechRisk' => '',
        'excludedIllegalDownloadsRisk' => '',
        'excludedOffensiveLanguageRisk' => '',
        'excludedViolenceRisk' => '',
        'traqScoreOption' => '',
        'videoViewability' => ''
    ]
  ],
  'urlDetails' => [
    'negative' => null,
    'url' => ''
  ],
  'userRewardedContentDetails' => [
    'targetingOptionId' => '',
    'userRewardedContent' => ''
  ],
  'videoPlayerSizeDetails' => [
    'videoPlayerSize' => ''
  ],
  'viewabilityDetails' => [
    'viewability' => ''
  ],
  'youtubeChannelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'youtubeVideoDetails' => [
    'negative' => null,
    'videoId' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'ageRangeDetails' => [
    'ageRange' => ''
  ],
  'appCategoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'appDetails' => [
    'appId' => '',
    'appPlatform' => '',
    'displayName' => '',
    'negative' => null
  ],
  'assignedTargetingOptionId' => '',
  'assignedTargetingOptionIdAlias' => '',
  'audienceGroupDetails' => [
    'excludedFirstAndThirdPartyAudienceGroup' => [
        'settings' => [
                [
                                'firstAndThirdPartyAudienceId' => '',
                                'recency' => ''
                ]
        ]
    ],
    'excludedGoogleAudienceGroup' => [
        'settings' => [
                [
                                'googleAudienceId' => ''
                ]
        ]
    ],
    'includedCombinedAudienceGroup' => [
        'settings' => [
                [
                                'combinedAudienceId' => ''
                ]
        ]
    ],
    'includedCustomListGroup' => [
        'settings' => [
                [
                                'customListId' => ''
                ]
        ]
    ],
    'includedFirstAndThirdPartyAudienceGroups' => [
        [
                
        ]
    ],
    'includedGoogleAudienceGroup' => [
        
    ]
  ],
  'audioContentTypeDetails' => [
    'audioContentType' => ''
  ],
  'authorizedSellerStatusDetails' => [
    'authorizedSellerStatus' => '',
    'targetingOptionId' => ''
  ],
  'browserDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'businessChainDetails' => [
    'displayName' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'carrierAndIspDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'categoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'channelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'contentDurationDetails' => [
    'contentDuration' => '',
    'targetingOptionId' => ''
  ],
  'contentGenreDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'contentInstreamPositionDetails' => [
    'adType' => '',
    'contentInstreamPosition' => ''
  ],
  'contentOutstreamPositionDetails' => [
    'adType' => '',
    'contentOutstreamPosition' => ''
  ],
  'contentStreamTypeDetails' => [
    'contentStreamType' => '',
    'targetingOptionId' => ''
  ],
  'dayAndTimeDetails' => [
    'dayOfWeek' => '',
    'endHour' => 0,
    'startHour' => 0,
    'timeZoneResolution' => ''
  ],
  'deviceMakeModelDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'deviceTypeDetails' => [
    'deviceType' => '',
    'youtubeAndPartnersBidMultiplier' => ''
  ],
  'digitalContentLabelExclusionDetails' => [
    'excludedContentRatingTier' => ''
  ],
  'environmentDetails' => [
    'environment' => ''
  ],
  'exchangeDetails' => [
    'exchange' => ''
  ],
  'genderDetails' => [
    'gender' => ''
  ],
  'geoRegionDetails' => [
    'displayName' => '',
    'geoRegionType' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'householdIncomeDetails' => [
    'householdIncome' => ''
  ],
  'inheritance' => '',
  'inventorySourceDetails' => [
    'inventorySourceId' => ''
  ],
  'inventorySourceGroupDetails' => [
    'inventorySourceGroupId' => ''
  ],
  'keywordDetails' => [
    'keyword' => '',
    'negative' => null
  ],
  'languageDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'name' => '',
  'nativeContentPositionDetails' => [
    'contentPosition' => ''
  ],
  'negativeKeywordListDetails' => [
    'negativeKeywordListId' => ''
  ],
  'omidDetails' => [
    'omid' => ''
  ],
  'onScreenPositionDetails' => [
    'adType' => '',
    'onScreenPosition' => '',
    'targetingOptionId' => ''
  ],
  'operatingSystemDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'parentalStatusDetails' => [
    'parentalStatus' => ''
  ],
  'poiDetails' => [
    'displayName' => '',
    'latitude' => '',
    'longitude' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'proximityLocationListDetails' => [
    'proximityLocationListId' => '',
    'proximityRadius' => '',
    'proximityRadiusUnit' => ''
  ],
  'regionalLocationListDetails' => [
    'negative' => null,
    'regionalLocationListId' => ''
  ],
  'sensitiveCategoryExclusionDetails' => [
    'excludedSensitiveCategory' => ''
  ],
  'sessionPositionDetails' => [
    'sessionPosition' => ''
  ],
  'subExchangeDetails' => [
    'targetingOptionId' => ''
  ],
  'targetingType' => '',
  'thirdPartyVerifierDetails' => [
    'adloox' => [
        'excludedAdlooxCategories' => [
                
        ]
    ],
    'doubleVerify' => [
        'appStarRating' => [
                'avoidInsufficientStarRating' => null,
                'avoidedStarRating' => ''
        ],
        'avoidedAgeRatings' => [
                
        ],
        'brandSafetyCategories' => [
                'avoidUnknownBrandSafetyCategory' => null,
                'avoidedHighSeverityCategories' => [
                                
                ],
                'avoidedMediumSeverityCategories' => [
                                
                ]
        ],
        'customSegmentId' => '',
        'displayViewability' => [
                'iab' => '',
                'viewableDuring' => ''
        ],
        'fraudInvalidTraffic' => [
                'avoidInsufficientOption' => null,
                'avoidedFraudOption' => ''
        ],
        'videoViewability' => [
                'playerImpressionRate' => '',
                'videoIab' => '',
                'videoViewableRate' => ''
        ]
    ],
    'integralAdScience' => [
        'customSegmentId' => [
                
        ],
        'displayViewability' => '',
        'excludeUnrateable' => null,
        'excludedAdFraudRisk' => '',
        'excludedAdultRisk' => '',
        'excludedAlcoholRisk' => '',
        'excludedDrugsRisk' => '',
        'excludedGamblingRisk' => '',
        'excludedHateSpeechRisk' => '',
        'excludedIllegalDownloadsRisk' => '',
        'excludedOffensiveLanguageRisk' => '',
        'excludedViolenceRisk' => '',
        'traqScoreOption' => '',
        'videoViewability' => ''
    ]
  ],
  'urlDetails' => [
    'negative' => null,
    'url' => ''
  ],
  'userRewardedContentDetails' => [
    'targetingOptionId' => '',
    'userRewardedContent' => ''
  ],
  'videoPlayerSizeDetails' => [
    'videoPlayerSize' => ''
  ],
  'viewabilityDetails' => [
    'viewability' => ''
  ],
  'youtubeChannelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'youtubeVideoDetails' => [
    'negative' => null,
    'videoId' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions');
$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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}'
import http.client

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

payload = "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"

payload = {
    "ageRangeDetails": { "ageRange": "" },
    "appCategoryDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "appDetails": {
        "appId": "",
        "appPlatform": "",
        "displayName": "",
        "negative": False
    },
    "assignedTargetingOptionId": "",
    "assignedTargetingOptionIdAlias": "",
    "audienceGroupDetails": {
        "excludedFirstAndThirdPartyAudienceGroup": { "settings": [
                {
                    "firstAndThirdPartyAudienceId": "",
                    "recency": ""
                }
            ] },
        "excludedGoogleAudienceGroup": { "settings": [{ "googleAudienceId": "" }] },
        "includedCombinedAudienceGroup": { "settings": [{ "combinedAudienceId": "" }] },
        "includedCustomListGroup": { "settings": [{ "customListId": "" }] },
        "includedFirstAndThirdPartyAudienceGroups": [{}],
        "includedGoogleAudienceGroup": {}
    },
    "audioContentTypeDetails": { "audioContentType": "" },
    "authorizedSellerStatusDetails": {
        "authorizedSellerStatus": "",
        "targetingOptionId": ""
    },
    "browserDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "businessChainDetails": {
        "displayName": "",
        "proximityRadiusAmount": "",
        "proximityRadiusUnit": "",
        "targetingOptionId": ""
    },
    "carrierAndIspDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "categoryDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "channelDetails": {
        "channelId": "",
        "negative": False
    },
    "contentDurationDetails": {
        "contentDuration": "",
        "targetingOptionId": ""
    },
    "contentGenreDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "contentInstreamPositionDetails": {
        "adType": "",
        "contentInstreamPosition": ""
    },
    "contentOutstreamPositionDetails": {
        "adType": "",
        "contentOutstreamPosition": ""
    },
    "contentStreamTypeDetails": {
        "contentStreamType": "",
        "targetingOptionId": ""
    },
    "dayAndTimeDetails": {
        "dayOfWeek": "",
        "endHour": 0,
        "startHour": 0,
        "timeZoneResolution": ""
    },
    "deviceMakeModelDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "deviceTypeDetails": {
        "deviceType": "",
        "youtubeAndPartnersBidMultiplier": ""
    },
    "digitalContentLabelExclusionDetails": { "excludedContentRatingTier": "" },
    "environmentDetails": { "environment": "" },
    "exchangeDetails": { "exchange": "" },
    "genderDetails": { "gender": "" },
    "geoRegionDetails": {
        "displayName": "",
        "geoRegionType": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "householdIncomeDetails": { "householdIncome": "" },
    "inheritance": "",
    "inventorySourceDetails": { "inventorySourceId": "" },
    "inventorySourceGroupDetails": { "inventorySourceGroupId": "" },
    "keywordDetails": {
        "keyword": "",
        "negative": False
    },
    "languageDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "name": "",
    "nativeContentPositionDetails": { "contentPosition": "" },
    "negativeKeywordListDetails": { "negativeKeywordListId": "" },
    "omidDetails": { "omid": "" },
    "onScreenPositionDetails": {
        "adType": "",
        "onScreenPosition": "",
        "targetingOptionId": ""
    },
    "operatingSystemDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "parentalStatusDetails": { "parentalStatus": "" },
    "poiDetails": {
        "displayName": "",
        "latitude": "",
        "longitude": "",
        "proximityRadiusAmount": "",
        "proximityRadiusUnit": "",
        "targetingOptionId": ""
    },
    "proximityLocationListDetails": {
        "proximityLocationListId": "",
        "proximityRadius": "",
        "proximityRadiusUnit": ""
    },
    "regionalLocationListDetails": {
        "negative": False,
        "regionalLocationListId": ""
    },
    "sensitiveCategoryExclusionDetails": { "excludedSensitiveCategory": "" },
    "sessionPositionDetails": { "sessionPosition": "" },
    "subExchangeDetails": { "targetingOptionId": "" },
    "targetingType": "",
    "thirdPartyVerifierDetails": {
        "adloox": { "excludedAdlooxCategories": [] },
        "doubleVerify": {
            "appStarRating": {
                "avoidInsufficientStarRating": False,
                "avoidedStarRating": ""
            },
            "avoidedAgeRatings": [],
            "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": False,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
            },
            "customSegmentId": "",
            "displayViewability": {
                "iab": "",
                "viewableDuring": ""
            },
            "fraudInvalidTraffic": {
                "avoidInsufficientOption": False,
                "avoidedFraudOption": ""
            },
            "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
            }
        },
        "integralAdScience": {
            "customSegmentId": [],
            "displayViewability": "",
            "excludeUnrateable": False,
            "excludedAdFraudRisk": "",
            "excludedAdultRisk": "",
            "excludedAlcoholRisk": "",
            "excludedDrugsRisk": "",
            "excludedGamblingRisk": "",
            "excludedHateSpeechRisk": "",
            "excludedIllegalDownloadsRisk": "",
            "excludedOffensiveLanguageRisk": "",
            "excludedViolenceRisk": "",
            "traqScoreOption": "",
            "videoViewability": ""
        }
    },
    "urlDetails": {
        "negative": False,
        "url": ""
    },
    "userRewardedContentDetails": {
        "targetingOptionId": "",
        "userRewardedContent": ""
    },
    "videoPlayerSizeDetails": { "videoPlayerSize": "" },
    "viewabilityDetails": { "viewability": "" },
    "youtubeChannelDetails": {
        "channelId": "",
        "negative": False
    },
    "youtubeVideoDetails": {
        "negative": False,
        "videoId": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"

payload <- "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")

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  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions') do |req|
  req.body = "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions";

    let payload = json!({
        "ageRangeDetails": json!({"ageRange": ""}),
        "appCategoryDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "appDetails": json!({
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
        }),
        "assignedTargetingOptionId": "",
        "assignedTargetingOptionIdAlias": "",
        "audienceGroupDetails": json!({
            "excludedFirstAndThirdPartyAudienceGroup": json!({"settings": (
                    json!({
                        "firstAndThirdPartyAudienceId": "",
                        "recency": ""
                    })
                )}),
            "excludedGoogleAudienceGroup": json!({"settings": (json!({"googleAudienceId": ""}))}),
            "includedCombinedAudienceGroup": json!({"settings": (json!({"combinedAudienceId": ""}))}),
            "includedCustomListGroup": json!({"settings": (json!({"customListId": ""}))}),
            "includedFirstAndThirdPartyAudienceGroups": (json!({})),
            "includedGoogleAudienceGroup": json!({})
        }),
        "audioContentTypeDetails": json!({"audioContentType": ""}),
        "authorizedSellerStatusDetails": json!({
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
        }),
        "browserDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "businessChainDetails": json!({
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
        }),
        "carrierAndIspDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "categoryDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "channelDetails": json!({
            "channelId": "",
            "negative": false
        }),
        "contentDurationDetails": json!({
            "contentDuration": "",
            "targetingOptionId": ""
        }),
        "contentGenreDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "contentInstreamPositionDetails": json!({
            "adType": "",
            "contentInstreamPosition": ""
        }),
        "contentOutstreamPositionDetails": json!({
            "adType": "",
            "contentOutstreamPosition": ""
        }),
        "contentStreamTypeDetails": json!({
            "contentStreamType": "",
            "targetingOptionId": ""
        }),
        "dayAndTimeDetails": json!({
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
        }),
        "deviceMakeModelDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "deviceTypeDetails": json!({
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
        }),
        "digitalContentLabelExclusionDetails": json!({"excludedContentRatingTier": ""}),
        "environmentDetails": json!({"environment": ""}),
        "exchangeDetails": json!({"exchange": ""}),
        "genderDetails": json!({"gender": ""}),
        "geoRegionDetails": json!({
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "householdIncomeDetails": json!({"householdIncome": ""}),
        "inheritance": "",
        "inventorySourceDetails": json!({"inventorySourceId": ""}),
        "inventorySourceGroupDetails": json!({"inventorySourceGroupId": ""}),
        "keywordDetails": json!({
            "keyword": "",
            "negative": false
        }),
        "languageDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "name": "",
        "nativeContentPositionDetails": json!({"contentPosition": ""}),
        "negativeKeywordListDetails": json!({"negativeKeywordListId": ""}),
        "omidDetails": json!({"omid": ""}),
        "onScreenPositionDetails": json!({
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
        }),
        "operatingSystemDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "parentalStatusDetails": json!({"parentalStatus": ""}),
        "poiDetails": json!({
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
        }),
        "proximityLocationListDetails": json!({
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
        }),
        "regionalLocationListDetails": json!({
            "negative": false,
            "regionalLocationListId": ""
        }),
        "sensitiveCategoryExclusionDetails": json!({"excludedSensitiveCategory": ""}),
        "sessionPositionDetails": json!({"sessionPosition": ""}),
        "subExchangeDetails": json!({"targetingOptionId": ""}),
        "targetingType": "",
        "thirdPartyVerifierDetails": json!({
            "adloox": json!({"excludedAdlooxCategories": ()}),
            "doubleVerify": json!({
                "appStarRating": json!({
                    "avoidInsufficientStarRating": false,
                    "avoidedStarRating": ""
                }),
                "avoidedAgeRatings": (),
                "brandSafetyCategories": json!({
                    "avoidUnknownBrandSafetyCategory": false,
                    "avoidedHighSeverityCategories": (),
                    "avoidedMediumSeverityCategories": ()
                }),
                "customSegmentId": "",
                "displayViewability": json!({
                    "iab": "",
                    "viewableDuring": ""
                }),
                "fraudInvalidTraffic": json!({
                    "avoidInsufficientOption": false,
                    "avoidedFraudOption": ""
                }),
                "videoViewability": json!({
                    "playerImpressionRate": "",
                    "videoIab": "",
                    "videoViewableRate": ""
                })
            }),
            "integralAdScience": json!({
                "customSegmentId": (),
                "displayViewability": "",
                "excludeUnrateable": false,
                "excludedAdFraudRisk": "",
                "excludedAdultRisk": "",
                "excludedAlcoholRisk": "",
                "excludedDrugsRisk": "",
                "excludedGamblingRisk": "",
                "excludedHateSpeechRisk": "",
                "excludedIllegalDownloadsRisk": "",
                "excludedOffensiveLanguageRisk": "",
                "excludedViolenceRisk": "",
                "traqScoreOption": "",
                "videoViewability": ""
            })
        }),
        "urlDetails": json!({
            "negative": false,
            "url": ""
        }),
        "userRewardedContentDetails": json!({
            "targetingOptionId": "",
            "userRewardedContent": ""
        }),
        "videoPlayerSizeDetails": json!({"videoPlayerSize": ""}),
        "viewabilityDetails": json!({"viewability": ""}),
        "youtubeChannelDetails": json!({
            "channelId": "",
            "negative": false
        }),
        "youtubeVideoDetails": json!({
            "negative": false,
            "videoId": ""
        })
    });

    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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions \
  --header 'content-type: application/json' \
  --data '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}'
echo '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "ageRangeDetails": {\n    "ageRange": ""\n  },\n  "appCategoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "appDetails": {\n    "appId": "",\n    "appPlatform": "",\n    "displayName": "",\n    "negative": false\n  },\n  "assignedTargetingOptionId": "",\n  "assignedTargetingOptionIdAlias": "",\n  "audienceGroupDetails": {\n    "excludedFirstAndThirdPartyAudienceGroup": {\n      "settings": [\n        {\n          "firstAndThirdPartyAudienceId": "",\n          "recency": ""\n        }\n      ]\n    },\n    "excludedGoogleAudienceGroup": {\n      "settings": [\n        {\n          "googleAudienceId": ""\n        }\n      ]\n    },\n    "includedCombinedAudienceGroup": {\n      "settings": [\n        {\n          "combinedAudienceId": ""\n        }\n      ]\n    },\n    "includedCustomListGroup": {\n      "settings": [\n        {\n          "customListId": ""\n        }\n      ]\n    },\n    "includedFirstAndThirdPartyAudienceGroups": [\n      {}\n    ],\n    "includedGoogleAudienceGroup": {}\n  },\n  "audioContentTypeDetails": {\n    "audioContentType": ""\n  },\n  "authorizedSellerStatusDetails": {\n    "authorizedSellerStatus": "",\n    "targetingOptionId": ""\n  },\n  "browserDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "businessChainDetails": {\n    "displayName": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "carrierAndIspDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "categoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "channelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "contentDurationDetails": {\n    "contentDuration": "",\n    "targetingOptionId": ""\n  },\n  "contentGenreDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "contentInstreamPositionDetails": {\n    "adType": "",\n    "contentInstreamPosition": ""\n  },\n  "contentOutstreamPositionDetails": {\n    "adType": "",\n    "contentOutstreamPosition": ""\n  },\n  "contentStreamTypeDetails": {\n    "contentStreamType": "",\n    "targetingOptionId": ""\n  },\n  "dayAndTimeDetails": {\n    "dayOfWeek": "",\n    "endHour": 0,\n    "startHour": 0,\n    "timeZoneResolution": ""\n  },\n  "deviceMakeModelDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "deviceTypeDetails": {\n    "deviceType": "",\n    "youtubeAndPartnersBidMultiplier": ""\n  },\n  "digitalContentLabelExclusionDetails": {\n    "excludedContentRatingTier": ""\n  },\n  "environmentDetails": {\n    "environment": ""\n  },\n  "exchangeDetails": {\n    "exchange": ""\n  },\n  "genderDetails": {\n    "gender": ""\n  },\n  "geoRegionDetails": {\n    "displayName": "",\n    "geoRegionType": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "householdIncomeDetails": {\n    "householdIncome": ""\n  },\n  "inheritance": "",\n  "inventorySourceDetails": {\n    "inventorySourceId": ""\n  },\n  "inventorySourceGroupDetails": {\n    "inventorySourceGroupId": ""\n  },\n  "keywordDetails": {\n    "keyword": "",\n    "negative": false\n  },\n  "languageDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "name": "",\n  "nativeContentPositionDetails": {\n    "contentPosition": ""\n  },\n  "negativeKeywordListDetails": {\n    "negativeKeywordListId": ""\n  },\n  "omidDetails": {\n    "omid": ""\n  },\n  "onScreenPositionDetails": {\n    "adType": "",\n    "onScreenPosition": "",\n    "targetingOptionId": ""\n  },\n  "operatingSystemDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "parentalStatusDetails": {\n    "parentalStatus": ""\n  },\n  "poiDetails": {\n    "displayName": "",\n    "latitude": "",\n    "longitude": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "proximityLocationListDetails": {\n    "proximityLocationListId": "",\n    "proximityRadius": "",\n    "proximityRadiusUnit": ""\n  },\n  "regionalLocationListDetails": {\n    "negative": false,\n    "regionalLocationListId": ""\n  },\n  "sensitiveCategoryExclusionDetails": {\n    "excludedSensitiveCategory": ""\n  },\n  "sessionPositionDetails": {\n    "sessionPosition": ""\n  },\n  "subExchangeDetails": {\n    "targetingOptionId": ""\n  },\n  "targetingType": "",\n  "thirdPartyVerifierDetails": {\n    "adloox": {\n      "excludedAdlooxCategories": []\n    },\n    "doubleVerify": {\n      "appStarRating": {\n        "avoidInsufficientStarRating": false,\n        "avoidedStarRating": ""\n      },\n      "avoidedAgeRatings": [],\n      "brandSafetyCategories": {\n        "avoidUnknownBrandSafetyCategory": false,\n        "avoidedHighSeverityCategories": [],\n        "avoidedMediumSeverityCategories": []\n      },\n      "customSegmentId": "",\n      "displayViewability": {\n        "iab": "",\n        "viewableDuring": ""\n      },\n      "fraudInvalidTraffic": {\n        "avoidInsufficientOption": false,\n        "avoidedFraudOption": ""\n      },\n      "videoViewability": {\n        "playerImpressionRate": "",\n        "videoIab": "",\n        "videoViewableRate": ""\n      }\n    },\n    "integralAdScience": {\n      "customSegmentId": [],\n      "displayViewability": "",\n      "excludeUnrateable": false,\n      "excludedAdFraudRisk": "",\n      "excludedAdultRisk": "",\n      "excludedAlcoholRisk": "",\n      "excludedDrugsRisk": "",\n      "excludedGamblingRisk": "",\n      "excludedHateSpeechRisk": "",\n      "excludedIllegalDownloadsRisk": "",\n      "excludedOffensiveLanguageRisk": "",\n      "excludedViolenceRisk": "",\n      "traqScoreOption": "",\n      "videoViewability": ""\n    }\n  },\n  "urlDetails": {\n    "negative": false,\n    "url": ""\n  },\n  "userRewardedContentDetails": {\n    "targetingOptionId": "",\n    "userRewardedContent": ""\n  },\n  "videoPlayerSizeDetails": {\n    "videoPlayerSize": ""\n  },\n  "viewabilityDetails": {\n    "viewability": ""\n  },\n  "youtubeChannelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "youtubeVideoDetails": {\n    "negative": false,\n    "videoId": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "ageRangeDetails": ["ageRange": ""],
  "appCategoryDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "appDetails": [
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  ],
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": [
    "excludedFirstAndThirdPartyAudienceGroup": ["settings": [
        [
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        ]
      ]],
    "excludedGoogleAudienceGroup": ["settings": [["googleAudienceId": ""]]],
    "includedCombinedAudienceGroup": ["settings": [["combinedAudienceId": ""]]],
    "includedCustomListGroup": ["settings": [["customListId": ""]]],
    "includedFirstAndThirdPartyAudienceGroups": [[]],
    "includedGoogleAudienceGroup": []
  ],
  "audioContentTypeDetails": ["audioContentType": ""],
  "authorizedSellerStatusDetails": [
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  ],
  "browserDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "businessChainDetails": [
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  ],
  "carrierAndIspDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "categoryDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "channelDetails": [
    "channelId": "",
    "negative": false
  ],
  "contentDurationDetails": [
    "contentDuration": "",
    "targetingOptionId": ""
  ],
  "contentGenreDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "contentInstreamPositionDetails": [
    "adType": "",
    "contentInstreamPosition": ""
  ],
  "contentOutstreamPositionDetails": [
    "adType": "",
    "contentOutstreamPosition": ""
  ],
  "contentStreamTypeDetails": [
    "contentStreamType": "",
    "targetingOptionId": ""
  ],
  "dayAndTimeDetails": [
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  ],
  "deviceMakeModelDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "deviceTypeDetails": [
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  ],
  "digitalContentLabelExclusionDetails": ["excludedContentRatingTier": ""],
  "environmentDetails": ["environment": ""],
  "exchangeDetails": ["exchange": ""],
  "genderDetails": ["gender": ""],
  "geoRegionDetails": [
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "householdIncomeDetails": ["householdIncome": ""],
  "inheritance": "",
  "inventorySourceDetails": ["inventorySourceId": ""],
  "inventorySourceGroupDetails": ["inventorySourceGroupId": ""],
  "keywordDetails": [
    "keyword": "",
    "negative": false
  ],
  "languageDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "name": "",
  "nativeContentPositionDetails": ["contentPosition": ""],
  "negativeKeywordListDetails": ["negativeKeywordListId": ""],
  "omidDetails": ["omid": ""],
  "onScreenPositionDetails": [
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  ],
  "operatingSystemDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "parentalStatusDetails": ["parentalStatus": ""],
  "poiDetails": [
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  ],
  "proximityLocationListDetails": [
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  ],
  "regionalLocationListDetails": [
    "negative": false,
    "regionalLocationListId": ""
  ],
  "sensitiveCategoryExclusionDetails": ["excludedSensitiveCategory": ""],
  "sessionPositionDetails": ["sessionPosition": ""],
  "subExchangeDetails": ["targetingOptionId": ""],
  "targetingType": "",
  "thirdPartyVerifierDetails": [
    "adloox": ["excludedAdlooxCategories": []],
    "doubleVerify": [
      "appStarRating": [
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      ],
      "avoidedAgeRatings": [],
      "brandSafetyCategories": [
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      ],
      "customSegmentId": "",
      "displayViewability": [
        "iab": "",
        "viewableDuring": ""
      ],
      "fraudInvalidTraffic": [
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      ],
      "videoViewability": [
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      ]
    ],
    "integralAdScience": [
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    ]
  ],
  "urlDetails": [
    "negative": false,
    "url": ""
  ],
  "userRewardedContentDetails": [
    "targetingOptionId": "",
    "userRewardedContent": ""
  ],
  "videoPlayerSizeDetails": ["videoPlayerSize": ""],
  "viewabilityDetails": ["viewability": ""],
  "youtubeChannelDetails": [
    "channelId": "",
    "negative": false
  ],
  "youtubeVideoDetails": [
    "negative": false,
    "videoId": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")! 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()
DELETE displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.delete
{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
QUERY PARAMS

advertiserId
insertionOrderId
targetingType
assignedTargetingOptionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");

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

(client/delete "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

	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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"))
    .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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"]
                                                       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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId",
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId";

    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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
http DELETE {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")! 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 displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.get
{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
QUERY PARAMS

advertiserId
insertionOrderId
targetingType
assignedTargetingOptionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

	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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"))
    .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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"]
                                                       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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId",
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId";

    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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
http GET {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")! 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 displayvideo.advertisers.insertionOrders.targetingTypes.assignedTargetingOptions.list
{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions
QUERY PARAMS

advertiserId
insertionOrderId
targetingType
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"

	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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"))
    .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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")
  .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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions',
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions');

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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions",
  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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")

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/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions";

    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}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions
http GET {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/insertionOrders/:insertionOrderId/targetingTypes/:targetingType/assignedTargetingOptions")! 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 displayvideo.advertisers.invoices.list
{{baseUrl}}/v2/advertisers/:advertiserId/invoices
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/invoices");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/invoices")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/invoices"

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}}/v2/advertisers/:advertiserId/invoices"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/invoices");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/invoices"

	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/v2/advertisers/:advertiserId/invoices HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/invoices"))
    .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}}/v2/advertisers/:advertiserId/invoices")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/invoices")
  .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}}/v2/advertisers/:advertiserId/invoices');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/invoices'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/invoices';
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}}/v2/advertisers/:advertiserId/invoices',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/invoices")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/invoices',
  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}}/v2/advertisers/:advertiserId/invoices'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/invoices');

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}}/v2/advertisers/:advertiserId/invoices'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/invoices';
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}}/v2/advertisers/:advertiserId/invoices"]
                                                       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}}/v2/advertisers/:advertiserId/invoices" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/invoices');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/invoices")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/invoices"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/invoices"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/invoices")

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/v2/advertisers/:advertiserId/invoices') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/invoices";

    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}}/v2/advertisers/:advertiserId/invoices
http GET {{baseUrl}}/v2/advertisers/:advertiserId/invoices
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/invoices
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/invoices")! 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 displayvideo.advertisers.invoices.lookupInvoiceCurrency
{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency"

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}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency"

	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/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency"))
    .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}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency")
  .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}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency';
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}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency',
  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}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency');

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}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency';
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}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency"]
                                                       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}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency")

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/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency";

    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}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency
http GET {{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/invoices:lookupInvoiceCurrency")! 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 displayvideo.advertisers.lineItems.bulkEditAssignedTargetingOptions
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions
QUERY PARAMS

advertiserId
BODY json

{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ],
  "lineItemIds": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions");

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  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\n}");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions" {:content-type :json
                                                                                                                    :form-params {:createRequests [{:assignedTargetingOptions [{:ageRangeDetails {:ageRange ""}
                                                                                                                                                                                :appCategoryDetails {:displayName ""
                                                                                                                                                                                                     :negative false
                                                                                                                                                                                                     :targetingOptionId ""}
                                                                                                                                                                                :appDetails {:appId ""
                                                                                                                                                                                             :appPlatform ""
                                                                                                                                                                                             :displayName ""
                                                                                                                                                                                             :negative false}
                                                                                                                                                                                :assignedTargetingOptionId ""
                                                                                                                                                                                :assignedTargetingOptionIdAlias ""
                                                                                                                                                                                :audienceGroupDetails {:excludedFirstAndThirdPartyAudienceGroup {:settings [{:firstAndThirdPartyAudienceId ""
                                                                                                                                                                                                                                                             :recency ""}]}
                                                                                                                                                                                                       :excludedGoogleAudienceGroup {:settings [{:googleAudienceId ""}]}
                                                                                                                                                                                                       :includedCombinedAudienceGroup {:settings [{:combinedAudienceId ""}]}
                                                                                                                                                                                                       :includedCustomListGroup {:settings [{:customListId ""}]}
                                                                                                                                                                                                       :includedFirstAndThirdPartyAudienceGroups [{}]
                                                                                                                                                                                                       :includedGoogleAudienceGroup {}}
                                                                                                                                                                                :audioContentTypeDetails {:audioContentType ""}
                                                                                                                                                                                :authorizedSellerStatusDetails {:authorizedSellerStatus ""
                                                                                                                                                                                                                :targetingOptionId ""}
                                                                                                                                                                                :browserDetails {:displayName ""
                                                                                                                                                                                                 :negative false
                                                                                                                                                                                                 :targetingOptionId ""}
                                                                                                                                                                                :businessChainDetails {:displayName ""
                                                                                                                                                                                                       :proximityRadiusAmount ""
                                                                                                                                                                                                       :proximityRadiusUnit ""
                                                                                                                                                                                                       :targetingOptionId ""}
                                                                                                                                                                                :carrierAndIspDetails {:displayName ""
                                                                                                                                                                                                       :negative false
                                                                                                                                                                                                       :targetingOptionId ""}
                                                                                                                                                                                :categoryDetails {:displayName ""
                                                                                                                                                                                                  :negative false
                                                                                                                                                                                                  :targetingOptionId ""}
                                                                                                                                                                                :channelDetails {:channelId ""
                                                                                                                                                                                                 :negative false}
                                                                                                                                                                                :contentDurationDetails {:contentDuration ""
                                                                                                                                                                                                         :targetingOptionId ""}
                                                                                                                                                                                :contentGenreDetails {:displayName ""
                                                                                                                                                                                                      :negative false
                                                                                                                                                                                                      :targetingOptionId ""}
                                                                                                                                                                                :contentInstreamPositionDetails {:adType ""
                                                                                                                                                                                                                 :contentInstreamPosition ""}
                                                                                                                                                                                :contentOutstreamPositionDetails {:adType ""
                                                                                                                                                                                                                  :contentOutstreamPosition ""}
                                                                                                                                                                                :contentStreamTypeDetails {:contentStreamType ""
                                                                                                                                                                                                           :targetingOptionId ""}
                                                                                                                                                                                :dayAndTimeDetails {:dayOfWeek ""
                                                                                                                                                                                                    :endHour 0
                                                                                                                                                                                                    :startHour 0
                                                                                                                                                                                                    :timeZoneResolution ""}
                                                                                                                                                                                :deviceMakeModelDetails {:displayName ""
                                                                                                                                                                                                         :negative false
                                                                                                                                                                                                         :targetingOptionId ""}
                                                                                                                                                                                :deviceTypeDetails {:deviceType ""
                                                                                                                                                                                                    :youtubeAndPartnersBidMultiplier ""}
                                                                                                                                                                                :digitalContentLabelExclusionDetails {:excludedContentRatingTier ""}
                                                                                                                                                                                :environmentDetails {:environment ""}
                                                                                                                                                                                :exchangeDetails {:exchange ""}
                                                                                                                                                                                :genderDetails {:gender ""}
                                                                                                                                                                                :geoRegionDetails {:displayName ""
                                                                                                                                                                                                   :geoRegionType ""
                                                                                                                                                                                                   :negative false
                                                                                                                                                                                                   :targetingOptionId ""}
                                                                                                                                                                                :householdIncomeDetails {:householdIncome ""}
                                                                                                                                                                                :inheritance ""
                                                                                                                                                                                :inventorySourceDetails {:inventorySourceId ""}
                                                                                                                                                                                :inventorySourceGroupDetails {:inventorySourceGroupId ""}
                                                                                                                                                                                :keywordDetails {:keyword ""
                                                                                                                                                                                                 :negative false}
                                                                                                                                                                                :languageDetails {:displayName ""
                                                                                                                                                                                                  :negative false
                                                                                                                                                                                                  :targetingOptionId ""}
                                                                                                                                                                                :name ""
                                                                                                                                                                                :nativeContentPositionDetails {:contentPosition ""}
                                                                                                                                                                                :negativeKeywordListDetails {:negativeKeywordListId ""}
                                                                                                                                                                                :omidDetails {:omid ""}
                                                                                                                                                                                :onScreenPositionDetails {:adType ""
                                                                                                                                                                                                          :onScreenPosition ""
                                                                                                                                                                                                          :targetingOptionId ""}
                                                                                                                                                                                :operatingSystemDetails {:displayName ""
                                                                                                                                                                                                         :negative false
                                                                                                                                                                                                         :targetingOptionId ""}
                                                                                                                                                                                :parentalStatusDetails {:parentalStatus ""}
                                                                                                                                                                                :poiDetails {:displayName ""
                                                                                                                                                                                             :latitude ""
                                                                                                                                                                                             :longitude ""
                                                                                                                                                                                             :proximityRadiusAmount ""
                                                                                                                                                                                             :proximityRadiusUnit ""
                                                                                                                                                                                             :targetingOptionId ""}
                                                                                                                                                                                :proximityLocationListDetails {:proximityLocationListId ""
                                                                                                                                                                                                               :proximityRadius ""
                                                                                                                                                                                                               :proximityRadiusUnit ""}
                                                                                                                                                                                :regionalLocationListDetails {:negative false
                                                                                                                                                                                                              :regionalLocationListId ""}
                                                                                                                                                                                :sensitiveCategoryExclusionDetails {:excludedSensitiveCategory ""}
                                                                                                                                                                                :sessionPositionDetails {:sessionPosition ""}
                                                                                                                                                                                :subExchangeDetails {:targetingOptionId ""}
                                                                                                                                                                                :targetingType ""
                                                                                                                                                                                :thirdPartyVerifierDetails {:adloox {:excludedAdlooxCategories []}
                                                                                                                                                                                                            :doubleVerify {:appStarRating {:avoidInsufficientStarRating false
                                                                                                                                                                                                                                           :avoidedStarRating ""}
                                                                                                                                                                                                                           :avoidedAgeRatings []
                                                                                                                                                                                                                           :brandSafetyCategories {:avoidUnknownBrandSafetyCategory false
                                                                                                                                                                                                                                                   :avoidedHighSeverityCategories []
                                                                                                                                                                                                                                                   :avoidedMediumSeverityCategories []}
                                                                                                                                                                                                                           :customSegmentId ""
                                                                                                                                                                                                                           :displayViewability {:iab ""
                                                                                                                                                                                                                                                :viewableDuring ""}
                                                                                                                                                                                                                           :fraudInvalidTraffic {:avoidInsufficientOption false
                                                                                                                                                                                                                                                 :avoidedFraudOption ""}
                                                                                                                                                                                                                           :videoViewability {:playerImpressionRate ""
                                                                                                                                                                                                                                              :videoIab ""
                                                                                                                                                                                                                                              :videoViewableRate ""}}
                                                                                                                                                                                                            :integralAdScience {:customSegmentId []
                                                                                                                                                                                                                                :displayViewability ""
                                                                                                                                                                                                                                :excludeUnrateable false
                                                                                                                                                                                                                                :excludedAdFraudRisk ""
                                                                                                                                                                                                                                :excludedAdultRisk ""
                                                                                                                                                                                                                                :excludedAlcoholRisk ""
                                                                                                                                                                                                                                :excludedDrugsRisk ""
                                                                                                                                                                                                                                :excludedGamblingRisk ""
                                                                                                                                                                                                                                :excludedHateSpeechRisk ""
                                                                                                                                                                                                                                :excludedIllegalDownloadsRisk ""
                                                                                                                                                                                                                                :excludedOffensiveLanguageRisk ""
                                                                                                                                                                                                                                :excludedViolenceRisk ""
                                                                                                                                                                                                                                :traqScoreOption ""
                                                                                                                                                                                                                                :videoViewability ""}}
                                                                                                                                                                                :urlDetails {:negative false
                                                                                                                                                                                             :url ""}
                                                                                                                                                                                :userRewardedContentDetails {:targetingOptionId ""
                                                                                                                                                                                                             :userRewardedContent ""}
                                                                                                                                                                                :videoPlayerSizeDetails {:videoPlayerSize ""}
                                                                                                                                                                                :viewabilityDetails {:viewability ""}
                                                                                                                                                                                :youtubeChannelDetails {:channelId ""
                                                                                                                                                                                                        :negative false}
                                                                                                                                                                                :youtubeVideoDetails {:negative false
                                                                                                                                                                                                      :videoId ""}}]
                                                                                                                                                    :targetingType ""}]
                                                                                                                                  :deleteRequests [{:assignedTargetingOptionIds []
                                                                                                                                                    :targetingType ""}]
                                                                                                                                  :lineItemIds []}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\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}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions"),
    Content = new StringContent("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\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}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions"

	payload := strings.NewReader("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\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/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 8554

{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ],
  "lineItemIds": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\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  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions")
  .header("content-type", "application/json")
  .body("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\n}")
  .asString();
const data = JSON.stringify({
  createRequests: [
    {
      assignedTargetingOptions: [
        {
          ageRangeDetails: {
            ageRange: ''
          },
          appCategoryDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          appDetails: {
            appId: '',
            appPlatform: '',
            displayName: '',
            negative: false
          },
          assignedTargetingOptionId: '',
          assignedTargetingOptionIdAlias: '',
          audienceGroupDetails: {
            excludedFirstAndThirdPartyAudienceGroup: {
              settings: [
                {
                  firstAndThirdPartyAudienceId: '',
                  recency: ''
                }
              ]
            },
            excludedGoogleAudienceGroup: {
              settings: [
                {
                  googleAudienceId: ''
                }
              ]
            },
            includedCombinedAudienceGroup: {
              settings: [
                {
                  combinedAudienceId: ''
                }
              ]
            },
            includedCustomListGroup: {
              settings: [
                {
                  customListId: ''
                }
              ]
            },
            includedFirstAndThirdPartyAudienceGroups: [
              {}
            ],
            includedGoogleAudienceGroup: {}
          },
          audioContentTypeDetails: {
            audioContentType: ''
          },
          authorizedSellerStatusDetails: {
            authorizedSellerStatus: '',
            targetingOptionId: ''
          },
          browserDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          businessChainDetails: {
            displayName: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          carrierAndIspDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          categoryDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          channelDetails: {
            channelId: '',
            negative: false
          },
          contentDurationDetails: {
            contentDuration: '',
            targetingOptionId: ''
          },
          contentGenreDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          contentInstreamPositionDetails: {
            adType: '',
            contentInstreamPosition: ''
          },
          contentOutstreamPositionDetails: {
            adType: '',
            contentOutstreamPosition: ''
          },
          contentStreamTypeDetails: {
            contentStreamType: '',
            targetingOptionId: ''
          },
          dayAndTimeDetails: {
            dayOfWeek: '',
            endHour: 0,
            startHour: 0,
            timeZoneResolution: ''
          },
          deviceMakeModelDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          deviceTypeDetails: {
            deviceType: '',
            youtubeAndPartnersBidMultiplier: ''
          },
          digitalContentLabelExclusionDetails: {
            excludedContentRatingTier: ''
          },
          environmentDetails: {
            environment: ''
          },
          exchangeDetails: {
            exchange: ''
          },
          genderDetails: {
            gender: ''
          },
          geoRegionDetails: {
            displayName: '',
            geoRegionType: '',
            negative: false,
            targetingOptionId: ''
          },
          householdIncomeDetails: {
            householdIncome: ''
          },
          inheritance: '',
          inventorySourceDetails: {
            inventorySourceId: ''
          },
          inventorySourceGroupDetails: {
            inventorySourceGroupId: ''
          },
          keywordDetails: {
            keyword: '',
            negative: false
          },
          languageDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          name: '',
          nativeContentPositionDetails: {
            contentPosition: ''
          },
          negativeKeywordListDetails: {
            negativeKeywordListId: ''
          },
          omidDetails: {
            omid: ''
          },
          onScreenPositionDetails: {
            adType: '',
            onScreenPosition: '',
            targetingOptionId: ''
          },
          operatingSystemDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          parentalStatusDetails: {
            parentalStatus: ''
          },
          poiDetails: {
            displayName: '',
            latitude: '',
            longitude: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          proximityLocationListDetails: {
            proximityLocationListId: '',
            proximityRadius: '',
            proximityRadiusUnit: ''
          },
          regionalLocationListDetails: {
            negative: false,
            regionalLocationListId: ''
          },
          sensitiveCategoryExclusionDetails: {
            excludedSensitiveCategory: ''
          },
          sessionPositionDetails: {
            sessionPosition: ''
          },
          subExchangeDetails: {
            targetingOptionId: ''
          },
          targetingType: '',
          thirdPartyVerifierDetails: {
            adloox: {
              excludedAdlooxCategories: []
            },
            doubleVerify: {
              appStarRating: {
                avoidInsufficientStarRating: false,
                avoidedStarRating: ''
              },
              avoidedAgeRatings: [],
              brandSafetyCategories: {
                avoidUnknownBrandSafetyCategory: false,
                avoidedHighSeverityCategories: [],
                avoidedMediumSeverityCategories: []
              },
              customSegmentId: '',
              displayViewability: {
                iab: '',
                viewableDuring: ''
              },
              fraudInvalidTraffic: {
                avoidInsufficientOption: false,
                avoidedFraudOption: ''
              },
              videoViewability: {
                playerImpressionRate: '',
                videoIab: '',
                videoViewableRate: ''
              }
            },
            integralAdScience: {
              customSegmentId: [],
              displayViewability: '',
              excludeUnrateable: false,
              excludedAdFraudRisk: '',
              excludedAdultRisk: '',
              excludedAlcoholRisk: '',
              excludedDrugsRisk: '',
              excludedGamblingRisk: '',
              excludedHateSpeechRisk: '',
              excludedIllegalDownloadsRisk: '',
              excludedOffensiveLanguageRisk: '',
              excludedViolenceRisk: '',
              traqScoreOption: '',
              videoViewability: ''
            }
          },
          urlDetails: {
            negative: false,
            url: ''
          },
          userRewardedContentDetails: {
            targetingOptionId: '',
            userRewardedContent: ''
          },
          videoPlayerSizeDetails: {
            videoPlayerSize: ''
          },
          viewabilityDetails: {
            viewability: ''
          },
          youtubeChannelDetails: {
            channelId: '',
            negative: false
          },
          youtubeVideoDetails: {
            negative: false,
            videoId: ''
          }
        }
      ],
      targetingType: ''
    }
  ],
  deleteRequests: [
    {
      assignedTargetingOptionIds: [],
      targetingType: ''
    }
  ],
  lineItemIds: []
});

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

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

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    createRequests: [
      {
        assignedTargetingOptions: [
          {
            ageRangeDetails: {ageRange: ''},
            appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
            assignedTargetingOptionId: '',
            assignedTargetingOptionIdAlias: '',
            audienceGroupDetails: {
              excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
              excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
              includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
              includedCustomListGroup: {settings: [{customListId: ''}]},
              includedFirstAndThirdPartyAudienceGroups: [{}],
              includedGoogleAudienceGroup: {}
            },
            audioContentTypeDetails: {audioContentType: ''},
            authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
            browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
            businessChainDetails: {
              displayName: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
            categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            channelDetails: {channelId: '', negative: false},
            contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
            contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
            contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
            contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
            contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
            dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
            deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
            deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
            digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
            environmentDetails: {environment: ''},
            exchangeDetails: {exchange: ''},
            genderDetails: {gender: ''},
            geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
            householdIncomeDetails: {householdIncome: ''},
            inheritance: '',
            inventorySourceDetails: {inventorySourceId: ''},
            inventorySourceGroupDetails: {inventorySourceGroupId: ''},
            keywordDetails: {keyword: '', negative: false},
            languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
            name: '',
            nativeContentPositionDetails: {contentPosition: ''},
            negativeKeywordListDetails: {negativeKeywordListId: ''},
            omidDetails: {omid: ''},
            onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
            operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
            parentalStatusDetails: {parentalStatus: ''},
            poiDetails: {
              displayName: '',
              latitude: '',
              longitude: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
            regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
            sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
            sessionPositionDetails: {sessionPosition: ''},
            subExchangeDetails: {targetingOptionId: ''},
            targetingType: '',
            thirdPartyVerifierDetails: {
              adloox: {excludedAdlooxCategories: []},
              doubleVerify: {
                appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
                avoidedAgeRatings: [],
                brandSafetyCategories: {
                  avoidUnknownBrandSafetyCategory: false,
                  avoidedHighSeverityCategories: [],
                  avoidedMediumSeverityCategories: []
                },
                customSegmentId: '',
                displayViewability: {iab: '', viewableDuring: ''},
                fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
                videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
              },
              integralAdScience: {
                customSegmentId: [],
                displayViewability: '',
                excludeUnrateable: false,
                excludedAdFraudRisk: '',
                excludedAdultRisk: '',
                excludedAlcoholRisk: '',
                excludedDrugsRisk: '',
                excludedGamblingRisk: '',
                excludedHateSpeechRisk: '',
                excludedIllegalDownloadsRisk: '',
                excludedOffensiveLanguageRisk: '',
                excludedViolenceRisk: '',
                traqScoreOption: '',
                videoViewability: ''
              }
            },
            urlDetails: {negative: false, url: ''},
            userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
            videoPlayerSizeDetails: {videoPlayerSize: ''},
            viewabilityDetails: {viewability: ''},
            youtubeChannelDetails: {channelId: '', negative: false},
            youtubeVideoDetails: {negative: false, videoId: ''}
          }
        ],
        targetingType: ''
      }
    ],
    deleteRequests: [{assignedTargetingOptionIds: [], targetingType: ''}],
    lineItemIds: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createRequests":[{"assignedTargetingOptions":[{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}],"targetingType":""}],"deleteRequests":[{"assignedTargetingOptionIds":[],"targetingType":""}],"lineItemIds":[]}'
};

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}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "createRequests": [\n    {\n      "assignedTargetingOptions": [\n        {\n          "ageRangeDetails": {\n            "ageRange": ""\n          },\n          "appCategoryDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "appDetails": {\n            "appId": "",\n            "appPlatform": "",\n            "displayName": "",\n            "negative": false\n          },\n          "assignedTargetingOptionId": "",\n          "assignedTargetingOptionIdAlias": "",\n          "audienceGroupDetails": {\n            "excludedFirstAndThirdPartyAudienceGroup": {\n              "settings": [\n                {\n                  "firstAndThirdPartyAudienceId": "",\n                  "recency": ""\n                }\n              ]\n            },\n            "excludedGoogleAudienceGroup": {\n              "settings": [\n                {\n                  "googleAudienceId": ""\n                }\n              ]\n            },\n            "includedCombinedAudienceGroup": {\n              "settings": [\n                {\n                  "combinedAudienceId": ""\n                }\n              ]\n            },\n            "includedCustomListGroup": {\n              "settings": [\n                {\n                  "customListId": ""\n                }\n              ]\n            },\n            "includedFirstAndThirdPartyAudienceGroups": [\n              {}\n            ],\n            "includedGoogleAudienceGroup": {}\n          },\n          "audioContentTypeDetails": {\n            "audioContentType": ""\n          },\n          "authorizedSellerStatusDetails": {\n            "authorizedSellerStatus": "",\n            "targetingOptionId": ""\n          },\n          "browserDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "businessChainDetails": {\n            "displayName": "",\n            "proximityRadiusAmount": "",\n            "proximityRadiusUnit": "",\n            "targetingOptionId": ""\n          },\n          "carrierAndIspDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "categoryDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "channelDetails": {\n            "channelId": "",\n            "negative": false\n          },\n          "contentDurationDetails": {\n            "contentDuration": "",\n            "targetingOptionId": ""\n          },\n          "contentGenreDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "contentInstreamPositionDetails": {\n            "adType": "",\n            "contentInstreamPosition": ""\n          },\n          "contentOutstreamPositionDetails": {\n            "adType": "",\n            "contentOutstreamPosition": ""\n          },\n          "contentStreamTypeDetails": {\n            "contentStreamType": "",\n            "targetingOptionId": ""\n          },\n          "dayAndTimeDetails": {\n            "dayOfWeek": "",\n            "endHour": 0,\n            "startHour": 0,\n            "timeZoneResolution": ""\n          },\n          "deviceMakeModelDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "deviceTypeDetails": {\n            "deviceType": "",\n            "youtubeAndPartnersBidMultiplier": ""\n          },\n          "digitalContentLabelExclusionDetails": {\n            "excludedContentRatingTier": ""\n          },\n          "environmentDetails": {\n            "environment": ""\n          },\n          "exchangeDetails": {\n            "exchange": ""\n          },\n          "genderDetails": {\n            "gender": ""\n          },\n          "geoRegionDetails": {\n            "displayName": "",\n            "geoRegionType": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "householdIncomeDetails": {\n            "householdIncome": ""\n          },\n          "inheritance": "",\n          "inventorySourceDetails": {\n            "inventorySourceId": ""\n          },\n          "inventorySourceGroupDetails": {\n            "inventorySourceGroupId": ""\n          },\n          "keywordDetails": {\n            "keyword": "",\n            "negative": false\n          },\n          "languageDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "name": "",\n          "nativeContentPositionDetails": {\n            "contentPosition": ""\n          },\n          "negativeKeywordListDetails": {\n            "negativeKeywordListId": ""\n          },\n          "omidDetails": {\n            "omid": ""\n          },\n          "onScreenPositionDetails": {\n            "adType": "",\n            "onScreenPosition": "",\n            "targetingOptionId": ""\n          },\n          "operatingSystemDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "parentalStatusDetails": {\n            "parentalStatus": ""\n          },\n          "poiDetails": {\n            "displayName": "",\n            "latitude": "",\n            "longitude": "",\n            "proximityRadiusAmount": "",\n            "proximityRadiusUnit": "",\n            "targetingOptionId": ""\n          },\n          "proximityLocationListDetails": {\n            "proximityLocationListId": "",\n            "proximityRadius": "",\n            "proximityRadiusUnit": ""\n          },\n          "regionalLocationListDetails": {\n            "negative": false,\n            "regionalLocationListId": ""\n          },\n          "sensitiveCategoryExclusionDetails": {\n            "excludedSensitiveCategory": ""\n          },\n          "sessionPositionDetails": {\n            "sessionPosition": ""\n          },\n          "subExchangeDetails": {\n            "targetingOptionId": ""\n          },\n          "targetingType": "",\n          "thirdPartyVerifierDetails": {\n            "adloox": {\n              "excludedAdlooxCategories": []\n            },\n            "doubleVerify": {\n              "appStarRating": {\n                "avoidInsufficientStarRating": false,\n                "avoidedStarRating": ""\n              },\n              "avoidedAgeRatings": [],\n              "brandSafetyCategories": {\n                "avoidUnknownBrandSafetyCategory": false,\n                "avoidedHighSeverityCategories": [],\n                "avoidedMediumSeverityCategories": []\n              },\n              "customSegmentId": "",\n              "displayViewability": {\n                "iab": "",\n                "viewableDuring": ""\n              },\n              "fraudInvalidTraffic": {\n                "avoidInsufficientOption": false,\n                "avoidedFraudOption": ""\n              },\n              "videoViewability": {\n                "playerImpressionRate": "",\n                "videoIab": "",\n                "videoViewableRate": ""\n              }\n            },\n            "integralAdScience": {\n              "customSegmentId": [],\n              "displayViewability": "",\n              "excludeUnrateable": false,\n              "excludedAdFraudRisk": "",\n              "excludedAdultRisk": "",\n              "excludedAlcoholRisk": "",\n              "excludedDrugsRisk": "",\n              "excludedGamblingRisk": "",\n              "excludedHateSpeechRisk": "",\n              "excludedIllegalDownloadsRisk": "",\n              "excludedOffensiveLanguageRisk": "",\n              "excludedViolenceRisk": "",\n              "traqScoreOption": "",\n              "videoViewability": ""\n            }\n          },\n          "urlDetails": {\n            "negative": false,\n            "url": ""\n          },\n          "userRewardedContentDetails": {\n            "targetingOptionId": "",\n            "userRewardedContent": ""\n          },\n          "videoPlayerSizeDetails": {\n            "videoPlayerSize": ""\n          },\n          "viewabilityDetails": {\n            "viewability": ""\n          },\n          "youtubeChannelDetails": {\n            "channelId": "",\n            "negative": false\n          },\n          "youtubeVideoDetails": {\n            "negative": false,\n            "videoId": ""\n          }\n        }\n      ],\n      "targetingType": ""\n    }\n  ],\n  "deleteRequests": [\n    {\n      "assignedTargetingOptionIds": [],\n      "targetingType": ""\n    }\n  ],\n  "lineItemIds": []\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions")
  .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/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions',
  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({
  createRequests: [
    {
      assignedTargetingOptions: [
        {
          ageRangeDetails: {ageRange: ''},
          appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
          appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
          assignedTargetingOptionId: '',
          assignedTargetingOptionIdAlias: '',
          audienceGroupDetails: {
            excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
            excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
            includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
            includedCustomListGroup: {settings: [{customListId: ''}]},
            includedFirstAndThirdPartyAudienceGroups: [{}],
            includedGoogleAudienceGroup: {}
          },
          audioContentTypeDetails: {audioContentType: ''},
          authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
          browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
          businessChainDetails: {
            displayName: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
          categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
          channelDetails: {channelId: '', negative: false},
          contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
          contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
          contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
          contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
          contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
          dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
          deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
          deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
          digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
          environmentDetails: {environment: ''},
          exchangeDetails: {exchange: ''},
          genderDetails: {gender: ''},
          geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
          householdIncomeDetails: {householdIncome: ''},
          inheritance: '',
          inventorySourceDetails: {inventorySourceId: ''},
          inventorySourceGroupDetails: {inventorySourceGroupId: ''},
          keywordDetails: {keyword: '', negative: false},
          languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
          name: '',
          nativeContentPositionDetails: {contentPosition: ''},
          negativeKeywordListDetails: {negativeKeywordListId: ''},
          omidDetails: {omid: ''},
          onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
          operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
          parentalStatusDetails: {parentalStatus: ''},
          poiDetails: {
            displayName: '',
            latitude: '',
            longitude: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
          regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
          sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
          sessionPositionDetails: {sessionPosition: ''},
          subExchangeDetails: {targetingOptionId: ''},
          targetingType: '',
          thirdPartyVerifierDetails: {
            adloox: {excludedAdlooxCategories: []},
            doubleVerify: {
              appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
              avoidedAgeRatings: [],
              brandSafetyCategories: {
                avoidUnknownBrandSafetyCategory: false,
                avoidedHighSeverityCategories: [],
                avoidedMediumSeverityCategories: []
              },
              customSegmentId: '',
              displayViewability: {iab: '', viewableDuring: ''},
              fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
              videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
            },
            integralAdScience: {
              customSegmentId: [],
              displayViewability: '',
              excludeUnrateable: false,
              excludedAdFraudRisk: '',
              excludedAdultRisk: '',
              excludedAlcoholRisk: '',
              excludedDrugsRisk: '',
              excludedGamblingRisk: '',
              excludedHateSpeechRisk: '',
              excludedIllegalDownloadsRisk: '',
              excludedOffensiveLanguageRisk: '',
              excludedViolenceRisk: '',
              traqScoreOption: '',
              videoViewability: ''
            }
          },
          urlDetails: {negative: false, url: ''},
          userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
          videoPlayerSizeDetails: {videoPlayerSize: ''},
          viewabilityDetails: {viewability: ''},
          youtubeChannelDetails: {channelId: '', negative: false},
          youtubeVideoDetails: {negative: false, videoId: ''}
        }
      ],
      targetingType: ''
    }
  ],
  deleteRequests: [{assignedTargetingOptionIds: [], targetingType: ''}],
  lineItemIds: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  body: {
    createRequests: [
      {
        assignedTargetingOptions: [
          {
            ageRangeDetails: {ageRange: ''},
            appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
            assignedTargetingOptionId: '',
            assignedTargetingOptionIdAlias: '',
            audienceGroupDetails: {
              excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
              excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
              includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
              includedCustomListGroup: {settings: [{customListId: ''}]},
              includedFirstAndThirdPartyAudienceGroups: [{}],
              includedGoogleAudienceGroup: {}
            },
            audioContentTypeDetails: {audioContentType: ''},
            authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
            browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
            businessChainDetails: {
              displayName: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
            categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            channelDetails: {channelId: '', negative: false},
            contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
            contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
            contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
            contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
            contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
            dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
            deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
            deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
            digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
            environmentDetails: {environment: ''},
            exchangeDetails: {exchange: ''},
            genderDetails: {gender: ''},
            geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
            householdIncomeDetails: {householdIncome: ''},
            inheritance: '',
            inventorySourceDetails: {inventorySourceId: ''},
            inventorySourceGroupDetails: {inventorySourceGroupId: ''},
            keywordDetails: {keyword: '', negative: false},
            languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
            name: '',
            nativeContentPositionDetails: {contentPosition: ''},
            negativeKeywordListDetails: {negativeKeywordListId: ''},
            omidDetails: {omid: ''},
            onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
            operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
            parentalStatusDetails: {parentalStatus: ''},
            poiDetails: {
              displayName: '',
              latitude: '',
              longitude: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
            regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
            sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
            sessionPositionDetails: {sessionPosition: ''},
            subExchangeDetails: {targetingOptionId: ''},
            targetingType: '',
            thirdPartyVerifierDetails: {
              adloox: {excludedAdlooxCategories: []},
              doubleVerify: {
                appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
                avoidedAgeRatings: [],
                brandSafetyCategories: {
                  avoidUnknownBrandSafetyCategory: false,
                  avoidedHighSeverityCategories: [],
                  avoidedMediumSeverityCategories: []
                },
                customSegmentId: '',
                displayViewability: {iab: '', viewableDuring: ''},
                fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
                videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
              },
              integralAdScience: {
                customSegmentId: [],
                displayViewability: '',
                excludeUnrateable: false,
                excludedAdFraudRisk: '',
                excludedAdultRisk: '',
                excludedAlcoholRisk: '',
                excludedDrugsRisk: '',
                excludedGamblingRisk: '',
                excludedHateSpeechRisk: '',
                excludedIllegalDownloadsRisk: '',
                excludedOffensiveLanguageRisk: '',
                excludedViolenceRisk: '',
                traqScoreOption: '',
                videoViewability: ''
              }
            },
            urlDetails: {negative: false, url: ''},
            userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
            videoPlayerSizeDetails: {videoPlayerSize: ''},
            viewabilityDetails: {viewability: ''},
            youtubeChannelDetails: {channelId: '', negative: false},
            youtubeVideoDetails: {negative: false, videoId: ''}
          }
        ],
        targetingType: ''
      }
    ],
    deleteRequests: [{assignedTargetingOptionIds: [], targetingType: ''}],
    lineItemIds: []
  },
  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}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions');

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

req.type('json');
req.send({
  createRequests: [
    {
      assignedTargetingOptions: [
        {
          ageRangeDetails: {
            ageRange: ''
          },
          appCategoryDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          appDetails: {
            appId: '',
            appPlatform: '',
            displayName: '',
            negative: false
          },
          assignedTargetingOptionId: '',
          assignedTargetingOptionIdAlias: '',
          audienceGroupDetails: {
            excludedFirstAndThirdPartyAudienceGroup: {
              settings: [
                {
                  firstAndThirdPartyAudienceId: '',
                  recency: ''
                }
              ]
            },
            excludedGoogleAudienceGroup: {
              settings: [
                {
                  googleAudienceId: ''
                }
              ]
            },
            includedCombinedAudienceGroup: {
              settings: [
                {
                  combinedAudienceId: ''
                }
              ]
            },
            includedCustomListGroup: {
              settings: [
                {
                  customListId: ''
                }
              ]
            },
            includedFirstAndThirdPartyAudienceGroups: [
              {}
            ],
            includedGoogleAudienceGroup: {}
          },
          audioContentTypeDetails: {
            audioContentType: ''
          },
          authorizedSellerStatusDetails: {
            authorizedSellerStatus: '',
            targetingOptionId: ''
          },
          browserDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          businessChainDetails: {
            displayName: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          carrierAndIspDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          categoryDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          channelDetails: {
            channelId: '',
            negative: false
          },
          contentDurationDetails: {
            contentDuration: '',
            targetingOptionId: ''
          },
          contentGenreDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          contentInstreamPositionDetails: {
            adType: '',
            contentInstreamPosition: ''
          },
          contentOutstreamPositionDetails: {
            adType: '',
            contentOutstreamPosition: ''
          },
          contentStreamTypeDetails: {
            contentStreamType: '',
            targetingOptionId: ''
          },
          dayAndTimeDetails: {
            dayOfWeek: '',
            endHour: 0,
            startHour: 0,
            timeZoneResolution: ''
          },
          deviceMakeModelDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          deviceTypeDetails: {
            deviceType: '',
            youtubeAndPartnersBidMultiplier: ''
          },
          digitalContentLabelExclusionDetails: {
            excludedContentRatingTier: ''
          },
          environmentDetails: {
            environment: ''
          },
          exchangeDetails: {
            exchange: ''
          },
          genderDetails: {
            gender: ''
          },
          geoRegionDetails: {
            displayName: '',
            geoRegionType: '',
            negative: false,
            targetingOptionId: ''
          },
          householdIncomeDetails: {
            householdIncome: ''
          },
          inheritance: '',
          inventorySourceDetails: {
            inventorySourceId: ''
          },
          inventorySourceGroupDetails: {
            inventorySourceGroupId: ''
          },
          keywordDetails: {
            keyword: '',
            negative: false
          },
          languageDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          name: '',
          nativeContentPositionDetails: {
            contentPosition: ''
          },
          negativeKeywordListDetails: {
            negativeKeywordListId: ''
          },
          omidDetails: {
            omid: ''
          },
          onScreenPositionDetails: {
            adType: '',
            onScreenPosition: '',
            targetingOptionId: ''
          },
          operatingSystemDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          parentalStatusDetails: {
            parentalStatus: ''
          },
          poiDetails: {
            displayName: '',
            latitude: '',
            longitude: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          proximityLocationListDetails: {
            proximityLocationListId: '',
            proximityRadius: '',
            proximityRadiusUnit: ''
          },
          regionalLocationListDetails: {
            negative: false,
            regionalLocationListId: ''
          },
          sensitiveCategoryExclusionDetails: {
            excludedSensitiveCategory: ''
          },
          sessionPositionDetails: {
            sessionPosition: ''
          },
          subExchangeDetails: {
            targetingOptionId: ''
          },
          targetingType: '',
          thirdPartyVerifierDetails: {
            adloox: {
              excludedAdlooxCategories: []
            },
            doubleVerify: {
              appStarRating: {
                avoidInsufficientStarRating: false,
                avoidedStarRating: ''
              },
              avoidedAgeRatings: [],
              brandSafetyCategories: {
                avoidUnknownBrandSafetyCategory: false,
                avoidedHighSeverityCategories: [],
                avoidedMediumSeverityCategories: []
              },
              customSegmentId: '',
              displayViewability: {
                iab: '',
                viewableDuring: ''
              },
              fraudInvalidTraffic: {
                avoidInsufficientOption: false,
                avoidedFraudOption: ''
              },
              videoViewability: {
                playerImpressionRate: '',
                videoIab: '',
                videoViewableRate: ''
              }
            },
            integralAdScience: {
              customSegmentId: [],
              displayViewability: '',
              excludeUnrateable: false,
              excludedAdFraudRisk: '',
              excludedAdultRisk: '',
              excludedAlcoholRisk: '',
              excludedDrugsRisk: '',
              excludedGamblingRisk: '',
              excludedHateSpeechRisk: '',
              excludedIllegalDownloadsRisk: '',
              excludedOffensiveLanguageRisk: '',
              excludedViolenceRisk: '',
              traqScoreOption: '',
              videoViewability: ''
            }
          },
          urlDetails: {
            negative: false,
            url: ''
          },
          userRewardedContentDetails: {
            targetingOptionId: '',
            userRewardedContent: ''
          },
          videoPlayerSizeDetails: {
            videoPlayerSize: ''
          },
          viewabilityDetails: {
            viewability: ''
          },
          youtubeChannelDetails: {
            channelId: '',
            negative: false
          },
          youtubeVideoDetails: {
            negative: false,
            videoId: ''
          }
        }
      ],
      targetingType: ''
    }
  ],
  deleteRequests: [
    {
      assignedTargetingOptionIds: [],
      targetingType: ''
    }
  ],
  lineItemIds: []
});

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}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    createRequests: [
      {
        assignedTargetingOptions: [
          {
            ageRangeDetails: {ageRange: ''},
            appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
            assignedTargetingOptionId: '',
            assignedTargetingOptionIdAlias: '',
            audienceGroupDetails: {
              excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
              excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
              includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
              includedCustomListGroup: {settings: [{customListId: ''}]},
              includedFirstAndThirdPartyAudienceGroups: [{}],
              includedGoogleAudienceGroup: {}
            },
            audioContentTypeDetails: {audioContentType: ''},
            authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
            browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
            businessChainDetails: {
              displayName: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
            categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            channelDetails: {channelId: '', negative: false},
            contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
            contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
            contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
            contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
            contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
            dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
            deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
            deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
            digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
            environmentDetails: {environment: ''},
            exchangeDetails: {exchange: ''},
            genderDetails: {gender: ''},
            geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
            householdIncomeDetails: {householdIncome: ''},
            inheritance: '',
            inventorySourceDetails: {inventorySourceId: ''},
            inventorySourceGroupDetails: {inventorySourceGroupId: ''},
            keywordDetails: {keyword: '', negative: false},
            languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
            name: '',
            nativeContentPositionDetails: {contentPosition: ''},
            negativeKeywordListDetails: {negativeKeywordListId: ''},
            omidDetails: {omid: ''},
            onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
            operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
            parentalStatusDetails: {parentalStatus: ''},
            poiDetails: {
              displayName: '',
              latitude: '',
              longitude: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
            regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
            sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
            sessionPositionDetails: {sessionPosition: ''},
            subExchangeDetails: {targetingOptionId: ''},
            targetingType: '',
            thirdPartyVerifierDetails: {
              adloox: {excludedAdlooxCategories: []},
              doubleVerify: {
                appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
                avoidedAgeRatings: [],
                brandSafetyCategories: {
                  avoidUnknownBrandSafetyCategory: false,
                  avoidedHighSeverityCategories: [],
                  avoidedMediumSeverityCategories: []
                },
                customSegmentId: '',
                displayViewability: {iab: '', viewableDuring: ''},
                fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
                videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
              },
              integralAdScience: {
                customSegmentId: [],
                displayViewability: '',
                excludeUnrateable: false,
                excludedAdFraudRisk: '',
                excludedAdultRisk: '',
                excludedAlcoholRisk: '',
                excludedDrugsRisk: '',
                excludedGamblingRisk: '',
                excludedHateSpeechRisk: '',
                excludedIllegalDownloadsRisk: '',
                excludedOffensiveLanguageRisk: '',
                excludedViolenceRisk: '',
                traqScoreOption: '',
                videoViewability: ''
              }
            },
            urlDetails: {negative: false, url: ''},
            userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
            videoPlayerSizeDetails: {videoPlayerSize: ''},
            viewabilityDetails: {viewability: ''},
            youtubeChannelDetails: {channelId: '', negative: false},
            youtubeVideoDetails: {negative: false, videoId: ''}
          }
        ],
        targetingType: ''
      }
    ],
    deleteRequests: [{assignedTargetingOptionIds: [], targetingType: ''}],
    lineItemIds: []
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createRequests":[{"assignedTargetingOptions":[{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}],"targetingType":""}],"deleteRequests":[{"assignedTargetingOptionIds":[],"targetingType":""}],"lineItemIds":[]}'
};

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 = @{ @"createRequests": @[ @{ @"assignedTargetingOptions": @[ @{ @"ageRangeDetails": @{ @"ageRange": @"" }, @"appCategoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"appDetails": @{ @"appId": @"", @"appPlatform": @"", @"displayName": @"", @"negative": @NO }, @"assignedTargetingOptionId": @"", @"assignedTargetingOptionIdAlias": @"", @"audienceGroupDetails": @{ @"excludedFirstAndThirdPartyAudienceGroup": @{ @"settings": @[ @{ @"firstAndThirdPartyAudienceId": @"", @"recency": @"" } ] }, @"excludedGoogleAudienceGroup": @{ @"settings": @[ @{ @"googleAudienceId": @"" } ] }, @"includedCombinedAudienceGroup": @{ @"settings": @[ @{ @"combinedAudienceId": @"" } ] }, @"includedCustomListGroup": @{ @"settings": @[ @{ @"customListId": @"" } ] }, @"includedFirstAndThirdPartyAudienceGroups": @[ @{  } ], @"includedGoogleAudienceGroup": @{  } }, @"audioContentTypeDetails": @{ @"audioContentType": @"" }, @"authorizedSellerStatusDetails": @{ @"authorizedSellerStatus": @"", @"targetingOptionId": @"" }, @"browserDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"businessChainDetails": @{ @"displayName": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" }, @"carrierAndIspDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"categoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"channelDetails": @{ @"channelId": @"", @"negative": @NO }, @"contentDurationDetails": @{ @"contentDuration": @"", @"targetingOptionId": @"" }, @"contentGenreDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"contentInstreamPositionDetails": @{ @"adType": @"", @"contentInstreamPosition": @"" }, @"contentOutstreamPositionDetails": @{ @"adType": @"", @"contentOutstreamPosition": @"" }, @"contentStreamTypeDetails": @{ @"contentStreamType": @"", @"targetingOptionId": @"" }, @"dayAndTimeDetails": @{ @"dayOfWeek": @"", @"endHour": @0, @"startHour": @0, @"timeZoneResolution": @"" }, @"deviceMakeModelDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"deviceTypeDetails": @{ @"deviceType": @"", @"youtubeAndPartnersBidMultiplier": @"" }, @"digitalContentLabelExclusionDetails": @{ @"excludedContentRatingTier": @"" }, @"environmentDetails": @{ @"environment": @"" }, @"exchangeDetails": @{ @"exchange": @"" }, @"genderDetails": @{ @"gender": @"" }, @"geoRegionDetails": @{ @"displayName": @"", @"geoRegionType": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"householdIncomeDetails": @{ @"householdIncome": @"" }, @"inheritance": @"", @"inventorySourceDetails": @{ @"inventorySourceId": @"" }, @"inventorySourceGroupDetails": @{ @"inventorySourceGroupId": @"" }, @"keywordDetails": @{ @"keyword": @"", @"negative": @NO }, @"languageDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"name": @"", @"nativeContentPositionDetails": @{ @"contentPosition": @"" }, @"negativeKeywordListDetails": @{ @"negativeKeywordListId": @"" }, @"omidDetails": @{ @"omid": @"" }, @"onScreenPositionDetails": @{ @"adType": @"", @"onScreenPosition": @"", @"targetingOptionId": @"" }, @"operatingSystemDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"parentalStatusDetails": @{ @"parentalStatus": @"" }, @"poiDetails": @{ @"displayName": @"", @"latitude": @"", @"longitude": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" }, @"proximityLocationListDetails": @{ @"proximityLocationListId": @"", @"proximityRadius": @"", @"proximityRadiusUnit": @"" }, @"regionalLocationListDetails": @{ @"negative": @NO, @"regionalLocationListId": @"" }, @"sensitiveCategoryExclusionDetails": @{ @"excludedSensitiveCategory": @"" }, @"sessionPositionDetails": @{ @"sessionPosition": @"" }, @"subExchangeDetails": @{ @"targetingOptionId": @"" }, @"targetingType": @"", @"thirdPartyVerifierDetails": @{ @"adloox": @{ @"excludedAdlooxCategories": @[  ] }, @"doubleVerify": @{ @"appStarRating": @{ @"avoidInsufficientStarRating": @NO, @"avoidedStarRating": @"" }, @"avoidedAgeRatings": @[  ], @"brandSafetyCategories": @{ @"avoidUnknownBrandSafetyCategory": @NO, @"avoidedHighSeverityCategories": @[  ], @"avoidedMediumSeverityCategories": @[  ] }, @"customSegmentId": @"", @"displayViewability": @{ @"iab": @"", @"viewableDuring": @"" }, @"fraudInvalidTraffic": @{ @"avoidInsufficientOption": @NO, @"avoidedFraudOption": @"" }, @"videoViewability": @{ @"playerImpressionRate": @"", @"videoIab": @"", @"videoViewableRate": @"" } }, @"integralAdScience": @{ @"customSegmentId": @[  ], @"displayViewability": @"", @"excludeUnrateable": @NO, @"excludedAdFraudRisk": @"", @"excludedAdultRisk": @"", @"excludedAlcoholRisk": @"", @"excludedDrugsRisk": @"", @"excludedGamblingRisk": @"", @"excludedHateSpeechRisk": @"", @"excludedIllegalDownloadsRisk": @"", @"excludedOffensiveLanguageRisk": @"", @"excludedViolenceRisk": @"", @"traqScoreOption": @"", @"videoViewability": @"" } }, @"urlDetails": @{ @"negative": @NO, @"url": @"" }, @"userRewardedContentDetails": @{ @"targetingOptionId": @"", @"userRewardedContent": @"" }, @"videoPlayerSizeDetails": @{ @"videoPlayerSize": @"" }, @"viewabilityDetails": @{ @"viewability": @"" }, @"youtubeChannelDetails": @{ @"channelId": @"", @"negative": @NO }, @"youtubeVideoDetails": @{ @"negative": @NO, @"videoId": @"" } } ], @"targetingType": @"" } ],
                              @"deleteRequests": @[ @{ @"assignedTargetingOptionIds": @[  ], @"targetingType": @"" } ],
                              @"lineItemIds": @[  ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions",
  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([
    'createRequests' => [
        [
                'assignedTargetingOptions' => [
                                [
                                                                'ageRangeDetails' => [
                                                                                                                                'ageRange' => ''
                                                                ],
                                                                'appCategoryDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'appDetails' => [
                                                                                                                                'appId' => '',
                                                                                                                                'appPlatform' => '',
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null
                                                                ],
                                                                'assignedTargetingOptionId' => '',
                                                                'assignedTargetingOptionIdAlias' => '',
                                                                'audienceGroupDetails' => [
                                                                                                                                'excludedFirstAndThirdPartyAudienceGroup' => [
                                                                                                                                                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'firstAndThirdPartyAudienceId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'recency' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'excludedGoogleAudienceGroup' => [
                                                                                                                                                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'googleAudienceId' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'includedCombinedAudienceGroup' => [
                                                                                                                                                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'combinedAudienceId' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'includedCustomListGroup' => [
                                                                                                                                                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'customListId' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'includedFirstAndThirdPartyAudienceGroups' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'includedGoogleAudienceGroup' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'audioContentTypeDetails' => [
                                                                                                                                'audioContentType' => ''
                                                                ],
                                                                'authorizedSellerStatusDetails' => [
                                                                                                                                'authorizedSellerStatus' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'browserDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'businessChainDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'proximityRadiusAmount' => '',
                                                                                                                                'proximityRadiusUnit' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'carrierAndIspDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'categoryDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'channelDetails' => [
                                                                                                                                'channelId' => '',
                                                                                                                                'negative' => null
                                                                ],
                                                                'contentDurationDetails' => [
                                                                                                                                'contentDuration' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'contentGenreDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'contentInstreamPositionDetails' => [
                                                                                                                                'adType' => '',
                                                                                                                                'contentInstreamPosition' => ''
                                                                ],
                                                                'contentOutstreamPositionDetails' => [
                                                                                                                                'adType' => '',
                                                                                                                                'contentOutstreamPosition' => ''
                                                                ],
                                                                'contentStreamTypeDetails' => [
                                                                                                                                'contentStreamType' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'dayAndTimeDetails' => [
                                                                                                                                'dayOfWeek' => '',
                                                                                                                                'endHour' => 0,
                                                                                                                                'startHour' => 0,
                                                                                                                                'timeZoneResolution' => ''
                                                                ],
                                                                'deviceMakeModelDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'deviceTypeDetails' => [
                                                                                                                                'deviceType' => '',
                                                                                                                                'youtubeAndPartnersBidMultiplier' => ''
                                                                ],
                                                                'digitalContentLabelExclusionDetails' => [
                                                                                                                                'excludedContentRatingTier' => ''
                                                                ],
                                                                'environmentDetails' => [
                                                                                                                                'environment' => ''
                                                                ],
                                                                'exchangeDetails' => [
                                                                                                                                'exchange' => ''
                                                                ],
                                                                'genderDetails' => [
                                                                                                                                'gender' => ''
                                                                ],
                                                                'geoRegionDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'geoRegionType' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'householdIncomeDetails' => [
                                                                                                                                'householdIncome' => ''
                                                                ],
                                                                'inheritance' => '',
                                                                'inventorySourceDetails' => [
                                                                                                                                'inventorySourceId' => ''
                                                                ],
                                                                'inventorySourceGroupDetails' => [
                                                                                                                                'inventorySourceGroupId' => ''
                                                                ],
                                                                'keywordDetails' => [
                                                                                                                                'keyword' => '',
                                                                                                                                'negative' => null
                                                                ],
                                                                'languageDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'name' => '',
                                                                'nativeContentPositionDetails' => [
                                                                                                                                'contentPosition' => ''
                                                                ],
                                                                'negativeKeywordListDetails' => [
                                                                                                                                'negativeKeywordListId' => ''
                                                                ],
                                                                'omidDetails' => [
                                                                                                                                'omid' => ''
                                                                ],
                                                                'onScreenPositionDetails' => [
                                                                                                                                'adType' => '',
                                                                                                                                'onScreenPosition' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'operatingSystemDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'parentalStatusDetails' => [
                                                                                                                                'parentalStatus' => ''
                                                                ],
                                                                'poiDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'latitude' => '',
                                                                                                                                'longitude' => '',
                                                                                                                                'proximityRadiusAmount' => '',
                                                                                                                                'proximityRadiusUnit' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'proximityLocationListDetails' => [
                                                                                                                                'proximityLocationListId' => '',
                                                                                                                                'proximityRadius' => '',
                                                                                                                                'proximityRadiusUnit' => ''
                                                                ],
                                                                'regionalLocationListDetails' => [
                                                                                                                                'negative' => null,
                                                                                                                                'regionalLocationListId' => ''
                                                                ],
                                                                'sensitiveCategoryExclusionDetails' => [
                                                                                                                                'excludedSensitiveCategory' => ''
                                                                ],
                                                                'sessionPositionDetails' => [
                                                                                                                                'sessionPosition' => ''
                                                                ],
                                                                'subExchangeDetails' => [
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'targetingType' => '',
                                                                'thirdPartyVerifierDetails' => [
                                                                                                                                'adloox' => [
                                                                                                                                                                                                                                                                'excludedAdlooxCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'doubleVerify' => [
                                                                                                                                                                                                                                                                'appStarRating' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidInsufficientStarRating' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidedStarRating' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'avoidedAgeRatings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'brandSafetyCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidUnknownBrandSafetyCategory' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidedHighSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidedMediumSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'customSegmentId' => '',
                                                                                                                                                                                                                                                                'displayViewability' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iab' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'viewableDuring' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'fraudInvalidTraffic' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidInsufficientOption' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidedFraudOption' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'videoViewability' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'playerImpressionRate' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'videoIab' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'videoViewableRate' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'integralAdScience' => [
                                                                                                                                                                                                                                                                'customSegmentId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'displayViewability' => '',
                                                                                                                                                                                                                                                                'excludeUnrateable' => null,
                                                                                                                                                                                                                                                                'excludedAdFraudRisk' => '',
                                                                                                                                                                                                                                                                'excludedAdultRisk' => '',
                                                                                                                                                                                                                                                                'excludedAlcoholRisk' => '',
                                                                                                                                                                                                                                                                'excludedDrugsRisk' => '',
                                                                                                                                                                                                                                                                'excludedGamblingRisk' => '',
                                                                                                                                                                                                                                                                'excludedHateSpeechRisk' => '',
                                                                                                                                                                                                                                                                'excludedIllegalDownloadsRisk' => '',
                                                                                                                                                                                                                                                                'excludedOffensiveLanguageRisk' => '',
                                                                                                                                                                                                                                                                'excludedViolenceRisk' => '',
                                                                                                                                                                                                                                                                'traqScoreOption' => '',
                                                                                                                                                                                                                                                                'videoViewability' => ''
                                                                                                                                ]
                                                                ],
                                                                'urlDetails' => [
                                                                                                                                'negative' => null,
                                                                                                                                'url' => ''
                                                                ],
                                                                'userRewardedContentDetails' => [
                                                                                                                                'targetingOptionId' => '',
                                                                                                                                'userRewardedContent' => ''
                                                                ],
                                                                'videoPlayerSizeDetails' => [
                                                                                                                                'videoPlayerSize' => ''
                                                                ],
                                                                'viewabilityDetails' => [
                                                                                                                                'viewability' => ''
                                                                ],
                                                                'youtubeChannelDetails' => [
                                                                                                                                'channelId' => '',
                                                                                                                                'negative' => null
                                                                ],
                                                                'youtubeVideoDetails' => [
                                                                                                                                'negative' => null,
                                                                                                                                'videoId' => ''
                                                                ]
                                ]
                ],
                'targetingType' => ''
        ]
    ],
    'deleteRequests' => [
        [
                'assignedTargetingOptionIds' => [
                                
                ],
                'targetingType' => ''
        ]
    ],
    'lineItemIds' => [
        
    ]
  ]),
  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}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions', [
  'body' => '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ],
  "lineItemIds": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'createRequests' => [
    [
        'assignedTargetingOptions' => [
                [
                                'ageRangeDetails' => [
                                                                'ageRange' => ''
                                ],
                                'appCategoryDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'appDetails' => [
                                                                'appId' => '',
                                                                'appPlatform' => '',
                                                                'displayName' => '',
                                                                'negative' => null
                                ],
                                'assignedTargetingOptionId' => '',
                                'assignedTargetingOptionIdAlias' => '',
                                'audienceGroupDetails' => [
                                                                'excludedFirstAndThirdPartyAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'firstAndThirdPartyAudienceId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'recency' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'excludedGoogleAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'googleAudienceId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedCombinedAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'combinedAudienceId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedCustomListGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'customListId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedFirstAndThirdPartyAudienceGroups' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'includedGoogleAudienceGroup' => [
                                                                                                                                
                                                                ]
                                ],
                                'audioContentTypeDetails' => [
                                                                'audioContentType' => ''
                                ],
                                'authorizedSellerStatusDetails' => [
                                                                'authorizedSellerStatus' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'browserDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'businessChainDetails' => [
                                                                'displayName' => '',
                                                                'proximityRadiusAmount' => '',
                                                                'proximityRadiusUnit' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'carrierAndIspDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'categoryDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'channelDetails' => [
                                                                'channelId' => '',
                                                                'negative' => null
                                ],
                                'contentDurationDetails' => [
                                                                'contentDuration' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'contentGenreDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'contentInstreamPositionDetails' => [
                                                                'adType' => '',
                                                                'contentInstreamPosition' => ''
                                ],
                                'contentOutstreamPositionDetails' => [
                                                                'adType' => '',
                                                                'contentOutstreamPosition' => ''
                                ],
                                'contentStreamTypeDetails' => [
                                                                'contentStreamType' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'dayAndTimeDetails' => [
                                                                'dayOfWeek' => '',
                                                                'endHour' => 0,
                                                                'startHour' => 0,
                                                                'timeZoneResolution' => ''
                                ],
                                'deviceMakeModelDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'deviceTypeDetails' => [
                                                                'deviceType' => '',
                                                                'youtubeAndPartnersBidMultiplier' => ''
                                ],
                                'digitalContentLabelExclusionDetails' => [
                                                                'excludedContentRatingTier' => ''
                                ],
                                'environmentDetails' => [
                                                                'environment' => ''
                                ],
                                'exchangeDetails' => [
                                                                'exchange' => ''
                                ],
                                'genderDetails' => [
                                                                'gender' => ''
                                ],
                                'geoRegionDetails' => [
                                                                'displayName' => '',
                                                                'geoRegionType' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'householdIncomeDetails' => [
                                                                'householdIncome' => ''
                                ],
                                'inheritance' => '',
                                'inventorySourceDetails' => [
                                                                'inventorySourceId' => ''
                                ],
                                'inventorySourceGroupDetails' => [
                                                                'inventorySourceGroupId' => ''
                                ],
                                'keywordDetails' => [
                                                                'keyword' => '',
                                                                'negative' => null
                                ],
                                'languageDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'name' => '',
                                'nativeContentPositionDetails' => [
                                                                'contentPosition' => ''
                                ],
                                'negativeKeywordListDetails' => [
                                                                'negativeKeywordListId' => ''
                                ],
                                'omidDetails' => [
                                                                'omid' => ''
                                ],
                                'onScreenPositionDetails' => [
                                                                'adType' => '',
                                                                'onScreenPosition' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'operatingSystemDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'parentalStatusDetails' => [
                                                                'parentalStatus' => ''
                                ],
                                'poiDetails' => [
                                                                'displayName' => '',
                                                                'latitude' => '',
                                                                'longitude' => '',
                                                                'proximityRadiusAmount' => '',
                                                                'proximityRadiusUnit' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'proximityLocationListDetails' => [
                                                                'proximityLocationListId' => '',
                                                                'proximityRadius' => '',
                                                                'proximityRadiusUnit' => ''
                                ],
                                'regionalLocationListDetails' => [
                                                                'negative' => null,
                                                                'regionalLocationListId' => ''
                                ],
                                'sensitiveCategoryExclusionDetails' => [
                                                                'excludedSensitiveCategory' => ''
                                ],
                                'sessionPositionDetails' => [
                                                                'sessionPosition' => ''
                                ],
                                'subExchangeDetails' => [
                                                                'targetingOptionId' => ''
                                ],
                                'targetingType' => '',
                                'thirdPartyVerifierDetails' => [
                                                                'adloox' => [
                                                                                                                                'excludedAdlooxCategories' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'doubleVerify' => [
                                                                                                                                'appStarRating' => [
                                                                                                                                                                                                                                                                'avoidInsufficientStarRating' => null,
                                                                                                                                                                                                                                                                'avoidedStarRating' => ''
                                                                                                                                ],
                                                                                                                                'avoidedAgeRatings' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'brandSafetyCategories' => [
                                                                                                                                                                                                                                                                'avoidUnknownBrandSafetyCategory' => null,
                                                                                                                                                                                                                                                                'avoidedHighSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'avoidedMediumSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'customSegmentId' => '',
                                                                                                                                'displayViewability' => [
                                                                                                                                                                                                                                                                'iab' => '',
                                                                                                                                                                                                                                                                'viewableDuring' => ''
                                                                                                                                ],
                                                                                                                                'fraudInvalidTraffic' => [
                                                                                                                                                                                                                                                                'avoidInsufficientOption' => null,
                                                                                                                                                                                                                                                                'avoidedFraudOption' => ''
                                                                                                                                ],
                                                                                                                                'videoViewability' => [
                                                                                                                                                                                                                                                                'playerImpressionRate' => '',
                                                                                                                                                                                                                                                                'videoIab' => '',
                                                                                                                                                                                                                                                                'videoViewableRate' => ''
                                                                                                                                ]
                                                                ],
                                                                'integralAdScience' => [
                                                                                                                                'customSegmentId' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'displayViewability' => '',
                                                                                                                                'excludeUnrateable' => null,
                                                                                                                                'excludedAdFraudRisk' => '',
                                                                                                                                'excludedAdultRisk' => '',
                                                                                                                                'excludedAlcoholRisk' => '',
                                                                                                                                'excludedDrugsRisk' => '',
                                                                                                                                'excludedGamblingRisk' => '',
                                                                                                                                'excludedHateSpeechRisk' => '',
                                                                                                                                'excludedIllegalDownloadsRisk' => '',
                                                                                                                                'excludedOffensiveLanguageRisk' => '',
                                                                                                                                'excludedViolenceRisk' => '',
                                                                                                                                'traqScoreOption' => '',
                                                                                                                                'videoViewability' => ''
                                                                ]
                                ],
                                'urlDetails' => [
                                                                'negative' => null,
                                                                'url' => ''
                                ],
                                'userRewardedContentDetails' => [
                                                                'targetingOptionId' => '',
                                                                'userRewardedContent' => ''
                                ],
                                'videoPlayerSizeDetails' => [
                                                                'videoPlayerSize' => ''
                                ],
                                'viewabilityDetails' => [
                                                                'viewability' => ''
                                ],
                                'youtubeChannelDetails' => [
                                                                'channelId' => '',
                                                                'negative' => null
                                ],
                                'youtubeVideoDetails' => [
                                                                'negative' => null,
                                                                'videoId' => ''
                                ]
                ]
        ],
        'targetingType' => ''
    ]
  ],
  'deleteRequests' => [
    [
        'assignedTargetingOptionIds' => [
                
        ],
        'targetingType' => ''
    ]
  ],
  'lineItemIds' => [
    
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'createRequests' => [
    [
        'assignedTargetingOptions' => [
                [
                                'ageRangeDetails' => [
                                                                'ageRange' => ''
                                ],
                                'appCategoryDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'appDetails' => [
                                                                'appId' => '',
                                                                'appPlatform' => '',
                                                                'displayName' => '',
                                                                'negative' => null
                                ],
                                'assignedTargetingOptionId' => '',
                                'assignedTargetingOptionIdAlias' => '',
                                'audienceGroupDetails' => [
                                                                'excludedFirstAndThirdPartyAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'firstAndThirdPartyAudienceId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'recency' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'excludedGoogleAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'googleAudienceId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedCombinedAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'combinedAudienceId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedCustomListGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'customListId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedFirstAndThirdPartyAudienceGroups' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'includedGoogleAudienceGroup' => [
                                                                                                                                
                                                                ]
                                ],
                                'audioContentTypeDetails' => [
                                                                'audioContentType' => ''
                                ],
                                'authorizedSellerStatusDetails' => [
                                                                'authorizedSellerStatus' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'browserDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'businessChainDetails' => [
                                                                'displayName' => '',
                                                                'proximityRadiusAmount' => '',
                                                                'proximityRadiusUnit' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'carrierAndIspDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'categoryDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'channelDetails' => [
                                                                'channelId' => '',
                                                                'negative' => null
                                ],
                                'contentDurationDetails' => [
                                                                'contentDuration' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'contentGenreDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'contentInstreamPositionDetails' => [
                                                                'adType' => '',
                                                                'contentInstreamPosition' => ''
                                ],
                                'contentOutstreamPositionDetails' => [
                                                                'adType' => '',
                                                                'contentOutstreamPosition' => ''
                                ],
                                'contentStreamTypeDetails' => [
                                                                'contentStreamType' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'dayAndTimeDetails' => [
                                                                'dayOfWeek' => '',
                                                                'endHour' => 0,
                                                                'startHour' => 0,
                                                                'timeZoneResolution' => ''
                                ],
                                'deviceMakeModelDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'deviceTypeDetails' => [
                                                                'deviceType' => '',
                                                                'youtubeAndPartnersBidMultiplier' => ''
                                ],
                                'digitalContentLabelExclusionDetails' => [
                                                                'excludedContentRatingTier' => ''
                                ],
                                'environmentDetails' => [
                                                                'environment' => ''
                                ],
                                'exchangeDetails' => [
                                                                'exchange' => ''
                                ],
                                'genderDetails' => [
                                                                'gender' => ''
                                ],
                                'geoRegionDetails' => [
                                                                'displayName' => '',
                                                                'geoRegionType' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'householdIncomeDetails' => [
                                                                'householdIncome' => ''
                                ],
                                'inheritance' => '',
                                'inventorySourceDetails' => [
                                                                'inventorySourceId' => ''
                                ],
                                'inventorySourceGroupDetails' => [
                                                                'inventorySourceGroupId' => ''
                                ],
                                'keywordDetails' => [
                                                                'keyword' => '',
                                                                'negative' => null
                                ],
                                'languageDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'name' => '',
                                'nativeContentPositionDetails' => [
                                                                'contentPosition' => ''
                                ],
                                'negativeKeywordListDetails' => [
                                                                'negativeKeywordListId' => ''
                                ],
                                'omidDetails' => [
                                                                'omid' => ''
                                ],
                                'onScreenPositionDetails' => [
                                                                'adType' => '',
                                                                'onScreenPosition' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'operatingSystemDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'parentalStatusDetails' => [
                                                                'parentalStatus' => ''
                                ],
                                'poiDetails' => [
                                                                'displayName' => '',
                                                                'latitude' => '',
                                                                'longitude' => '',
                                                                'proximityRadiusAmount' => '',
                                                                'proximityRadiusUnit' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'proximityLocationListDetails' => [
                                                                'proximityLocationListId' => '',
                                                                'proximityRadius' => '',
                                                                'proximityRadiusUnit' => ''
                                ],
                                'regionalLocationListDetails' => [
                                                                'negative' => null,
                                                                'regionalLocationListId' => ''
                                ],
                                'sensitiveCategoryExclusionDetails' => [
                                                                'excludedSensitiveCategory' => ''
                                ],
                                'sessionPositionDetails' => [
                                                                'sessionPosition' => ''
                                ],
                                'subExchangeDetails' => [
                                                                'targetingOptionId' => ''
                                ],
                                'targetingType' => '',
                                'thirdPartyVerifierDetails' => [
                                                                'adloox' => [
                                                                                                                                'excludedAdlooxCategories' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'doubleVerify' => [
                                                                                                                                'appStarRating' => [
                                                                                                                                                                                                                                                                'avoidInsufficientStarRating' => null,
                                                                                                                                                                                                                                                                'avoidedStarRating' => ''
                                                                                                                                ],
                                                                                                                                'avoidedAgeRatings' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'brandSafetyCategories' => [
                                                                                                                                                                                                                                                                'avoidUnknownBrandSafetyCategory' => null,
                                                                                                                                                                                                                                                                'avoidedHighSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'avoidedMediumSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'customSegmentId' => '',
                                                                                                                                'displayViewability' => [
                                                                                                                                                                                                                                                                'iab' => '',
                                                                                                                                                                                                                                                                'viewableDuring' => ''
                                                                                                                                ],
                                                                                                                                'fraudInvalidTraffic' => [
                                                                                                                                                                                                                                                                'avoidInsufficientOption' => null,
                                                                                                                                                                                                                                                                'avoidedFraudOption' => ''
                                                                                                                                ],
                                                                                                                                'videoViewability' => [
                                                                                                                                                                                                                                                                'playerImpressionRate' => '',
                                                                                                                                                                                                                                                                'videoIab' => '',
                                                                                                                                                                                                                                                                'videoViewableRate' => ''
                                                                                                                                ]
                                                                ],
                                                                'integralAdScience' => [
                                                                                                                                'customSegmentId' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'displayViewability' => '',
                                                                                                                                'excludeUnrateable' => null,
                                                                                                                                'excludedAdFraudRisk' => '',
                                                                                                                                'excludedAdultRisk' => '',
                                                                                                                                'excludedAlcoholRisk' => '',
                                                                                                                                'excludedDrugsRisk' => '',
                                                                                                                                'excludedGamblingRisk' => '',
                                                                                                                                'excludedHateSpeechRisk' => '',
                                                                                                                                'excludedIllegalDownloadsRisk' => '',
                                                                                                                                'excludedOffensiveLanguageRisk' => '',
                                                                                                                                'excludedViolenceRisk' => '',
                                                                                                                                'traqScoreOption' => '',
                                                                                                                                'videoViewability' => ''
                                                                ]
                                ],
                                'urlDetails' => [
                                                                'negative' => null,
                                                                'url' => ''
                                ],
                                'userRewardedContentDetails' => [
                                                                'targetingOptionId' => '',
                                                                'userRewardedContent' => ''
                                ],
                                'videoPlayerSizeDetails' => [
                                                                'videoPlayerSize' => ''
                                ],
                                'viewabilityDetails' => [
                                                                'viewability' => ''
                                ],
                                'youtubeChannelDetails' => [
                                                                'channelId' => '',
                                                                'negative' => null
                                ],
                                'youtubeVideoDetails' => [
                                                                'negative' => null,
                                                                'videoId' => ''
                                ]
                ]
        ],
        'targetingType' => ''
    ]
  ],
  'deleteRequests' => [
    [
        'assignedTargetingOptionIds' => [
                
        ],
        'targetingType' => ''
    ]
  ],
  'lineItemIds' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions');
$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}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ],
  "lineItemIds": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ],
  "lineItemIds": []
}'
import http.client

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

payload = "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\n}"

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

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions"

payload = {
    "createRequests": [
        {
            "assignedTargetingOptions": [
                {
                    "ageRangeDetails": { "ageRange": "" },
                    "appCategoryDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "appDetails": {
                        "appId": "",
                        "appPlatform": "",
                        "displayName": "",
                        "negative": False
                    },
                    "assignedTargetingOptionId": "",
                    "assignedTargetingOptionIdAlias": "",
                    "audienceGroupDetails": {
                        "excludedFirstAndThirdPartyAudienceGroup": { "settings": [
                                {
                                    "firstAndThirdPartyAudienceId": "",
                                    "recency": ""
                                }
                            ] },
                        "excludedGoogleAudienceGroup": { "settings": [{ "googleAudienceId": "" }] },
                        "includedCombinedAudienceGroup": { "settings": [{ "combinedAudienceId": "" }] },
                        "includedCustomListGroup": { "settings": [{ "customListId": "" }] },
                        "includedFirstAndThirdPartyAudienceGroups": [{}],
                        "includedGoogleAudienceGroup": {}
                    },
                    "audioContentTypeDetails": { "audioContentType": "" },
                    "authorizedSellerStatusDetails": {
                        "authorizedSellerStatus": "",
                        "targetingOptionId": ""
                    },
                    "browserDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "businessChainDetails": {
                        "displayName": "",
                        "proximityRadiusAmount": "",
                        "proximityRadiusUnit": "",
                        "targetingOptionId": ""
                    },
                    "carrierAndIspDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "categoryDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "channelDetails": {
                        "channelId": "",
                        "negative": False
                    },
                    "contentDurationDetails": {
                        "contentDuration": "",
                        "targetingOptionId": ""
                    },
                    "contentGenreDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "contentInstreamPositionDetails": {
                        "adType": "",
                        "contentInstreamPosition": ""
                    },
                    "contentOutstreamPositionDetails": {
                        "adType": "",
                        "contentOutstreamPosition": ""
                    },
                    "contentStreamTypeDetails": {
                        "contentStreamType": "",
                        "targetingOptionId": ""
                    },
                    "dayAndTimeDetails": {
                        "dayOfWeek": "",
                        "endHour": 0,
                        "startHour": 0,
                        "timeZoneResolution": ""
                    },
                    "deviceMakeModelDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "deviceTypeDetails": {
                        "deviceType": "",
                        "youtubeAndPartnersBidMultiplier": ""
                    },
                    "digitalContentLabelExclusionDetails": { "excludedContentRatingTier": "" },
                    "environmentDetails": { "environment": "" },
                    "exchangeDetails": { "exchange": "" },
                    "genderDetails": { "gender": "" },
                    "geoRegionDetails": {
                        "displayName": "",
                        "geoRegionType": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "householdIncomeDetails": { "householdIncome": "" },
                    "inheritance": "",
                    "inventorySourceDetails": { "inventorySourceId": "" },
                    "inventorySourceGroupDetails": { "inventorySourceGroupId": "" },
                    "keywordDetails": {
                        "keyword": "",
                        "negative": False
                    },
                    "languageDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "name": "",
                    "nativeContentPositionDetails": { "contentPosition": "" },
                    "negativeKeywordListDetails": { "negativeKeywordListId": "" },
                    "omidDetails": { "omid": "" },
                    "onScreenPositionDetails": {
                        "adType": "",
                        "onScreenPosition": "",
                        "targetingOptionId": ""
                    },
                    "operatingSystemDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "parentalStatusDetails": { "parentalStatus": "" },
                    "poiDetails": {
                        "displayName": "",
                        "latitude": "",
                        "longitude": "",
                        "proximityRadiusAmount": "",
                        "proximityRadiusUnit": "",
                        "targetingOptionId": ""
                    },
                    "proximityLocationListDetails": {
                        "proximityLocationListId": "",
                        "proximityRadius": "",
                        "proximityRadiusUnit": ""
                    },
                    "regionalLocationListDetails": {
                        "negative": False,
                        "regionalLocationListId": ""
                    },
                    "sensitiveCategoryExclusionDetails": { "excludedSensitiveCategory": "" },
                    "sessionPositionDetails": { "sessionPosition": "" },
                    "subExchangeDetails": { "targetingOptionId": "" },
                    "targetingType": "",
                    "thirdPartyVerifierDetails": {
                        "adloox": { "excludedAdlooxCategories": [] },
                        "doubleVerify": {
                            "appStarRating": {
                                "avoidInsufficientStarRating": False,
                                "avoidedStarRating": ""
                            },
                            "avoidedAgeRatings": [],
                            "brandSafetyCategories": {
                                "avoidUnknownBrandSafetyCategory": False,
                                "avoidedHighSeverityCategories": [],
                                "avoidedMediumSeverityCategories": []
                            },
                            "customSegmentId": "",
                            "displayViewability": {
                                "iab": "",
                                "viewableDuring": ""
                            },
                            "fraudInvalidTraffic": {
                                "avoidInsufficientOption": False,
                                "avoidedFraudOption": ""
                            },
                            "videoViewability": {
                                "playerImpressionRate": "",
                                "videoIab": "",
                                "videoViewableRate": ""
                            }
                        },
                        "integralAdScience": {
                            "customSegmentId": [],
                            "displayViewability": "",
                            "excludeUnrateable": False,
                            "excludedAdFraudRisk": "",
                            "excludedAdultRisk": "",
                            "excludedAlcoholRisk": "",
                            "excludedDrugsRisk": "",
                            "excludedGamblingRisk": "",
                            "excludedHateSpeechRisk": "",
                            "excludedIllegalDownloadsRisk": "",
                            "excludedOffensiveLanguageRisk": "",
                            "excludedViolenceRisk": "",
                            "traqScoreOption": "",
                            "videoViewability": ""
                        }
                    },
                    "urlDetails": {
                        "negative": False,
                        "url": ""
                    },
                    "userRewardedContentDetails": {
                        "targetingOptionId": "",
                        "userRewardedContent": ""
                    },
                    "videoPlayerSizeDetails": { "videoPlayerSize": "" },
                    "viewabilityDetails": { "viewability": "" },
                    "youtubeChannelDetails": {
                        "channelId": "",
                        "negative": False
                    },
                    "youtubeVideoDetails": {
                        "negative": False,
                        "videoId": ""
                    }
                }
            ],
            "targetingType": ""
        }
    ],
    "deleteRequests": [
        {
            "assignedTargetingOptionIds": [],
            "targetingType": ""
        }
    ],
    "lineItemIds": []
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions"

payload <- "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\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}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions")

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  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\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/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions') do |req|
  req.body = "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"lineItemIds\": []\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions";

    let payload = json!({
        "createRequests": (
            json!({
                "assignedTargetingOptions": (
                    json!({
                        "ageRangeDetails": json!({"ageRange": ""}),
                        "appCategoryDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "appDetails": json!({
                            "appId": "",
                            "appPlatform": "",
                            "displayName": "",
                            "negative": false
                        }),
                        "assignedTargetingOptionId": "",
                        "assignedTargetingOptionIdAlias": "",
                        "audienceGroupDetails": json!({
                            "excludedFirstAndThirdPartyAudienceGroup": json!({"settings": (
                                    json!({
                                        "firstAndThirdPartyAudienceId": "",
                                        "recency": ""
                                    })
                                )}),
                            "excludedGoogleAudienceGroup": json!({"settings": (json!({"googleAudienceId": ""}))}),
                            "includedCombinedAudienceGroup": json!({"settings": (json!({"combinedAudienceId": ""}))}),
                            "includedCustomListGroup": json!({"settings": (json!({"customListId": ""}))}),
                            "includedFirstAndThirdPartyAudienceGroups": (json!({})),
                            "includedGoogleAudienceGroup": json!({})
                        }),
                        "audioContentTypeDetails": json!({"audioContentType": ""}),
                        "authorizedSellerStatusDetails": json!({
                            "authorizedSellerStatus": "",
                            "targetingOptionId": ""
                        }),
                        "browserDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "businessChainDetails": json!({
                            "displayName": "",
                            "proximityRadiusAmount": "",
                            "proximityRadiusUnit": "",
                            "targetingOptionId": ""
                        }),
                        "carrierAndIspDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "categoryDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "channelDetails": json!({
                            "channelId": "",
                            "negative": false
                        }),
                        "contentDurationDetails": json!({
                            "contentDuration": "",
                            "targetingOptionId": ""
                        }),
                        "contentGenreDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "contentInstreamPositionDetails": json!({
                            "adType": "",
                            "contentInstreamPosition": ""
                        }),
                        "contentOutstreamPositionDetails": json!({
                            "adType": "",
                            "contentOutstreamPosition": ""
                        }),
                        "contentStreamTypeDetails": json!({
                            "contentStreamType": "",
                            "targetingOptionId": ""
                        }),
                        "dayAndTimeDetails": json!({
                            "dayOfWeek": "",
                            "endHour": 0,
                            "startHour": 0,
                            "timeZoneResolution": ""
                        }),
                        "deviceMakeModelDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "deviceTypeDetails": json!({
                            "deviceType": "",
                            "youtubeAndPartnersBidMultiplier": ""
                        }),
                        "digitalContentLabelExclusionDetails": json!({"excludedContentRatingTier": ""}),
                        "environmentDetails": json!({"environment": ""}),
                        "exchangeDetails": json!({"exchange": ""}),
                        "genderDetails": json!({"gender": ""}),
                        "geoRegionDetails": json!({
                            "displayName": "",
                            "geoRegionType": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "householdIncomeDetails": json!({"householdIncome": ""}),
                        "inheritance": "",
                        "inventorySourceDetails": json!({"inventorySourceId": ""}),
                        "inventorySourceGroupDetails": json!({"inventorySourceGroupId": ""}),
                        "keywordDetails": json!({
                            "keyword": "",
                            "negative": false
                        }),
                        "languageDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "name": "",
                        "nativeContentPositionDetails": json!({"contentPosition": ""}),
                        "negativeKeywordListDetails": json!({"negativeKeywordListId": ""}),
                        "omidDetails": json!({"omid": ""}),
                        "onScreenPositionDetails": json!({
                            "adType": "",
                            "onScreenPosition": "",
                            "targetingOptionId": ""
                        }),
                        "operatingSystemDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "parentalStatusDetails": json!({"parentalStatus": ""}),
                        "poiDetails": json!({
                            "displayName": "",
                            "latitude": "",
                            "longitude": "",
                            "proximityRadiusAmount": "",
                            "proximityRadiusUnit": "",
                            "targetingOptionId": ""
                        }),
                        "proximityLocationListDetails": json!({
                            "proximityLocationListId": "",
                            "proximityRadius": "",
                            "proximityRadiusUnit": ""
                        }),
                        "regionalLocationListDetails": json!({
                            "negative": false,
                            "regionalLocationListId": ""
                        }),
                        "sensitiveCategoryExclusionDetails": json!({"excludedSensitiveCategory": ""}),
                        "sessionPositionDetails": json!({"sessionPosition": ""}),
                        "subExchangeDetails": json!({"targetingOptionId": ""}),
                        "targetingType": "",
                        "thirdPartyVerifierDetails": json!({
                            "adloox": json!({"excludedAdlooxCategories": ()}),
                            "doubleVerify": json!({
                                "appStarRating": json!({
                                    "avoidInsufficientStarRating": false,
                                    "avoidedStarRating": ""
                                }),
                                "avoidedAgeRatings": (),
                                "brandSafetyCategories": json!({
                                    "avoidUnknownBrandSafetyCategory": false,
                                    "avoidedHighSeverityCategories": (),
                                    "avoidedMediumSeverityCategories": ()
                                }),
                                "customSegmentId": "",
                                "displayViewability": json!({
                                    "iab": "",
                                    "viewableDuring": ""
                                }),
                                "fraudInvalidTraffic": json!({
                                    "avoidInsufficientOption": false,
                                    "avoidedFraudOption": ""
                                }),
                                "videoViewability": json!({
                                    "playerImpressionRate": "",
                                    "videoIab": "",
                                    "videoViewableRate": ""
                                })
                            }),
                            "integralAdScience": json!({
                                "customSegmentId": (),
                                "displayViewability": "",
                                "excludeUnrateable": false,
                                "excludedAdFraudRisk": "",
                                "excludedAdultRisk": "",
                                "excludedAlcoholRisk": "",
                                "excludedDrugsRisk": "",
                                "excludedGamblingRisk": "",
                                "excludedHateSpeechRisk": "",
                                "excludedIllegalDownloadsRisk": "",
                                "excludedOffensiveLanguageRisk": "",
                                "excludedViolenceRisk": "",
                                "traqScoreOption": "",
                                "videoViewability": ""
                            })
                        }),
                        "urlDetails": json!({
                            "negative": false,
                            "url": ""
                        }),
                        "userRewardedContentDetails": json!({
                            "targetingOptionId": "",
                            "userRewardedContent": ""
                        }),
                        "videoPlayerSizeDetails": json!({"videoPlayerSize": ""}),
                        "viewabilityDetails": json!({"viewability": ""}),
                        "youtubeChannelDetails": json!({
                            "channelId": "",
                            "negative": false
                        }),
                        "youtubeVideoDetails": json!({
                            "negative": false,
                            "videoId": ""
                        })
                    })
                ),
                "targetingType": ""
            })
        ),
        "deleteRequests": (
            json!({
                "assignedTargetingOptionIds": (),
                "targetingType": ""
            })
        ),
        "lineItemIds": ()
    });

    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}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions \
  --header 'content-type: application/json' \
  --data '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ],
  "lineItemIds": []
}'
echo '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ],
  "lineItemIds": []
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "createRequests": [\n    {\n      "assignedTargetingOptions": [\n        {\n          "ageRangeDetails": {\n            "ageRange": ""\n          },\n          "appCategoryDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "appDetails": {\n            "appId": "",\n            "appPlatform": "",\n            "displayName": "",\n            "negative": false\n          },\n          "assignedTargetingOptionId": "",\n          "assignedTargetingOptionIdAlias": "",\n          "audienceGroupDetails": {\n            "excludedFirstAndThirdPartyAudienceGroup": {\n              "settings": [\n                {\n                  "firstAndThirdPartyAudienceId": "",\n                  "recency": ""\n                }\n              ]\n            },\n            "excludedGoogleAudienceGroup": {\n              "settings": [\n                {\n                  "googleAudienceId": ""\n                }\n              ]\n            },\n            "includedCombinedAudienceGroup": {\n              "settings": [\n                {\n                  "combinedAudienceId": ""\n                }\n              ]\n            },\n            "includedCustomListGroup": {\n              "settings": [\n                {\n                  "customListId": ""\n                }\n              ]\n            },\n            "includedFirstAndThirdPartyAudienceGroups": [\n              {}\n            ],\n            "includedGoogleAudienceGroup": {}\n          },\n          "audioContentTypeDetails": {\n            "audioContentType": ""\n          },\n          "authorizedSellerStatusDetails": {\n            "authorizedSellerStatus": "",\n            "targetingOptionId": ""\n          },\n          "browserDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "businessChainDetails": {\n            "displayName": "",\n            "proximityRadiusAmount": "",\n            "proximityRadiusUnit": "",\n            "targetingOptionId": ""\n          },\n          "carrierAndIspDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "categoryDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "channelDetails": {\n            "channelId": "",\n            "negative": false\n          },\n          "contentDurationDetails": {\n            "contentDuration": "",\n            "targetingOptionId": ""\n          },\n          "contentGenreDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "contentInstreamPositionDetails": {\n            "adType": "",\n            "contentInstreamPosition": ""\n          },\n          "contentOutstreamPositionDetails": {\n            "adType": "",\n            "contentOutstreamPosition": ""\n          },\n          "contentStreamTypeDetails": {\n            "contentStreamType": "",\n            "targetingOptionId": ""\n          },\n          "dayAndTimeDetails": {\n            "dayOfWeek": "",\n            "endHour": 0,\n            "startHour": 0,\n            "timeZoneResolution": ""\n          },\n          "deviceMakeModelDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "deviceTypeDetails": {\n            "deviceType": "",\n            "youtubeAndPartnersBidMultiplier": ""\n          },\n          "digitalContentLabelExclusionDetails": {\n            "excludedContentRatingTier": ""\n          },\n          "environmentDetails": {\n            "environment": ""\n          },\n          "exchangeDetails": {\n            "exchange": ""\n          },\n          "genderDetails": {\n            "gender": ""\n          },\n          "geoRegionDetails": {\n            "displayName": "",\n            "geoRegionType": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "householdIncomeDetails": {\n            "householdIncome": ""\n          },\n          "inheritance": "",\n          "inventorySourceDetails": {\n            "inventorySourceId": ""\n          },\n          "inventorySourceGroupDetails": {\n            "inventorySourceGroupId": ""\n          },\n          "keywordDetails": {\n            "keyword": "",\n            "negative": false\n          },\n          "languageDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "name": "",\n          "nativeContentPositionDetails": {\n            "contentPosition": ""\n          },\n          "negativeKeywordListDetails": {\n            "negativeKeywordListId": ""\n          },\n          "omidDetails": {\n            "omid": ""\n          },\n          "onScreenPositionDetails": {\n            "adType": "",\n            "onScreenPosition": "",\n            "targetingOptionId": ""\n          },\n          "operatingSystemDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "parentalStatusDetails": {\n            "parentalStatus": ""\n          },\n          "poiDetails": {\n            "displayName": "",\n            "latitude": "",\n            "longitude": "",\n            "proximityRadiusAmount": "",\n            "proximityRadiusUnit": "",\n            "targetingOptionId": ""\n          },\n          "proximityLocationListDetails": {\n            "proximityLocationListId": "",\n            "proximityRadius": "",\n            "proximityRadiusUnit": ""\n          },\n          "regionalLocationListDetails": {\n            "negative": false,\n            "regionalLocationListId": ""\n          },\n          "sensitiveCategoryExclusionDetails": {\n            "excludedSensitiveCategory": ""\n          },\n          "sessionPositionDetails": {\n            "sessionPosition": ""\n          },\n          "subExchangeDetails": {\n            "targetingOptionId": ""\n          },\n          "targetingType": "",\n          "thirdPartyVerifierDetails": {\n            "adloox": {\n              "excludedAdlooxCategories": []\n            },\n            "doubleVerify": {\n              "appStarRating": {\n                "avoidInsufficientStarRating": false,\n                "avoidedStarRating": ""\n              },\n              "avoidedAgeRatings": [],\n              "brandSafetyCategories": {\n                "avoidUnknownBrandSafetyCategory": false,\n                "avoidedHighSeverityCategories": [],\n                "avoidedMediumSeverityCategories": []\n              },\n              "customSegmentId": "",\n              "displayViewability": {\n                "iab": "",\n                "viewableDuring": ""\n              },\n              "fraudInvalidTraffic": {\n                "avoidInsufficientOption": false,\n                "avoidedFraudOption": ""\n              },\n              "videoViewability": {\n                "playerImpressionRate": "",\n                "videoIab": "",\n                "videoViewableRate": ""\n              }\n            },\n            "integralAdScience": {\n              "customSegmentId": [],\n              "displayViewability": "",\n              "excludeUnrateable": false,\n              "excludedAdFraudRisk": "",\n              "excludedAdultRisk": "",\n              "excludedAlcoholRisk": "",\n              "excludedDrugsRisk": "",\n              "excludedGamblingRisk": "",\n              "excludedHateSpeechRisk": "",\n              "excludedIllegalDownloadsRisk": "",\n              "excludedOffensiveLanguageRisk": "",\n              "excludedViolenceRisk": "",\n              "traqScoreOption": "",\n              "videoViewability": ""\n            }\n          },\n          "urlDetails": {\n            "negative": false,\n            "url": ""\n          },\n          "userRewardedContentDetails": {\n            "targetingOptionId": "",\n            "userRewardedContent": ""\n          },\n          "videoPlayerSizeDetails": {\n            "videoPlayerSize": ""\n          },\n          "viewabilityDetails": {\n            "viewability": ""\n          },\n          "youtubeChannelDetails": {\n            "channelId": "",\n            "negative": false\n          },\n          "youtubeVideoDetails": {\n            "negative": false,\n            "videoId": ""\n          }\n        }\n      ],\n      "targetingType": ""\n    }\n  ],\n  "deleteRequests": [\n    {\n      "assignedTargetingOptionIds": [],\n      "targetingType": ""\n    }\n  ],\n  "lineItemIds": []\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "createRequests": [
    [
      "assignedTargetingOptions": [
        [
          "ageRangeDetails": ["ageRange": ""],
          "appCategoryDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "appDetails": [
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          ],
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": [
            "excludedFirstAndThirdPartyAudienceGroup": ["settings": [
                [
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                ]
              ]],
            "excludedGoogleAudienceGroup": ["settings": [["googleAudienceId": ""]]],
            "includedCombinedAudienceGroup": ["settings": [["combinedAudienceId": ""]]],
            "includedCustomListGroup": ["settings": [["customListId": ""]]],
            "includedFirstAndThirdPartyAudienceGroups": [[]],
            "includedGoogleAudienceGroup": []
          ],
          "audioContentTypeDetails": ["audioContentType": ""],
          "authorizedSellerStatusDetails": [
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          ],
          "browserDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "businessChainDetails": [
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          ],
          "carrierAndIspDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "categoryDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "channelDetails": [
            "channelId": "",
            "negative": false
          ],
          "contentDurationDetails": [
            "contentDuration": "",
            "targetingOptionId": ""
          ],
          "contentGenreDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "contentInstreamPositionDetails": [
            "adType": "",
            "contentInstreamPosition": ""
          ],
          "contentOutstreamPositionDetails": [
            "adType": "",
            "contentOutstreamPosition": ""
          ],
          "contentStreamTypeDetails": [
            "contentStreamType": "",
            "targetingOptionId": ""
          ],
          "dayAndTimeDetails": [
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          ],
          "deviceMakeModelDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "deviceTypeDetails": [
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          ],
          "digitalContentLabelExclusionDetails": ["excludedContentRatingTier": ""],
          "environmentDetails": ["environment": ""],
          "exchangeDetails": ["exchange": ""],
          "genderDetails": ["gender": ""],
          "geoRegionDetails": [
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "householdIncomeDetails": ["householdIncome": ""],
          "inheritance": "",
          "inventorySourceDetails": ["inventorySourceId": ""],
          "inventorySourceGroupDetails": ["inventorySourceGroupId": ""],
          "keywordDetails": [
            "keyword": "",
            "negative": false
          ],
          "languageDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "name": "",
          "nativeContentPositionDetails": ["contentPosition": ""],
          "negativeKeywordListDetails": ["negativeKeywordListId": ""],
          "omidDetails": ["omid": ""],
          "onScreenPositionDetails": [
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          ],
          "operatingSystemDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "parentalStatusDetails": ["parentalStatus": ""],
          "poiDetails": [
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          ],
          "proximityLocationListDetails": [
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          ],
          "regionalLocationListDetails": [
            "negative": false,
            "regionalLocationListId": ""
          ],
          "sensitiveCategoryExclusionDetails": ["excludedSensitiveCategory": ""],
          "sessionPositionDetails": ["sessionPosition": ""],
          "subExchangeDetails": ["targetingOptionId": ""],
          "targetingType": "",
          "thirdPartyVerifierDetails": [
            "adloox": ["excludedAdlooxCategories": []],
            "doubleVerify": [
              "appStarRating": [
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              ],
              "avoidedAgeRatings": [],
              "brandSafetyCategories": [
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              ],
              "customSegmentId": "",
              "displayViewability": [
                "iab": "",
                "viewableDuring": ""
              ],
              "fraudInvalidTraffic": [
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              ],
              "videoViewability": [
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              ]
            ],
            "integralAdScience": [
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            ]
          ],
          "urlDetails": [
            "negative": false,
            "url": ""
          ],
          "userRewardedContentDetails": [
            "targetingOptionId": "",
            "userRewardedContent": ""
          ],
          "videoPlayerSizeDetails": ["videoPlayerSize": ""],
          "viewabilityDetails": ["viewability": ""],
          "youtubeChannelDetails": [
            "channelId": "",
            "negative": false
          ],
          "youtubeVideoDetails": [
            "negative": false,
            "videoId": ""
          ]
        ]
      ],
      "targetingType": ""
    ]
  ],
  "deleteRequests": [
    [
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    ]
  ],
  "lineItemIds": []
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkEditAssignedTargetingOptions")! 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 displayvideo.advertisers.lineItems.bulkListAssignedTargetingOptions
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions");

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

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions"

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}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions"

	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/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions"))
    .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}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions")
  .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}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions',
  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}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions');

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}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions"

response = requests.get(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions")

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/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions";

    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}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions
http GET {{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkListAssignedTargetingOptions")! 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 displayvideo.advertisers.lineItems.bulkUpdate
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate
QUERY PARAMS

advertiserId
BODY json

{
  "lineItemIds": [],
  "targetLineItem": {
    "advertiserId": "",
    "bidStrategy": {
      "fixedBid": {
        "bidAmountMicros": ""
      },
      "maximizeSpendAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalType": "",
        "raiseBidForDeals": false
      },
      "performanceGoalAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalAmountMicros": "",
        "performanceGoalType": ""
      }
    },
    "budget": {
      "budgetAllocationType": "",
      "budgetUnit": "",
      "maxAmount": ""
    },
    "campaignId": "",
    "conversionCounting": {
      "floodlightActivityConfigs": [
        {
          "floodlightActivityId": "",
          "postClickLookbackWindowDays": 0,
          "postViewLookbackWindowDays": 0
        }
      ],
      "postViewCountPercentageMillis": ""
    },
    "creativeIds": [],
    "displayName": "",
    "entityStatus": "",
    "excludeNewExchanges": false,
    "flight": {
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "flightDateType": ""
    },
    "frequencyCap": {
      "maxImpressions": 0,
      "maxViews": 0,
      "timeUnit": "",
      "timeUnitCount": 0,
      "unlimited": false
    },
    "insertionOrderId": "",
    "integrationDetails": {
      "details": "",
      "integrationCode": ""
    },
    "lineItemId": "",
    "lineItemType": "",
    "mobileApp": {
      "appId": "",
      "displayName": "",
      "platform": "",
      "publisher": ""
    },
    "name": "",
    "pacing": {
      "dailyMaxImpressions": "",
      "dailyMaxMicros": "",
      "pacingPeriod": "",
      "pacingType": ""
    },
    "partnerCosts": [
      {
        "costType": "",
        "feeAmount": "",
        "feePercentageMillis": "",
        "feeType": "",
        "invoiceType": ""
      }
    ],
    "partnerRevenueModel": {
      "markupAmount": "",
      "markupType": ""
    },
    "reservationType": "",
    "targetingExpansion": {
      "excludeFirstPartyAudience": false,
      "targetingExpansionLevel": ""
    },
    "updateTime": "",
    "warningMessages": [],
    "youtubeAndPartnersSettings": {
      "biddingStrategy": {
        "adGroupEffectiveTargetCpaSource": "",
        "adGroupEffectiveTargetCpaValue": "",
        "type": "",
        "value": ""
      },
      "contentCategory": "",
      "inventorySourceSettings": {
        "includeYoutubeSearch": false,
        "includeYoutubeVideoPartners": false,
        "includeYoutubeVideos": false
      },
      "leadFormId": "",
      "linkedMerchantId": "",
      "relatedVideoIds": [],
      "targetFrequency": {
        "targetCount": "",
        "timeUnit": "",
        "timeUnitCount": 0
      },
      "thirdPartyMeasurementSettings": {
        "brandLiftVendorConfigs": [
          {
            "placementId": "",
            "vendor": ""
          }
        ],
        "brandSafetyVendorConfigs": [
          {}
        ],
        "reachVendorConfigs": [
          {}
        ],
        "viewabilityVendorConfigs": [
          {}
        ]
      },
      "videoAdSequenceSettings": {
        "minimumDuration": "",
        "steps": [
          {
            "adGroupId": "",
            "interactionType": "",
            "previousStepId": "",
            "stepId": ""
          }
        ]
      },
      "viewFrequencyCap": {}
    }
  },
  "updateMask": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate");

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  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\n}");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate" {:content-type :json
                                                                                              :form-params {:lineItemIds []
                                                                                                            :targetLineItem {:advertiserId ""
                                                                                                                             :bidStrategy {:fixedBid {:bidAmountMicros ""}
                                                                                                                                           :maximizeSpendAutoBid {:customBiddingAlgorithmId ""
                                                                                                                                                                  :maxAverageCpmBidAmountMicros ""
                                                                                                                                                                  :performanceGoalType ""
                                                                                                                                                                  :raiseBidForDeals false}
                                                                                                                                           :performanceGoalAutoBid {:customBiddingAlgorithmId ""
                                                                                                                                                                    :maxAverageCpmBidAmountMicros ""
                                                                                                                                                                    :performanceGoalAmountMicros ""
                                                                                                                                                                    :performanceGoalType ""}}
                                                                                                                             :budget {:budgetAllocationType ""
                                                                                                                                      :budgetUnit ""
                                                                                                                                      :maxAmount ""}
                                                                                                                             :campaignId ""
                                                                                                                             :conversionCounting {:floodlightActivityConfigs [{:floodlightActivityId ""
                                                                                                                                                                               :postClickLookbackWindowDays 0
                                                                                                                                                                               :postViewLookbackWindowDays 0}]
                                                                                                                                                  :postViewCountPercentageMillis ""}
                                                                                                                             :creativeIds []
                                                                                                                             :displayName ""
                                                                                                                             :entityStatus ""
                                                                                                                             :excludeNewExchanges false
                                                                                                                             :flight {:dateRange {:endDate {:day 0
                                                                                                                                                            :month 0
                                                                                                                                                            :year 0}
                                                                                                                                                  :startDate {}}
                                                                                                                                      :flightDateType ""}
                                                                                                                             :frequencyCap {:maxImpressions 0
                                                                                                                                            :maxViews 0
                                                                                                                                            :timeUnit ""
                                                                                                                                            :timeUnitCount 0
                                                                                                                                            :unlimited false}
                                                                                                                             :insertionOrderId ""
                                                                                                                             :integrationDetails {:details ""
                                                                                                                                                  :integrationCode ""}
                                                                                                                             :lineItemId ""
                                                                                                                             :lineItemType ""
                                                                                                                             :mobileApp {:appId ""
                                                                                                                                         :displayName ""
                                                                                                                                         :platform ""
                                                                                                                                         :publisher ""}
                                                                                                                             :name ""
                                                                                                                             :pacing {:dailyMaxImpressions ""
                                                                                                                                      :dailyMaxMicros ""
                                                                                                                                      :pacingPeriod ""
                                                                                                                                      :pacingType ""}
                                                                                                                             :partnerCosts [{:costType ""
                                                                                                                                             :feeAmount ""
                                                                                                                                             :feePercentageMillis ""
                                                                                                                                             :feeType ""
                                                                                                                                             :invoiceType ""}]
                                                                                                                             :partnerRevenueModel {:markupAmount ""
                                                                                                                                                   :markupType ""}
                                                                                                                             :reservationType ""
                                                                                                                             :targetingExpansion {:excludeFirstPartyAudience false
                                                                                                                                                  :targetingExpansionLevel ""}
                                                                                                                             :updateTime ""
                                                                                                                             :warningMessages []
                                                                                                                             :youtubeAndPartnersSettings {:biddingStrategy {:adGroupEffectiveTargetCpaSource ""
                                                                                                                                                                            :adGroupEffectiveTargetCpaValue ""
                                                                                                                                                                            :type ""
                                                                                                                                                                            :value ""}
                                                                                                                                                          :contentCategory ""
                                                                                                                                                          :inventorySourceSettings {:includeYoutubeSearch false
                                                                                                                                                                                    :includeYoutubeVideoPartners false
                                                                                                                                                                                    :includeYoutubeVideos false}
                                                                                                                                                          :leadFormId ""
                                                                                                                                                          :linkedMerchantId ""
                                                                                                                                                          :relatedVideoIds []
                                                                                                                                                          :targetFrequency {:targetCount ""
                                                                                                                                                                            :timeUnit ""
                                                                                                                                                                            :timeUnitCount 0}
                                                                                                                                                          :thirdPartyMeasurementSettings {:brandLiftVendorConfigs [{:placementId ""
                                                                                                                                                                                                                    :vendor ""}]
                                                                                                                                                                                          :brandSafetyVendorConfigs [{}]
                                                                                                                                                                                          :reachVendorConfigs [{}]
                                                                                                                                                                                          :viewabilityVendorConfigs [{}]}
                                                                                                                                                          :videoAdSequenceSettings {:minimumDuration ""
                                                                                                                                                                                    :steps [{:adGroupId ""
                                                                                                                                                                                             :interactionType ""
                                                                                                                                                                                             :previousStepId ""
                                                                                                                                                                                             :stepId ""}]}
                                                                                                                                                          :viewFrequencyCap {}}}
                                                                                                            :updateMask ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\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}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate"),
    Content = new StringContent("{\n  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\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}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate"

	payload := strings.NewReader("{\n  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\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/v2/advertisers/:advertiserId/lineItems:bulkUpdate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 3535

{
  "lineItemIds": [],
  "targetLineItem": {
    "advertiserId": "",
    "bidStrategy": {
      "fixedBid": {
        "bidAmountMicros": ""
      },
      "maximizeSpendAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalType": "",
        "raiseBidForDeals": false
      },
      "performanceGoalAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalAmountMicros": "",
        "performanceGoalType": ""
      }
    },
    "budget": {
      "budgetAllocationType": "",
      "budgetUnit": "",
      "maxAmount": ""
    },
    "campaignId": "",
    "conversionCounting": {
      "floodlightActivityConfigs": [
        {
          "floodlightActivityId": "",
          "postClickLookbackWindowDays": 0,
          "postViewLookbackWindowDays": 0
        }
      ],
      "postViewCountPercentageMillis": ""
    },
    "creativeIds": [],
    "displayName": "",
    "entityStatus": "",
    "excludeNewExchanges": false,
    "flight": {
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "flightDateType": ""
    },
    "frequencyCap": {
      "maxImpressions": 0,
      "maxViews": 0,
      "timeUnit": "",
      "timeUnitCount": 0,
      "unlimited": false
    },
    "insertionOrderId": "",
    "integrationDetails": {
      "details": "",
      "integrationCode": ""
    },
    "lineItemId": "",
    "lineItemType": "",
    "mobileApp": {
      "appId": "",
      "displayName": "",
      "platform": "",
      "publisher": ""
    },
    "name": "",
    "pacing": {
      "dailyMaxImpressions": "",
      "dailyMaxMicros": "",
      "pacingPeriod": "",
      "pacingType": ""
    },
    "partnerCosts": [
      {
        "costType": "",
        "feeAmount": "",
        "feePercentageMillis": "",
        "feeType": "",
        "invoiceType": ""
      }
    ],
    "partnerRevenueModel": {
      "markupAmount": "",
      "markupType": ""
    },
    "reservationType": "",
    "targetingExpansion": {
      "excludeFirstPartyAudience": false,
      "targetingExpansionLevel": ""
    },
    "updateTime": "",
    "warningMessages": [],
    "youtubeAndPartnersSettings": {
      "biddingStrategy": {
        "adGroupEffectiveTargetCpaSource": "",
        "adGroupEffectiveTargetCpaValue": "",
        "type": "",
        "value": ""
      },
      "contentCategory": "",
      "inventorySourceSettings": {
        "includeYoutubeSearch": false,
        "includeYoutubeVideoPartners": false,
        "includeYoutubeVideos": false
      },
      "leadFormId": "",
      "linkedMerchantId": "",
      "relatedVideoIds": [],
      "targetFrequency": {
        "targetCount": "",
        "timeUnit": "",
        "timeUnitCount": 0
      },
      "thirdPartyMeasurementSettings": {
        "brandLiftVendorConfigs": [
          {
            "placementId": "",
            "vendor": ""
          }
        ],
        "brandSafetyVendorConfigs": [
          {}
        ],
        "reachVendorConfigs": [
          {}
        ],
        "viewabilityVendorConfigs": [
          {}
        ]
      },
      "videoAdSequenceSettings": {
        "minimumDuration": "",
        "steps": [
          {
            "adGroupId": "",
            "interactionType": "",
            "previousStepId": "",
            "stepId": ""
          }
        ]
      },
      "viewFrequencyCap": {}
    }
  },
  "updateMask": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\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  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate")
  .header("content-type", "application/json")
  .body("{\n  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  lineItemIds: [],
  targetLineItem: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {
        bidAmountMicros: ''
      },
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    budget: {
      budgetAllocationType: '',
      budgetUnit: '',
      maxAmount: ''
    },
    campaignId: '',
    conversionCounting: {
      floodlightActivityConfigs: [
        {
          floodlightActivityId: '',
          postClickLookbackWindowDays: 0,
          postViewLookbackWindowDays: 0
        }
      ],
      postViewCountPercentageMillis: ''
    },
    creativeIds: [],
    displayName: '',
    entityStatus: '',
    excludeNewExchanges: false,
    flight: {
      dateRange: {
        endDate: {
          day: 0,
          month: 0,
          year: 0
        },
        startDate: {}
      },
      flightDateType: ''
    },
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    integrationDetails: {
      details: '',
      integrationCode: ''
    },
    lineItemId: '',
    lineItemType: '',
    mobileApp: {
      appId: '',
      displayName: '',
      platform: '',
      publisher: ''
    },
    name: '',
    pacing: {
      dailyMaxImpressions: '',
      dailyMaxMicros: '',
      pacingPeriod: '',
      pacingType: ''
    },
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    partnerRevenueModel: {
      markupAmount: '',
      markupType: ''
    },
    reservationType: '',
    targetingExpansion: {
      excludeFirstPartyAudience: false,
      targetingExpansionLevel: ''
    },
    updateTime: '',
    warningMessages: [],
    youtubeAndPartnersSettings: {
      biddingStrategy: {
        adGroupEffectiveTargetCpaSource: '',
        adGroupEffectiveTargetCpaValue: '',
        type: '',
        value: ''
      },
      contentCategory: '',
      inventorySourceSettings: {
        includeYoutubeSearch: false,
        includeYoutubeVideoPartners: false,
        includeYoutubeVideos: false
      },
      leadFormId: '',
      linkedMerchantId: '',
      relatedVideoIds: [],
      targetFrequency: {
        targetCount: '',
        timeUnit: '',
        timeUnitCount: 0
      },
      thirdPartyMeasurementSettings: {
        brandLiftVendorConfigs: [
          {
            placementId: '',
            vendor: ''
          }
        ],
        brandSafetyVendorConfigs: [
          {}
        ],
        reachVendorConfigs: [
          {}
        ],
        viewabilityVendorConfigs: [
          {}
        ]
      },
      videoAdSequenceSettings: {
        minimumDuration: '',
        steps: [
          {
            adGroupId: '',
            interactionType: '',
            previousStepId: '',
            stepId: ''
          }
        ]
      },
      viewFrequencyCap: {}
    }
  },
  updateMask: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate',
  headers: {'content-type': 'application/json'},
  data: {
    lineItemIds: [],
    targetLineItem: {
      advertiserId: '',
      bidStrategy: {
        fixedBid: {bidAmountMicros: ''},
        maximizeSpendAutoBid: {
          customBiddingAlgorithmId: '',
          maxAverageCpmBidAmountMicros: '',
          performanceGoalType: '',
          raiseBidForDeals: false
        },
        performanceGoalAutoBid: {
          customBiddingAlgorithmId: '',
          maxAverageCpmBidAmountMicros: '',
          performanceGoalAmountMicros: '',
          performanceGoalType: ''
        }
      },
      budget: {budgetAllocationType: '', budgetUnit: '', maxAmount: ''},
      campaignId: '',
      conversionCounting: {
        floodlightActivityConfigs: [
          {
            floodlightActivityId: '',
            postClickLookbackWindowDays: 0,
            postViewLookbackWindowDays: 0
          }
        ],
        postViewCountPercentageMillis: ''
      },
      creativeIds: [],
      displayName: '',
      entityStatus: '',
      excludeNewExchanges: false,
      flight: {
        dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
        flightDateType: ''
      },
      frequencyCap: {
        maxImpressions: 0,
        maxViews: 0,
        timeUnit: '',
        timeUnitCount: 0,
        unlimited: false
      },
      insertionOrderId: '',
      integrationDetails: {details: '', integrationCode: ''},
      lineItemId: '',
      lineItemType: '',
      mobileApp: {appId: '', displayName: '', platform: '', publisher: ''},
      name: '',
      pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
      partnerCosts: [
        {
          costType: '',
          feeAmount: '',
          feePercentageMillis: '',
          feeType: '',
          invoiceType: ''
        }
      ],
      partnerRevenueModel: {markupAmount: '', markupType: ''},
      reservationType: '',
      targetingExpansion: {excludeFirstPartyAudience: false, targetingExpansionLevel: ''},
      updateTime: '',
      warningMessages: [],
      youtubeAndPartnersSettings: {
        biddingStrategy: {
          adGroupEffectiveTargetCpaSource: '',
          adGroupEffectiveTargetCpaValue: '',
          type: '',
          value: ''
        },
        contentCategory: '',
        inventorySourceSettings: {
          includeYoutubeSearch: false,
          includeYoutubeVideoPartners: false,
          includeYoutubeVideos: false
        },
        leadFormId: '',
        linkedMerchantId: '',
        relatedVideoIds: [],
        targetFrequency: {targetCount: '', timeUnit: '', timeUnitCount: 0},
        thirdPartyMeasurementSettings: {
          brandLiftVendorConfigs: [{placementId: '', vendor: ''}],
          brandSafetyVendorConfigs: [{}],
          reachVendorConfigs: [{}],
          viewabilityVendorConfigs: [{}]
        },
        videoAdSequenceSettings: {
          minimumDuration: '',
          steps: [{adGroupId: '', interactionType: '', previousStepId: '', stepId: ''}]
        },
        viewFrequencyCap: {}
      }
    },
    updateMask: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"lineItemIds":[],"targetLineItem":{"advertiserId":"","bidStrategy":{"fixedBid":{"bidAmountMicros":""},"maximizeSpendAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalType":"","raiseBidForDeals":false},"performanceGoalAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalAmountMicros":"","performanceGoalType":""}},"budget":{"budgetAllocationType":"","budgetUnit":"","maxAmount":""},"campaignId":"","conversionCounting":{"floodlightActivityConfigs":[{"floodlightActivityId":"","postClickLookbackWindowDays":0,"postViewLookbackWindowDays":0}],"postViewCountPercentageMillis":""},"creativeIds":[],"displayName":"","entityStatus":"","excludeNewExchanges":false,"flight":{"dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"flightDateType":""},"frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"insertionOrderId":"","integrationDetails":{"details":"","integrationCode":""},"lineItemId":"","lineItemType":"","mobileApp":{"appId":"","displayName":"","platform":"","publisher":""},"name":"","pacing":{"dailyMaxImpressions":"","dailyMaxMicros":"","pacingPeriod":"","pacingType":""},"partnerCosts":[{"costType":"","feeAmount":"","feePercentageMillis":"","feeType":"","invoiceType":""}],"partnerRevenueModel":{"markupAmount":"","markupType":""},"reservationType":"","targetingExpansion":{"excludeFirstPartyAudience":false,"targetingExpansionLevel":""},"updateTime":"","warningMessages":[],"youtubeAndPartnersSettings":{"biddingStrategy":{"adGroupEffectiveTargetCpaSource":"","adGroupEffectiveTargetCpaValue":"","type":"","value":""},"contentCategory":"","inventorySourceSettings":{"includeYoutubeSearch":false,"includeYoutubeVideoPartners":false,"includeYoutubeVideos":false},"leadFormId":"","linkedMerchantId":"","relatedVideoIds":[],"targetFrequency":{"targetCount":"","timeUnit":"","timeUnitCount":0},"thirdPartyMeasurementSettings":{"brandLiftVendorConfigs":[{"placementId":"","vendor":""}],"brandSafetyVendorConfigs":[{}],"reachVendorConfigs":[{}],"viewabilityVendorConfigs":[{}]},"videoAdSequenceSettings":{"minimumDuration":"","steps":[{"adGroupId":"","interactionType":"","previousStepId":"","stepId":""}]},"viewFrequencyCap":{}}},"updateMask":""}'
};

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}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "lineItemIds": [],\n  "targetLineItem": {\n    "advertiserId": "",\n    "bidStrategy": {\n      "fixedBid": {\n        "bidAmountMicros": ""\n      },\n      "maximizeSpendAutoBid": {\n        "customBiddingAlgorithmId": "",\n        "maxAverageCpmBidAmountMicros": "",\n        "performanceGoalType": "",\n        "raiseBidForDeals": false\n      },\n      "performanceGoalAutoBid": {\n        "customBiddingAlgorithmId": "",\n        "maxAverageCpmBidAmountMicros": "",\n        "performanceGoalAmountMicros": "",\n        "performanceGoalType": ""\n      }\n    },\n    "budget": {\n      "budgetAllocationType": "",\n      "budgetUnit": "",\n      "maxAmount": ""\n    },\n    "campaignId": "",\n    "conversionCounting": {\n      "floodlightActivityConfigs": [\n        {\n          "floodlightActivityId": "",\n          "postClickLookbackWindowDays": 0,\n          "postViewLookbackWindowDays": 0\n        }\n      ],\n      "postViewCountPercentageMillis": ""\n    },\n    "creativeIds": [],\n    "displayName": "",\n    "entityStatus": "",\n    "excludeNewExchanges": false,\n    "flight": {\n      "dateRange": {\n        "endDate": {\n          "day": 0,\n          "month": 0,\n          "year": 0\n        },\n        "startDate": {}\n      },\n      "flightDateType": ""\n    },\n    "frequencyCap": {\n      "maxImpressions": 0,\n      "maxViews": 0,\n      "timeUnit": "",\n      "timeUnitCount": 0,\n      "unlimited": false\n    },\n    "insertionOrderId": "",\n    "integrationDetails": {\n      "details": "",\n      "integrationCode": ""\n    },\n    "lineItemId": "",\n    "lineItemType": "",\n    "mobileApp": {\n      "appId": "",\n      "displayName": "",\n      "platform": "",\n      "publisher": ""\n    },\n    "name": "",\n    "pacing": {\n      "dailyMaxImpressions": "",\n      "dailyMaxMicros": "",\n      "pacingPeriod": "",\n      "pacingType": ""\n    },\n    "partnerCosts": [\n      {\n        "costType": "",\n        "feeAmount": "",\n        "feePercentageMillis": "",\n        "feeType": "",\n        "invoiceType": ""\n      }\n    ],\n    "partnerRevenueModel": {\n      "markupAmount": "",\n      "markupType": ""\n    },\n    "reservationType": "",\n    "targetingExpansion": {\n      "excludeFirstPartyAudience": false,\n      "targetingExpansionLevel": ""\n    },\n    "updateTime": "",\n    "warningMessages": [],\n    "youtubeAndPartnersSettings": {\n      "biddingStrategy": {\n        "adGroupEffectiveTargetCpaSource": "",\n        "adGroupEffectiveTargetCpaValue": "",\n        "type": "",\n        "value": ""\n      },\n      "contentCategory": "",\n      "inventorySourceSettings": {\n        "includeYoutubeSearch": false,\n        "includeYoutubeVideoPartners": false,\n        "includeYoutubeVideos": false\n      },\n      "leadFormId": "",\n      "linkedMerchantId": "",\n      "relatedVideoIds": [],\n      "targetFrequency": {\n        "targetCount": "",\n        "timeUnit": "",\n        "timeUnitCount": 0\n      },\n      "thirdPartyMeasurementSettings": {\n        "brandLiftVendorConfigs": [\n          {\n            "placementId": "",\n            "vendor": ""\n          }\n        ],\n        "brandSafetyVendorConfigs": [\n          {}\n        ],\n        "reachVendorConfigs": [\n          {}\n        ],\n        "viewabilityVendorConfigs": [\n          {}\n        ]\n      },\n      "videoAdSequenceSettings": {\n        "minimumDuration": "",\n        "steps": [\n          {\n            "adGroupId": "",\n            "interactionType": "",\n            "previousStepId": "",\n            "stepId": ""\n          }\n        ]\n      },\n      "viewFrequencyCap": {}\n    }\n  },\n  "updateMask": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate")
  .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/v2/advertisers/:advertiserId/lineItems:bulkUpdate',
  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({
  lineItemIds: [],
  targetLineItem: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {bidAmountMicros: ''},
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    budget: {budgetAllocationType: '', budgetUnit: '', maxAmount: ''},
    campaignId: '',
    conversionCounting: {
      floodlightActivityConfigs: [
        {
          floodlightActivityId: '',
          postClickLookbackWindowDays: 0,
          postViewLookbackWindowDays: 0
        }
      ],
      postViewCountPercentageMillis: ''
    },
    creativeIds: [],
    displayName: '',
    entityStatus: '',
    excludeNewExchanges: false,
    flight: {
      dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
      flightDateType: ''
    },
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    integrationDetails: {details: '', integrationCode: ''},
    lineItemId: '',
    lineItemType: '',
    mobileApp: {appId: '', displayName: '', platform: '', publisher: ''},
    name: '',
    pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    partnerRevenueModel: {markupAmount: '', markupType: ''},
    reservationType: '',
    targetingExpansion: {excludeFirstPartyAudience: false, targetingExpansionLevel: ''},
    updateTime: '',
    warningMessages: [],
    youtubeAndPartnersSettings: {
      biddingStrategy: {
        adGroupEffectiveTargetCpaSource: '',
        adGroupEffectiveTargetCpaValue: '',
        type: '',
        value: ''
      },
      contentCategory: '',
      inventorySourceSettings: {
        includeYoutubeSearch: false,
        includeYoutubeVideoPartners: false,
        includeYoutubeVideos: false
      },
      leadFormId: '',
      linkedMerchantId: '',
      relatedVideoIds: [],
      targetFrequency: {targetCount: '', timeUnit: '', timeUnitCount: 0},
      thirdPartyMeasurementSettings: {
        brandLiftVendorConfigs: [{placementId: '', vendor: ''}],
        brandSafetyVendorConfigs: [{}],
        reachVendorConfigs: [{}],
        viewabilityVendorConfigs: [{}]
      },
      videoAdSequenceSettings: {
        minimumDuration: '',
        steps: [{adGroupId: '', interactionType: '', previousStepId: '', stepId: ''}]
      },
      viewFrequencyCap: {}
    }
  },
  updateMask: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate',
  headers: {'content-type': 'application/json'},
  body: {
    lineItemIds: [],
    targetLineItem: {
      advertiserId: '',
      bidStrategy: {
        fixedBid: {bidAmountMicros: ''},
        maximizeSpendAutoBid: {
          customBiddingAlgorithmId: '',
          maxAverageCpmBidAmountMicros: '',
          performanceGoalType: '',
          raiseBidForDeals: false
        },
        performanceGoalAutoBid: {
          customBiddingAlgorithmId: '',
          maxAverageCpmBidAmountMicros: '',
          performanceGoalAmountMicros: '',
          performanceGoalType: ''
        }
      },
      budget: {budgetAllocationType: '', budgetUnit: '', maxAmount: ''},
      campaignId: '',
      conversionCounting: {
        floodlightActivityConfigs: [
          {
            floodlightActivityId: '',
            postClickLookbackWindowDays: 0,
            postViewLookbackWindowDays: 0
          }
        ],
        postViewCountPercentageMillis: ''
      },
      creativeIds: [],
      displayName: '',
      entityStatus: '',
      excludeNewExchanges: false,
      flight: {
        dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
        flightDateType: ''
      },
      frequencyCap: {
        maxImpressions: 0,
        maxViews: 0,
        timeUnit: '',
        timeUnitCount: 0,
        unlimited: false
      },
      insertionOrderId: '',
      integrationDetails: {details: '', integrationCode: ''},
      lineItemId: '',
      lineItemType: '',
      mobileApp: {appId: '', displayName: '', platform: '', publisher: ''},
      name: '',
      pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
      partnerCosts: [
        {
          costType: '',
          feeAmount: '',
          feePercentageMillis: '',
          feeType: '',
          invoiceType: ''
        }
      ],
      partnerRevenueModel: {markupAmount: '', markupType: ''},
      reservationType: '',
      targetingExpansion: {excludeFirstPartyAudience: false, targetingExpansionLevel: ''},
      updateTime: '',
      warningMessages: [],
      youtubeAndPartnersSettings: {
        biddingStrategy: {
          adGroupEffectiveTargetCpaSource: '',
          adGroupEffectiveTargetCpaValue: '',
          type: '',
          value: ''
        },
        contentCategory: '',
        inventorySourceSettings: {
          includeYoutubeSearch: false,
          includeYoutubeVideoPartners: false,
          includeYoutubeVideos: false
        },
        leadFormId: '',
        linkedMerchantId: '',
        relatedVideoIds: [],
        targetFrequency: {targetCount: '', timeUnit: '', timeUnitCount: 0},
        thirdPartyMeasurementSettings: {
          brandLiftVendorConfigs: [{placementId: '', vendor: ''}],
          brandSafetyVendorConfigs: [{}],
          reachVendorConfigs: [{}],
          viewabilityVendorConfigs: [{}]
        },
        videoAdSequenceSettings: {
          minimumDuration: '',
          steps: [{adGroupId: '', interactionType: '', previousStepId: '', stepId: ''}]
        },
        viewFrequencyCap: {}
      }
    },
    updateMask: ''
  },
  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}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate');

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

req.type('json');
req.send({
  lineItemIds: [],
  targetLineItem: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {
        bidAmountMicros: ''
      },
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    budget: {
      budgetAllocationType: '',
      budgetUnit: '',
      maxAmount: ''
    },
    campaignId: '',
    conversionCounting: {
      floodlightActivityConfigs: [
        {
          floodlightActivityId: '',
          postClickLookbackWindowDays: 0,
          postViewLookbackWindowDays: 0
        }
      ],
      postViewCountPercentageMillis: ''
    },
    creativeIds: [],
    displayName: '',
    entityStatus: '',
    excludeNewExchanges: false,
    flight: {
      dateRange: {
        endDate: {
          day: 0,
          month: 0,
          year: 0
        },
        startDate: {}
      },
      flightDateType: ''
    },
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    integrationDetails: {
      details: '',
      integrationCode: ''
    },
    lineItemId: '',
    lineItemType: '',
    mobileApp: {
      appId: '',
      displayName: '',
      platform: '',
      publisher: ''
    },
    name: '',
    pacing: {
      dailyMaxImpressions: '',
      dailyMaxMicros: '',
      pacingPeriod: '',
      pacingType: ''
    },
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    partnerRevenueModel: {
      markupAmount: '',
      markupType: ''
    },
    reservationType: '',
    targetingExpansion: {
      excludeFirstPartyAudience: false,
      targetingExpansionLevel: ''
    },
    updateTime: '',
    warningMessages: [],
    youtubeAndPartnersSettings: {
      biddingStrategy: {
        adGroupEffectiveTargetCpaSource: '',
        adGroupEffectiveTargetCpaValue: '',
        type: '',
        value: ''
      },
      contentCategory: '',
      inventorySourceSettings: {
        includeYoutubeSearch: false,
        includeYoutubeVideoPartners: false,
        includeYoutubeVideos: false
      },
      leadFormId: '',
      linkedMerchantId: '',
      relatedVideoIds: [],
      targetFrequency: {
        targetCount: '',
        timeUnit: '',
        timeUnitCount: 0
      },
      thirdPartyMeasurementSettings: {
        brandLiftVendorConfigs: [
          {
            placementId: '',
            vendor: ''
          }
        ],
        brandSafetyVendorConfigs: [
          {}
        ],
        reachVendorConfigs: [
          {}
        ],
        viewabilityVendorConfigs: [
          {}
        ]
      },
      videoAdSequenceSettings: {
        minimumDuration: '',
        steps: [
          {
            adGroupId: '',
            interactionType: '',
            previousStepId: '',
            stepId: ''
          }
        ]
      },
      viewFrequencyCap: {}
    }
  },
  updateMask: ''
});

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}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate',
  headers: {'content-type': 'application/json'},
  data: {
    lineItemIds: [],
    targetLineItem: {
      advertiserId: '',
      bidStrategy: {
        fixedBid: {bidAmountMicros: ''},
        maximizeSpendAutoBid: {
          customBiddingAlgorithmId: '',
          maxAverageCpmBidAmountMicros: '',
          performanceGoalType: '',
          raiseBidForDeals: false
        },
        performanceGoalAutoBid: {
          customBiddingAlgorithmId: '',
          maxAverageCpmBidAmountMicros: '',
          performanceGoalAmountMicros: '',
          performanceGoalType: ''
        }
      },
      budget: {budgetAllocationType: '', budgetUnit: '', maxAmount: ''},
      campaignId: '',
      conversionCounting: {
        floodlightActivityConfigs: [
          {
            floodlightActivityId: '',
            postClickLookbackWindowDays: 0,
            postViewLookbackWindowDays: 0
          }
        ],
        postViewCountPercentageMillis: ''
      },
      creativeIds: [],
      displayName: '',
      entityStatus: '',
      excludeNewExchanges: false,
      flight: {
        dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
        flightDateType: ''
      },
      frequencyCap: {
        maxImpressions: 0,
        maxViews: 0,
        timeUnit: '',
        timeUnitCount: 0,
        unlimited: false
      },
      insertionOrderId: '',
      integrationDetails: {details: '', integrationCode: ''},
      lineItemId: '',
      lineItemType: '',
      mobileApp: {appId: '', displayName: '', platform: '', publisher: ''},
      name: '',
      pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
      partnerCosts: [
        {
          costType: '',
          feeAmount: '',
          feePercentageMillis: '',
          feeType: '',
          invoiceType: ''
        }
      ],
      partnerRevenueModel: {markupAmount: '', markupType: ''},
      reservationType: '',
      targetingExpansion: {excludeFirstPartyAudience: false, targetingExpansionLevel: ''},
      updateTime: '',
      warningMessages: [],
      youtubeAndPartnersSettings: {
        biddingStrategy: {
          adGroupEffectiveTargetCpaSource: '',
          adGroupEffectiveTargetCpaValue: '',
          type: '',
          value: ''
        },
        contentCategory: '',
        inventorySourceSettings: {
          includeYoutubeSearch: false,
          includeYoutubeVideoPartners: false,
          includeYoutubeVideos: false
        },
        leadFormId: '',
        linkedMerchantId: '',
        relatedVideoIds: [],
        targetFrequency: {targetCount: '', timeUnit: '', timeUnitCount: 0},
        thirdPartyMeasurementSettings: {
          brandLiftVendorConfigs: [{placementId: '', vendor: ''}],
          brandSafetyVendorConfigs: [{}],
          reachVendorConfigs: [{}],
          viewabilityVendorConfigs: [{}]
        },
        videoAdSequenceSettings: {
          minimumDuration: '',
          steps: [{adGroupId: '', interactionType: '', previousStepId: '', stepId: ''}]
        },
        viewFrequencyCap: {}
      }
    },
    updateMask: ''
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"lineItemIds":[],"targetLineItem":{"advertiserId":"","bidStrategy":{"fixedBid":{"bidAmountMicros":""},"maximizeSpendAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalType":"","raiseBidForDeals":false},"performanceGoalAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalAmountMicros":"","performanceGoalType":""}},"budget":{"budgetAllocationType":"","budgetUnit":"","maxAmount":""},"campaignId":"","conversionCounting":{"floodlightActivityConfigs":[{"floodlightActivityId":"","postClickLookbackWindowDays":0,"postViewLookbackWindowDays":0}],"postViewCountPercentageMillis":""},"creativeIds":[],"displayName":"","entityStatus":"","excludeNewExchanges":false,"flight":{"dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"flightDateType":""},"frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"insertionOrderId":"","integrationDetails":{"details":"","integrationCode":""},"lineItemId":"","lineItemType":"","mobileApp":{"appId":"","displayName":"","platform":"","publisher":""},"name":"","pacing":{"dailyMaxImpressions":"","dailyMaxMicros":"","pacingPeriod":"","pacingType":""},"partnerCosts":[{"costType":"","feeAmount":"","feePercentageMillis":"","feeType":"","invoiceType":""}],"partnerRevenueModel":{"markupAmount":"","markupType":""},"reservationType":"","targetingExpansion":{"excludeFirstPartyAudience":false,"targetingExpansionLevel":""},"updateTime":"","warningMessages":[],"youtubeAndPartnersSettings":{"biddingStrategy":{"adGroupEffectiveTargetCpaSource":"","adGroupEffectiveTargetCpaValue":"","type":"","value":""},"contentCategory":"","inventorySourceSettings":{"includeYoutubeSearch":false,"includeYoutubeVideoPartners":false,"includeYoutubeVideos":false},"leadFormId":"","linkedMerchantId":"","relatedVideoIds":[],"targetFrequency":{"targetCount":"","timeUnit":"","timeUnitCount":0},"thirdPartyMeasurementSettings":{"brandLiftVendorConfigs":[{"placementId":"","vendor":""}],"brandSafetyVendorConfigs":[{}],"reachVendorConfigs":[{}],"viewabilityVendorConfigs":[{}]},"videoAdSequenceSettings":{"minimumDuration":"","steps":[{"adGroupId":"","interactionType":"","previousStepId":"","stepId":""}]},"viewFrequencyCap":{}}},"updateMask":""}'
};

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 = @{ @"lineItemIds": @[  ],
                              @"targetLineItem": @{ @"advertiserId": @"", @"bidStrategy": @{ @"fixedBid": @{ @"bidAmountMicros": @"" }, @"maximizeSpendAutoBid": @{ @"customBiddingAlgorithmId": @"", @"maxAverageCpmBidAmountMicros": @"", @"performanceGoalType": @"", @"raiseBidForDeals": @NO }, @"performanceGoalAutoBid": @{ @"customBiddingAlgorithmId": @"", @"maxAverageCpmBidAmountMicros": @"", @"performanceGoalAmountMicros": @"", @"performanceGoalType": @"" } }, @"budget": @{ @"budgetAllocationType": @"", @"budgetUnit": @"", @"maxAmount": @"" }, @"campaignId": @"", @"conversionCounting": @{ @"floodlightActivityConfigs": @[ @{ @"floodlightActivityId": @"", @"postClickLookbackWindowDays": @0, @"postViewLookbackWindowDays": @0 } ], @"postViewCountPercentageMillis": @"" }, @"creativeIds": @[  ], @"displayName": @"", @"entityStatus": @"", @"excludeNewExchanges": @NO, @"flight": @{ @"dateRange": @{ @"endDate": @{ @"day": @0, @"month": @0, @"year": @0 }, @"startDate": @{  } }, @"flightDateType": @"" }, @"frequencyCap": @{ @"maxImpressions": @0, @"maxViews": @0, @"timeUnit": @"", @"timeUnitCount": @0, @"unlimited": @NO }, @"insertionOrderId": @"", @"integrationDetails": @{ @"details": @"", @"integrationCode": @"" }, @"lineItemId": @"", @"lineItemType": @"", @"mobileApp": @{ @"appId": @"", @"displayName": @"", @"platform": @"", @"publisher": @"" }, @"name": @"", @"pacing": @{ @"dailyMaxImpressions": @"", @"dailyMaxMicros": @"", @"pacingPeriod": @"", @"pacingType": @"" }, @"partnerCosts": @[ @{ @"costType": @"", @"feeAmount": @"", @"feePercentageMillis": @"", @"feeType": @"", @"invoiceType": @"" } ], @"partnerRevenueModel": @{ @"markupAmount": @"", @"markupType": @"" }, @"reservationType": @"", @"targetingExpansion": @{ @"excludeFirstPartyAudience": @NO, @"targetingExpansionLevel": @"" }, @"updateTime": @"", @"warningMessages": @[  ], @"youtubeAndPartnersSettings": @{ @"biddingStrategy": @{ @"adGroupEffectiveTargetCpaSource": @"", @"adGroupEffectiveTargetCpaValue": @"", @"type": @"", @"value": @"" }, @"contentCategory": @"", @"inventorySourceSettings": @{ @"includeYoutubeSearch": @NO, @"includeYoutubeVideoPartners": @NO, @"includeYoutubeVideos": @NO }, @"leadFormId": @"", @"linkedMerchantId": @"", @"relatedVideoIds": @[  ], @"targetFrequency": @{ @"targetCount": @"", @"timeUnit": @"", @"timeUnitCount": @0 }, @"thirdPartyMeasurementSettings": @{ @"brandLiftVendorConfigs": @[ @{ @"placementId": @"", @"vendor": @"" } ], @"brandSafetyVendorConfigs": @[ @{  } ], @"reachVendorConfigs": @[ @{  } ], @"viewabilityVendorConfigs": @[ @{  } ] }, @"videoAdSequenceSettings": @{ @"minimumDuration": @"", @"steps": @[ @{ @"adGroupId": @"", @"interactionType": @"", @"previousStepId": @"", @"stepId": @"" } ] }, @"viewFrequencyCap": @{  } } },
                              @"updateMask": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate",
  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([
    'lineItemIds' => [
        
    ],
    'targetLineItem' => [
        'advertiserId' => '',
        'bidStrategy' => [
                'fixedBid' => [
                                'bidAmountMicros' => ''
                ],
                'maximizeSpendAutoBid' => [
                                'customBiddingAlgorithmId' => '',
                                'maxAverageCpmBidAmountMicros' => '',
                                'performanceGoalType' => '',
                                'raiseBidForDeals' => null
                ],
                'performanceGoalAutoBid' => [
                                'customBiddingAlgorithmId' => '',
                                'maxAverageCpmBidAmountMicros' => '',
                                'performanceGoalAmountMicros' => '',
                                'performanceGoalType' => ''
                ]
        ],
        'budget' => [
                'budgetAllocationType' => '',
                'budgetUnit' => '',
                'maxAmount' => ''
        ],
        'campaignId' => '',
        'conversionCounting' => [
                'floodlightActivityConfigs' => [
                                [
                                                                'floodlightActivityId' => '',
                                                                'postClickLookbackWindowDays' => 0,
                                                                'postViewLookbackWindowDays' => 0
                                ]
                ],
                'postViewCountPercentageMillis' => ''
        ],
        'creativeIds' => [
                
        ],
        'displayName' => '',
        'entityStatus' => '',
        'excludeNewExchanges' => null,
        'flight' => [
                'dateRange' => [
                                'endDate' => [
                                                                'day' => 0,
                                                                'month' => 0,
                                                                'year' => 0
                                ],
                                'startDate' => [
                                                                
                                ]
                ],
                'flightDateType' => ''
        ],
        'frequencyCap' => [
                'maxImpressions' => 0,
                'maxViews' => 0,
                'timeUnit' => '',
                'timeUnitCount' => 0,
                'unlimited' => null
        ],
        'insertionOrderId' => '',
        'integrationDetails' => [
                'details' => '',
                'integrationCode' => ''
        ],
        'lineItemId' => '',
        'lineItemType' => '',
        'mobileApp' => [
                'appId' => '',
                'displayName' => '',
                'platform' => '',
                'publisher' => ''
        ],
        'name' => '',
        'pacing' => [
                'dailyMaxImpressions' => '',
                'dailyMaxMicros' => '',
                'pacingPeriod' => '',
                'pacingType' => ''
        ],
        'partnerCosts' => [
                [
                                'costType' => '',
                                'feeAmount' => '',
                                'feePercentageMillis' => '',
                                'feeType' => '',
                                'invoiceType' => ''
                ]
        ],
        'partnerRevenueModel' => [
                'markupAmount' => '',
                'markupType' => ''
        ],
        'reservationType' => '',
        'targetingExpansion' => [
                'excludeFirstPartyAudience' => null,
                'targetingExpansionLevel' => ''
        ],
        'updateTime' => '',
        'warningMessages' => [
                
        ],
        'youtubeAndPartnersSettings' => [
                'biddingStrategy' => [
                                'adGroupEffectiveTargetCpaSource' => '',
                                'adGroupEffectiveTargetCpaValue' => '',
                                'type' => '',
                                'value' => ''
                ],
                'contentCategory' => '',
                'inventorySourceSettings' => [
                                'includeYoutubeSearch' => null,
                                'includeYoutubeVideoPartners' => null,
                                'includeYoutubeVideos' => null
                ],
                'leadFormId' => '',
                'linkedMerchantId' => '',
                'relatedVideoIds' => [
                                
                ],
                'targetFrequency' => [
                                'targetCount' => '',
                                'timeUnit' => '',
                                'timeUnitCount' => 0
                ],
                'thirdPartyMeasurementSettings' => [
                                'brandLiftVendorConfigs' => [
                                                                [
                                                                                                                                'placementId' => '',
                                                                                                                                'vendor' => ''
                                                                ]
                                ],
                                'brandSafetyVendorConfigs' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'reachVendorConfigs' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'viewabilityVendorConfigs' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'videoAdSequenceSettings' => [
                                'minimumDuration' => '',
                                'steps' => [
                                                                [
                                                                                                                                'adGroupId' => '',
                                                                                                                                'interactionType' => '',
                                                                                                                                'previousStepId' => '',
                                                                                                                                'stepId' => ''
                                                                ]
                                ]
                ],
                'viewFrequencyCap' => [
                                
                ]
        ]
    ],
    'updateMask' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate', [
  'body' => '{
  "lineItemIds": [],
  "targetLineItem": {
    "advertiserId": "",
    "bidStrategy": {
      "fixedBid": {
        "bidAmountMicros": ""
      },
      "maximizeSpendAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalType": "",
        "raiseBidForDeals": false
      },
      "performanceGoalAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalAmountMicros": "",
        "performanceGoalType": ""
      }
    },
    "budget": {
      "budgetAllocationType": "",
      "budgetUnit": "",
      "maxAmount": ""
    },
    "campaignId": "",
    "conversionCounting": {
      "floodlightActivityConfigs": [
        {
          "floodlightActivityId": "",
          "postClickLookbackWindowDays": 0,
          "postViewLookbackWindowDays": 0
        }
      ],
      "postViewCountPercentageMillis": ""
    },
    "creativeIds": [],
    "displayName": "",
    "entityStatus": "",
    "excludeNewExchanges": false,
    "flight": {
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "flightDateType": ""
    },
    "frequencyCap": {
      "maxImpressions": 0,
      "maxViews": 0,
      "timeUnit": "",
      "timeUnitCount": 0,
      "unlimited": false
    },
    "insertionOrderId": "",
    "integrationDetails": {
      "details": "",
      "integrationCode": ""
    },
    "lineItemId": "",
    "lineItemType": "",
    "mobileApp": {
      "appId": "",
      "displayName": "",
      "platform": "",
      "publisher": ""
    },
    "name": "",
    "pacing": {
      "dailyMaxImpressions": "",
      "dailyMaxMicros": "",
      "pacingPeriod": "",
      "pacingType": ""
    },
    "partnerCosts": [
      {
        "costType": "",
        "feeAmount": "",
        "feePercentageMillis": "",
        "feeType": "",
        "invoiceType": ""
      }
    ],
    "partnerRevenueModel": {
      "markupAmount": "",
      "markupType": ""
    },
    "reservationType": "",
    "targetingExpansion": {
      "excludeFirstPartyAudience": false,
      "targetingExpansionLevel": ""
    },
    "updateTime": "",
    "warningMessages": [],
    "youtubeAndPartnersSettings": {
      "biddingStrategy": {
        "adGroupEffectiveTargetCpaSource": "",
        "adGroupEffectiveTargetCpaValue": "",
        "type": "",
        "value": ""
      },
      "contentCategory": "",
      "inventorySourceSettings": {
        "includeYoutubeSearch": false,
        "includeYoutubeVideoPartners": false,
        "includeYoutubeVideos": false
      },
      "leadFormId": "",
      "linkedMerchantId": "",
      "relatedVideoIds": [],
      "targetFrequency": {
        "targetCount": "",
        "timeUnit": "",
        "timeUnitCount": 0
      },
      "thirdPartyMeasurementSettings": {
        "brandLiftVendorConfigs": [
          {
            "placementId": "",
            "vendor": ""
          }
        ],
        "brandSafetyVendorConfigs": [
          {}
        ],
        "reachVendorConfigs": [
          {}
        ],
        "viewabilityVendorConfigs": [
          {}
        ]
      },
      "videoAdSequenceSettings": {
        "minimumDuration": "",
        "steps": [
          {
            "adGroupId": "",
            "interactionType": "",
            "previousStepId": "",
            "stepId": ""
          }
        ]
      },
      "viewFrequencyCap": {}
    }
  },
  "updateMask": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'lineItemIds' => [
    
  ],
  'targetLineItem' => [
    'advertiserId' => '',
    'bidStrategy' => [
        'fixedBid' => [
                'bidAmountMicros' => ''
        ],
        'maximizeSpendAutoBid' => [
                'customBiddingAlgorithmId' => '',
                'maxAverageCpmBidAmountMicros' => '',
                'performanceGoalType' => '',
                'raiseBidForDeals' => null
        ],
        'performanceGoalAutoBid' => [
                'customBiddingAlgorithmId' => '',
                'maxAverageCpmBidAmountMicros' => '',
                'performanceGoalAmountMicros' => '',
                'performanceGoalType' => ''
        ]
    ],
    'budget' => [
        'budgetAllocationType' => '',
        'budgetUnit' => '',
        'maxAmount' => ''
    ],
    'campaignId' => '',
    'conversionCounting' => [
        'floodlightActivityConfigs' => [
                [
                                'floodlightActivityId' => '',
                                'postClickLookbackWindowDays' => 0,
                                'postViewLookbackWindowDays' => 0
                ]
        ],
        'postViewCountPercentageMillis' => ''
    ],
    'creativeIds' => [
        
    ],
    'displayName' => '',
    'entityStatus' => '',
    'excludeNewExchanges' => null,
    'flight' => [
        'dateRange' => [
                'endDate' => [
                                'day' => 0,
                                'month' => 0,
                                'year' => 0
                ],
                'startDate' => [
                                
                ]
        ],
        'flightDateType' => ''
    ],
    'frequencyCap' => [
        'maxImpressions' => 0,
        'maxViews' => 0,
        'timeUnit' => '',
        'timeUnitCount' => 0,
        'unlimited' => null
    ],
    'insertionOrderId' => '',
    'integrationDetails' => [
        'details' => '',
        'integrationCode' => ''
    ],
    'lineItemId' => '',
    'lineItemType' => '',
    'mobileApp' => [
        'appId' => '',
        'displayName' => '',
        'platform' => '',
        'publisher' => ''
    ],
    'name' => '',
    'pacing' => [
        'dailyMaxImpressions' => '',
        'dailyMaxMicros' => '',
        'pacingPeriod' => '',
        'pacingType' => ''
    ],
    'partnerCosts' => [
        [
                'costType' => '',
                'feeAmount' => '',
                'feePercentageMillis' => '',
                'feeType' => '',
                'invoiceType' => ''
        ]
    ],
    'partnerRevenueModel' => [
        'markupAmount' => '',
        'markupType' => ''
    ],
    'reservationType' => '',
    'targetingExpansion' => [
        'excludeFirstPartyAudience' => null,
        'targetingExpansionLevel' => ''
    ],
    'updateTime' => '',
    'warningMessages' => [
        
    ],
    'youtubeAndPartnersSettings' => [
        'biddingStrategy' => [
                'adGroupEffectiveTargetCpaSource' => '',
                'adGroupEffectiveTargetCpaValue' => '',
                'type' => '',
                'value' => ''
        ],
        'contentCategory' => '',
        'inventorySourceSettings' => [
                'includeYoutubeSearch' => null,
                'includeYoutubeVideoPartners' => null,
                'includeYoutubeVideos' => null
        ],
        'leadFormId' => '',
        'linkedMerchantId' => '',
        'relatedVideoIds' => [
                
        ],
        'targetFrequency' => [
                'targetCount' => '',
                'timeUnit' => '',
                'timeUnitCount' => 0
        ],
        'thirdPartyMeasurementSettings' => [
                'brandLiftVendorConfigs' => [
                                [
                                                                'placementId' => '',
                                                                'vendor' => ''
                                ]
                ],
                'brandSafetyVendorConfigs' => [
                                [
                                                                
                                ]
                ],
                'reachVendorConfigs' => [
                                [
                                                                
                                ]
                ],
                'viewabilityVendorConfigs' => [
                                [
                                                                
                                ]
                ]
        ],
        'videoAdSequenceSettings' => [
                'minimumDuration' => '',
                'steps' => [
                                [
                                                                'adGroupId' => '',
                                                                'interactionType' => '',
                                                                'previousStepId' => '',
                                                                'stepId' => ''
                                ]
                ]
        ],
        'viewFrequencyCap' => [
                
        ]
    ]
  ],
  'updateMask' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'lineItemIds' => [
    
  ],
  'targetLineItem' => [
    'advertiserId' => '',
    'bidStrategy' => [
        'fixedBid' => [
                'bidAmountMicros' => ''
        ],
        'maximizeSpendAutoBid' => [
                'customBiddingAlgorithmId' => '',
                'maxAverageCpmBidAmountMicros' => '',
                'performanceGoalType' => '',
                'raiseBidForDeals' => null
        ],
        'performanceGoalAutoBid' => [
                'customBiddingAlgorithmId' => '',
                'maxAverageCpmBidAmountMicros' => '',
                'performanceGoalAmountMicros' => '',
                'performanceGoalType' => ''
        ]
    ],
    'budget' => [
        'budgetAllocationType' => '',
        'budgetUnit' => '',
        'maxAmount' => ''
    ],
    'campaignId' => '',
    'conversionCounting' => [
        'floodlightActivityConfigs' => [
                [
                                'floodlightActivityId' => '',
                                'postClickLookbackWindowDays' => 0,
                                'postViewLookbackWindowDays' => 0
                ]
        ],
        'postViewCountPercentageMillis' => ''
    ],
    'creativeIds' => [
        
    ],
    'displayName' => '',
    'entityStatus' => '',
    'excludeNewExchanges' => null,
    'flight' => [
        'dateRange' => [
                'endDate' => [
                                'day' => 0,
                                'month' => 0,
                                'year' => 0
                ],
                'startDate' => [
                                
                ]
        ],
        'flightDateType' => ''
    ],
    'frequencyCap' => [
        'maxImpressions' => 0,
        'maxViews' => 0,
        'timeUnit' => '',
        'timeUnitCount' => 0,
        'unlimited' => null
    ],
    'insertionOrderId' => '',
    'integrationDetails' => [
        'details' => '',
        'integrationCode' => ''
    ],
    'lineItemId' => '',
    'lineItemType' => '',
    'mobileApp' => [
        'appId' => '',
        'displayName' => '',
        'platform' => '',
        'publisher' => ''
    ],
    'name' => '',
    'pacing' => [
        'dailyMaxImpressions' => '',
        'dailyMaxMicros' => '',
        'pacingPeriod' => '',
        'pacingType' => ''
    ],
    'partnerCosts' => [
        [
                'costType' => '',
                'feeAmount' => '',
                'feePercentageMillis' => '',
                'feeType' => '',
                'invoiceType' => ''
        ]
    ],
    'partnerRevenueModel' => [
        'markupAmount' => '',
        'markupType' => ''
    ],
    'reservationType' => '',
    'targetingExpansion' => [
        'excludeFirstPartyAudience' => null,
        'targetingExpansionLevel' => ''
    ],
    'updateTime' => '',
    'warningMessages' => [
        
    ],
    'youtubeAndPartnersSettings' => [
        'biddingStrategy' => [
                'adGroupEffectiveTargetCpaSource' => '',
                'adGroupEffectiveTargetCpaValue' => '',
                'type' => '',
                'value' => ''
        ],
        'contentCategory' => '',
        'inventorySourceSettings' => [
                'includeYoutubeSearch' => null,
                'includeYoutubeVideoPartners' => null,
                'includeYoutubeVideos' => null
        ],
        'leadFormId' => '',
        'linkedMerchantId' => '',
        'relatedVideoIds' => [
                
        ],
        'targetFrequency' => [
                'targetCount' => '',
                'timeUnit' => '',
                'timeUnitCount' => 0
        ],
        'thirdPartyMeasurementSettings' => [
                'brandLiftVendorConfigs' => [
                                [
                                                                'placementId' => '',
                                                                'vendor' => ''
                                ]
                ],
                'brandSafetyVendorConfigs' => [
                                [
                                                                
                                ]
                ],
                'reachVendorConfigs' => [
                                [
                                                                
                                ]
                ],
                'viewabilityVendorConfigs' => [
                                [
                                                                
                                ]
                ]
        ],
        'videoAdSequenceSettings' => [
                'minimumDuration' => '',
                'steps' => [
                                [
                                                                'adGroupId' => '',
                                                                'interactionType' => '',
                                                                'previousStepId' => '',
                                                                'stepId' => ''
                                ]
                ]
        ],
        'viewFrequencyCap' => [
                
        ]
    ]
  ],
  'updateMask' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate');
$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}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "lineItemIds": [],
  "targetLineItem": {
    "advertiserId": "",
    "bidStrategy": {
      "fixedBid": {
        "bidAmountMicros": ""
      },
      "maximizeSpendAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalType": "",
        "raiseBidForDeals": false
      },
      "performanceGoalAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalAmountMicros": "",
        "performanceGoalType": ""
      }
    },
    "budget": {
      "budgetAllocationType": "",
      "budgetUnit": "",
      "maxAmount": ""
    },
    "campaignId": "",
    "conversionCounting": {
      "floodlightActivityConfigs": [
        {
          "floodlightActivityId": "",
          "postClickLookbackWindowDays": 0,
          "postViewLookbackWindowDays": 0
        }
      ],
      "postViewCountPercentageMillis": ""
    },
    "creativeIds": [],
    "displayName": "",
    "entityStatus": "",
    "excludeNewExchanges": false,
    "flight": {
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "flightDateType": ""
    },
    "frequencyCap": {
      "maxImpressions": 0,
      "maxViews": 0,
      "timeUnit": "",
      "timeUnitCount": 0,
      "unlimited": false
    },
    "insertionOrderId": "",
    "integrationDetails": {
      "details": "",
      "integrationCode": ""
    },
    "lineItemId": "",
    "lineItemType": "",
    "mobileApp": {
      "appId": "",
      "displayName": "",
      "platform": "",
      "publisher": ""
    },
    "name": "",
    "pacing": {
      "dailyMaxImpressions": "",
      "dailyMaxMicros": "",
      "pacingPeriod": "",
      "pacingType": ""
    },
    "partnerCosts": [
      {
        "costType": "",
        "feeAmount": "",
        "feePercentageMillis": "",
        "feeType": "",
        "invoiceType": ""
      }
    ],
    "partnerRevenueModel": {
      "markupAmount": "",
      "markupType": ""
    },
    "reservationType": "",
    "targetingExpansion": {
      "excludeFirstPartyAudience": false,
      "targetingExpansionLevel": ""
    },
    "updateTime": "",
    "warningMessages": [],
    "youtubeAndPartnersSettings": {
      "biddingStrategy": {
        "adGroupEffectiveTargetCpaSource": "",
        "adGroupEffectiveTargetCpaValue": "",
        "type": "",
        "value": ""
      },
      "contentCategory": "",
      "inventorySourceSettings": {
        "includeYoutubeSearch": false,
        "includeYoutubeVideoPartners": false,
        "includeYoutubeVideos": false
      },
      "leadFormId": "",
      "linkedMerchantId": "",
      "relatedVideoIds": [],
      "targetFrequency": {
        "targetCount": "",
        "timeUnit": "",
        "timeUnitCount": 0
      },
      "thirdPartyMeasurementSettings": {
        "brandLiftVendorConfigs": [
          {
            "placementId": "",
            "vendor": ""
          }
        ],
        "brandSafetyVendorConfigs": [
          {}
        ],
        "reachVendorConfigs": [
          {}
        ],
        "viewabilityVendorConfigs": [
          {}
        ]
      },
      "videoAdSequenceSettings": {
        "minimumDuration": "",
        "steps": [
          {
            "adGroupId": "",
            "interactionType": "",
            "previousStepId": "",
            "stepId": ""
          }
        ]
      },
      "viewFrequencyCap": {}
    }
  },
  "updateMask": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "lineItemIds": [],
  "targetLineItem": {
    "advertiserId": "",
    "bidStrategy": {
      "fixedBid": {
        "bidAmountMicros": ""
      },
      "maximizeSpendAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalType": "",
        "raiseBidForDeals": false
      },
      "performanceGoalAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalAmountMicros": "",
        "performanceGoalType": ""
      }
    },
    "budget": {
      "budgetAllocationType": "",
      "budgetUnit": "",
      "maxAmount": ""
    },
    "campaignId": "",
    "conversionCounting": {
      "floodlightActivityConfigs": [
        {
          "floodlightActivityId": "",
          "postClickLookbackWindowDays": 0,
          "postViewLookbackWindowDays": 0
        }
      ],
      "postViewCountPercentageMillis": ""
    },
    "creativeIds": [],
    "displayName": "",
    "entityStatus": "",
    "excludeNewExchanges": false,
    "flight": {
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "flightDateType": ""
    },
    "frequencyCap": {
      "maxImpressions": 0,
      "maxViews": 0,
      "timeUnit": "",
      "timeUnitCount": 0,
      "unlimited": false
    },
    "insertionOrderId": "",
    "integrationDetails": {
      "details": "",
      "integrationCode": ""
    },
    "lineItemId": "",
    "lineItemType": "",
    "mobileApp": {
      "appId": "",
      "displayName": "",
      "platform": "",
      "publisher": ""
    },
    "name": "",
    "pacing": {
      "dailyMaxImpressions": "",
      "dailyMaxMicros": "",
      "pacingPeriod": "",
      "pacingType": ""
    },
    "partnerCosts": [
      {
        "costType": "",
        "feeAmount": "",
        "feePercentageMillis": "",
        "feeType": "",
        "invoiceType": ""
      }
    ],
    "partnerRevenueModel": {
      "markupAmount": "",
      "markupType": ""
    },
    "reservationType": "",
    "targetingExpansion": {
      "excludeFirstPartyAudience": false,
      "targetingExpansionLevel": ""
    },
    "updateTime": "",
    "warningMessages": [],
    "youtubeAndPartnersSettings": {
      "biddingStrategy": {
        "adGroupEffectiveTargetCpaSource": "",
        "adGroupEffectiveTargetCpaValue": "",
        "type": "",
        "value": ""
      },
      "contentCategory": "",
      "inventorySourceSettings": {
        "includeYoutubeSearch": false,
        "includeYoutubeVideoPartners": false,
        "includeYoutubeVideos": false
      },
      "leadFormId": "",
      "linkedMerchantId": "",
      "relatedVideoIds": [],
      "targetFrequency": {
        "targetCount": "",
        "timeUnit": "",
        "timeUnitCount": 0
      },
      "thirdPartyMeasurementSettings": {
        "brandLiftVendorConfigs": [
          {
            "placementId": "",
            "vendor": ""
          }
        ],
        "brandSafetyVendorConfigs": [
          {}
        ],
        "reachVendorConfigs": [
          {}
        ],
        "viewabilityVendorConfigs": [
          {}
        ]
      },
      "videoAdSequenceSettings": {
        "minimumDuration": "",
        "steps": [
          {
            "adGroupId": "",
            "interactionType": "",
            "previousStepId": "",
            "stepId": ""
          }
        ]
      },
      "viewFrequencyCap": {}
    }
  },
  "updateMask": ""
}'
import http.client

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

payload = "{\n  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/lineItems:bulkUpdate", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate"

payload = {
    "lineItemIds": [],
    "targetLineItem": {
        "advertiserId": "",
        "bidStrategy": {
            "fixedBid": { "bidAmountMicros": "" },
            "maximizeSpendAutoBid": {
                "customBiddingAlgorithmId": "",
                "maxAverageCpmBidAmountMicros": "",
                "performanceGoalType": "",
                "raiseBidForDeals": False
            },
            "performanceGoalAutoBid": {
                "customBiddingAlgorithmId": "",
                "maxAverageCpmBidAmountMicros": "",
                "performanceGoalAmountMicros": "",
                "performanceGoalType": ""
            }
        },
        "budget": {
            "budgetAllocationType": "",
            "budgetUnit": "",
            "maxAmount": ""
        },
        "campaignId": "",
        "conversionCounting": {
            "floodlightActivityConfigs": [
                {
                    "floodlightActivityId": "",
                    "postClickLookbackWindowDays": 0,
                    "postViewLookbackWindowDays": 0
                }
            ],
            "postViewCountPercentageMillis": ""
        },
        "creativeIds": [],
        "displayName": "",
        "entityStatus": "",
        "excludeNewExchanges": False,
        "flight": {
            "dateRange": {
                "endDate": {
                    "day": 0,
                    "month": 0,
                    "year": 0
                },
                "startDate": {}
            },
            "flightDateType": ""
        },
        "frequencyCap": {
            "maxImpressions": 0,
            "maxViews": 0,
            "timeUnit": "",
            "timeUnitCount": 0,
            "unlimited": False
        },
        "insertionOrderId": "",
        "integrationDetails": {
            "details": "",
            "integrationCode": ""
        },
        "lineItemId": "",
        "lineItemType": "",
        "mobileApp": {
            "appId": "",
            "displayName": "",
            "platform": "",
            "publisher": ""
        },
        "name": "",
        "pacing": {
            "dailyMaxImpressions": "",
            "dailyMaxMicros": "",
            "pacingPeriod": "",
            "pacingType": ""
        },
        "partnerCosts": [
            {
                "costType": "",
                "feeAmount": "",
                "feePercentageMillis": "",
                "feeType": "",
                "invoiceType": ""
            }
        ],
        "partnerRevenueModel": {
            "markupAmount": "",
            "markupType": ""
        },
        "reservationType": "",
        "targetingExpansion": {
            "excludeFirstPartyAudience": False,
            "targetingExpansionLevel": ""
        },
        "updateTime": "",
        "warningMessages": [],
        "youtubeAndPartnersSettings": {
            "biddingStrategy": {
                "adGroupEffectiveTargetCpaSource": "",
                "adGroupEffectiveTargetCpaValue": "",
                "type": "",
                "value": ""
            },
            "contentCategory": "",
            "inventorySourceSettings": {
                "includeYoutubeSearch": False,
                "includeYoutubeVideoPartners": False,
                "includeYoutubeVideos": False
            },
            "leadFormId": "",
            "linkedMerchantId": "",
            "relatedVideoIds": [],
            "targetFrequency": {
                "targetCount": "",
                "timeUnit": "",
                "timeUnitCount": 0
            },
            "thirdPartyMeasurementSettings": {
                "brandLiftVendorConfigs": [
                    {
                        "placementId": "",
                        "vendor": ""
                    }
                ],
                "brandSafetyVendorConfigs": [{}],
                "reachVendorConfigs": [{}],
                "viewabilityVendorConfigs": [{}]
            },
            "videoAdSequenceSettings": {
                "minimumDuration": "",
                "steps": [
                    {
                        "adGroupId": "",
                        "interactionType": "",
                        "previousStepId": "",
                        "stepId": ""
                    }
                ]
            },
            "viewFrequencyCap": {}
        }
    },
    "updateMask": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate"

payload <- "{\n  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\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}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate")

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  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\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/v2/advertisers/:advertiserId/lineItems:bulkUpdate') do |req|
  req.body = "{\n  \"lineItemIds\": [],\n  \"targetLineItem\": {\n    \"advertiserId\": \"\",\n    \"bidStrategy\": {\n      \"fixedBid\": {\n        \"bidAmountMicros\": \"\"\n      },\n      \"maximizeSpendAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalType\": \"\",\n        \"raiseBidForDeals\": false\n      },\n      \"performanceGoalAutoBid\": {\n        \"customBiddingAlgorithmId\": \"\",\n        \"maxAverageCpmBidAmountMicros\": \"\",\n        \"performanceGoalAmountMicros\": \"\",\n        \"performanceGoalType\": \"\"\n      }\n    },\n    \"budget\": {\n      \"budgetAllocationType\": \"\",\n      \"budgetUnit\": \"\",\n      \"maxAmount\": \"\"\n    },\n    \"campaignId\": \"\",\n    \"conversionCounting\": {\n      \"floodlightActivityConfigs\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"postClickLookbackWindowDays\": 0,\n          \"postViewLookbackWindowDays\": 0\n        }\n      ],\n      \"postViewCountPercentageMillis\": \"\"\n    },\n    \"creativeIds\": [],\n    \"displayName\": \"\",\n    \"entityStatus\": \"\",\n    \"excludeNewExchanges\": false,\n    \"flight\": {\n      \"dateRange\": {\n        \"endDate\": {\n          \"day\": 0,\n          \"month\": 0,\n          \"year\": 0\n        },\n        \"startDate\": {}\n      },\n      \"flightDateType\": \"\"\n    },\n    \"frequencyCap\": {\n      \"maxImpressions\": 0,\n      \"maxViews\": 0,\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0,\n      \"unlimited\": false\n    },\n    \"insertionOrderId\": \"\",\n    \"integrationDetails\": {\n      \"details\": \"\",\n      \"integrationCode\": \"\"\n    },\n    \"lineItemId\": \"\",\n    \"lineItemType\": \"\",\n    \"mobileApp\": {\n      \"appId\": \"\",\n      \"displayName\": \"\",\n      \"platform\": \"\",\n      \"publisher\": \"\"\n    },\n    \"name\": \"\",\n    \"pacing\": {\n      \"dailyMaxImpressions\": \"\",\n      \"dailyMaxMicros\": \"\",\n      \"pacingPeriod\": \"\",\n      \"pacingType\": \"\"\n    },\n    \"partnerCosts\": [\n      {\n        \"costType\": \"\",\n        \"feeAmount\": \"\",\n        \"feePercentageMillis\": \"\",\n        \"feeType\": \"\",\n        \"invoiceType\": \"\"\n      }\n    ],\n    \"partnerRevenueModel\": {\n      \"markupAmount\": \"\",\n      \"markupType\": \"\"\n    },\n    \"reservationType\": \"\",\n    \"targetingExpansion\": {\n      \"excludeFirstPartyAudience\": false,\n      \"targetingExpansionLevel\": \"\"\n    },\n    \"updateTime\": \"\",\n    \"warningMessages\": [],\n    \"youtubeAndPartnersSettings\": {\n      \"biddingStrategy\": {\n        \"adGroupEffectiveTargetCpaSource\": \"\",\n        \"adGroupEffectiveTargetCpaValue\": \"\",\n        \"type\": \"\",\n        \"value\": \"\"\n      },\n      \"contentCategory\": \"\",\n      \"inventorySourceSettings\": {\n        \"includeYoutubeSearch\": false,\n        \"includeYoutubeVideoPartners\": false,\n        \"includeYoutubeVideos\": false\n      },\n      \"leadFormId\": \"\",\n      \"linkedMerchantId\": \"\",\n      \"relatedVideoIds\": [],\n      \"targetFrequency\": {\n        \"targetCount\": \"\",\n        \"timeUnit\": \"\",\n        \"timeUnitCount\": 0\n      },\n      \"thirdPartyMeasurementSettings\": {\n        \"brandLiftVendorConfigs\": [\n          {\n            \"placementId\": \"\",\n            \"vendor\": \"\"\n          }\n        ],\n        \"brandSafetyVendorConfigs\": [\n          {}\n        ],\n        \"reachVendorConfigs\": [\n          {}\n        ],\n        \"viewabilityVendorConfigs\": [\n          {}\n        ]\n      },\n      \"videoAdSequenceSettings\": {\n        \"minimumDuration\": \"\",\n        \"steps\": [\n          {\n            \"adGroupId\": \"\",\n            \"interactionType\": \"\",\n            \"previousStepId\": \"\",\n            \"stepId\": \"\"\n          }\n        ]\n      },\n      \"viewFrequencyCap\": {}\n    }\n  },\n  \"updateMask\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate";

    let payload = json!({
        "lineItemIds": (),
        "targetLineItem": json!({
            "advertiserId": "",
            "bidStrategy": json!({
                "fixedBid": json!({"bidAmountMicros": ""}),
                "maximizeSpendAutoBid": json!({
                    "customBiddingAlgorithmId": "",
                    "maxAverageCpmBidAmountMicros": "",
                    "performanceGoalType": "",
                    "raiseBidForDeals": false
                }),
                "performanceGoalAutoBid": json!({
                    "customBiddingAlgorithmId": "",
                    "maxAverageCpmBidAmountMicros": "",
                    "performanceGoalAmountMicros": "",
                    "performanceGoalType": ""
                })
            }),
            "budget": json!({
                "budgetAllocationType": "",
                "budgetUnit": "",
                "maxAmount": ""
            }),
            "campaignId": "",
            "conversionCounting": json!({
                "floodlightActivityConfigs": (
                    json!({
                        "floodlightActivityId": "",
                        "postClickLookbackWindowDays": 0,
                        "postViewLookbackWindowDays": 0
                    })
                ),
                "postViewCountPercentageMillis": ""
            }),
            "creativeIds": (),
            "displayName": "",
            "entityStatus": "",
            "excludeNewExchanges": false,
            "flight": json!({
                "dateRange": json!({
                    "endDate": json!({
                        "day": 0,
                        "month": 0,
                        "year": 0
                    }),
                    "startDate": json!({})
                }),
                "flightDateType": ""
            }),
            "frequencyCap": json!({
                "maxImpressions": 0,
                "maxViews": 0,
                "timeUnit": "",
                "timeUnitCount": 0,
                "unlimited": false
            }),
            "insertionOrderId": "",
            "integrationDetails": json!({
                "details": "",
                "integrationCode": ""
            }),
            "lineItemId": "",
            "lineItemType": "",
            "mobileApp": json!({
                "appId": "",
                "displayName": "",
                "platform": "",
                "publisher": ""
            }),
            "name": "",
            "pacing": json!({
                "dailyMaxImpressions": "",
                "dailyMaxMicros": "",
                "pacingPeriod": "",
                "pacingType": ""
            }),
            "partnerCosts": (
                json!({
                    "costType": "",
                    "feeAmount": "",
                    "feePercentageMillis": "",
                    "feeType": "",
                    "invoiceType": ""
                })
            ),
            "partnerRevenueModel": json!({
                "markupAmount": "",
                "markupType": ""
            }),
            "reservationType": "",
            "targetingExpansion": json!({
                "excludeFirstPartyAudience": false,
                "targetingExpansionLevel": ""
            }),
            "updateTime": "",
            "warningMessages": (),
            "youtubeAndPartnersSettings": json!({
                "biddingStrategy": json!({
                    "adGroupEffectiveTargetCpaSource": "",
                    "adGroupEffectiveTargetCpaValue": "",
                    "type": "",
                    "value": ""
                }),
                "contentCategory": "",
                "inventorySourceSettings": json!({
                    "includeYoutubeSearch": false,
                    "includeYoutubeVideoPartners": false,
                    "includeYoutubeVideos": false
                }),
                "leadFormId": "",
                "linkedMerchantId": "",
                "relatedVideoIds": (),
                "targetFrequency": json!({
                    "targetCount": "",
                    "timeUnit": "",
                    "timeUnitCount": 0
                }),
                "thirdPartyMeasurementSettings": json!({
                    "brandLiftVendorConfigs": (
                        json!({
                            "placementId": "",
                            "vendor": ""
                        })
                    ),
                    "brandSafetyVendorConfigs": (json!({})),
                    "reachVendorConfigs": (json!({})),
                    "viewabilityVendorConfigs": (json!({}))
                }),
                "videoAdSequenceSettings": json!({
                    "minimumDuration": "",
                    "steps": (
                        json!({
                            "adGroupId": "",
                            "interactionType": "",
                            "previousStepId": "",
                            "stepId": ""
                        })
                    )
                }),
                "viewFrequencyCap": json!({})
            })
        }),
        "updateMask": ""
    });

    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}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate \
  --header 'content-type: application/json' \
  --data '{
  "lineItemIds": [],
  "targetLineItem": {
    "advertiserId": "",
    "bidStrategy": {
      "fixedBid": {
        "bidAmountMicros": ""
      },
      "maximizeSpendAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalType": "",
        "raiseBidForDeals": false
      },
      "performanceGoalAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalAmountMicros": "",
        "performanceGoalType": ""
      }
    },
    "budget": {
      "budgetAllocationType": "",
      "budgetUnit": "",
      "maxAmount": ""
    },
    "campaignId": "",
    "conversionCounting": {
      "floodlightActivityConfigs": [
        {
          "floodlightActivityId": "",
          "postClickLookbackWindowDays": 0,
          "postViewLookbackWindowDays": 0
        }
      ],
      "postViewCountPercentageMillis": ""
    },
    "creativeIds": [],
    "displayName": "",
    "entityStatus": "",
    "excludeNewExchanges": false,
    "flight": {
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "flightDateType": ""
    },
    "frequencyCap": {
      "maxImpressions": 0,
      "maxViews": 0,
      "timeUnit": "",
      "timeUnitCount": 0,
      "unlimited": false
    },
    "insertionOrderId": "",
    "integrationDetails": {
      "details": "",
      "integrationCode": ""
    },
    "lineItemId": "",
    "lineItemType": "",
    "mobileApp": {
      "appId": "",
      "displayName": "",
      "platform": "",
      "publisher": ""
    },
    "name": "",
    "pacing": {
      "dailyMaxImpressions": "",
      "dailyMaxMicros": "",
      "pacingPeriod": "",
      "pacingType": ""
    },
    "partnerCosts": [
      {
        "costType": "",
        "feeAmount": "",
        "feePercentageMillis": "",
        "feeType": "",
        "invoiceType": ""
      }
    ],
    "partnerRevenueModel": {
      "markupAmount": "",
      "markupType": ""
    },
    "reservationType": "",
    "targetingExpansion": {
      "excludeFirstPartyAudience": false,
      "targetingExpansionLevel": ""
    },
    "updateTime": "",
    "warningMessages": [],
    "youtubeAndPartnersSettings": {
      "biddingStrategy": {
        "adGroupEffectiveTargetCpaSource": "",
        "adGroupEffectiveTargetCpaValue": "",
        "type": "",
        "value": ""
      },
      "contentCategory": "",
      "inventorySourceSettings": {
        "includeYoutubeSearch": false,
        "includeYoutubeVideoPartners": false,
        "includeYoutubeVideos": false
      },
      "leadFormId": "",
      "linkedMerchantId": "",
      "relatedVideoIds": [],
      "targetFrequency": {
        "targetCount": "",
        "timeUnit": "",
        "timeUnitCount": 0
      },
      "thirdPartyMeasurementSettings": {
        "brandLiftVendorConfigs": [
          {
            "placementId": "",
            "vendor": ""
          }
        ],
        "brandSafetyVendorConfigs": [
          {}
        ],
        "reachVendorConfigs": [
          {}
        ],
        "viewabilityVendorConfigs": [
          {}
        ]
      },
      "videoAdSequenceSettings": {
        "minimumDuration": "",
        "steps": [
          {
            "adGroupId": "",
            "interactionType": "",
            "previousStepId": "",
            "stepId": ""
          }
        ]
      },
      "viewFrequencyCap": {}
    }
  },
  "updateMask": ""
}'
echo '{
  "lineItemIds": [],
  "targetLineItem": {
    "advertiserId": "",
    "bidStrategy": {
      "fixedBid": {
        "bidAmountMicros": ""
      },
      "maximizeSpendAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalType": "",
        "raiseBidForDeals": false
      },
      "performanceGoalAutoBid": {
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalAmountMicros": "",
        "performanceGoalType": ""
      }
    },
    "budget": {
      "budgetAllocationType": "",
      "budgetUnit": "",
      "maxAmount": ""
    },
    "campaignId": "",
    "conversionCounting": {
      "floodlightActivityConfigs": [
        {
          "floodlightActivityId": "",
          "postClickLookbackWindowDays": 0,
          "postViewLookbackWindowDays": 0
        }
      ],
      "postViewCountPercentageMillis": ""
    },
    "creativeIds": [],
    "displayName": "",
    "entityStatus": "",
    "excludeNewExchanges": false,
    "flight": {
      "dateRange": {
        "endDate": {
          "day": 0,
          "month": 0,
          "year": 0
        },
        "startDate": {}
      },
      "flightDateType": ""
    },
    "frequencyCap": {
      "maxImpressions": 0,
      "maxViews": 0,
      "timeUnit": "",
      "timeUnitCount": 0,
      "unlimited": false
    },
    "insertionOrderId": "",
    "integrationDetails": {
      "details": "",
      "integrationCode": ""
    },
    "lineItemId": "",
    "lineItemType": "",
    "mobileApp": {
      "appId": "",
      "displayName": "",
      "platform": "",
      "publisher": ""
    },
    "name": "",
    "pacing": {
      "dailyMaxImpressions": "",
      "dailyMaxMicros": "",
      "pacingPeriod": "",
      "pacingType": ""
    },
    "partnerCosts": [
      {
        "costType": "",
        "feeAmount": "",
        "feePercentageMillis": "",
        "feeType": "",
        "invoiceType": ""
      }
    ],
    "partnerRevenueModel": {
      "markupAmount": "",
      "markupType": ""
    },
    "reservationType": "",
    "targetingExpansion": {
      "excludeFirstPartyAudience": false,
      "targetingExpansionLevel": ""
    },
    "updateTime": "",
    "warningMessages": [],
    "youtubeAndPartnersSettings": {
      "biddingStrategy": {
        "adGroupEffectiveTargetCpaSource": "",
        "adGroupEffectiveTargetCpaValue": "",
        "type": "",
        "value": ""
      },
      "contentCategory": "",
      "inventorySourceSettings": {
        "includeYoutubeSearch": false,
        "includeYoutubeVideoPartners": false,
        "includeYoutubeVideos": false
      },
      "leadFormId": "",
      "linkedMerchantId": "",
      "relatedVideoIds": [],
      "targetFrequency": {
        "targetCount": "",
        "timeUnit": "",
        "timeUnitCount": 0
      },
      "thirdPartyMeasurementSettings": {
        "brandLiftVendorConfigs": [
          {
            "placementId": "",
            "vendor": ""
          }
        ],
        "brandSafetyVendorConfigs": [
          {}
        ],
        "reachVendorConfigs": [
          {}
        ],
        "viewabilityVendorConfigs": [
          {}
        ]
      },
      "videoAdSequenceSettings": {
        "minimumDuration": "",
        "steps": [
          {
            "adGroupId": "",
            "interactionType": "",
            "previousStepId": "",
            "stepId": ""
          }
        ]
      },
      "viewFrequencyCap": {}
    }
  },
  "updateMask": ""
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "lineItemIds": [],\n  "targetLineItem": {\n    "advertiserId": "",\n    "bidStrategy": {\n      "fixedBid": {\n        "bidAmountMicros": ""\n      },\n      "maximizeSpendAutoBid": {\n        "customBiddingAlgorithmId": "",\n        "maxAverageCpmBidAmountMicros": "",\n        "performanceGoalType": "",\n        "raiseBidForDeals": false\n      },\n      "performanceGoalAutoBid": {\n        "customBiddingAlgorithmId": "",\n        "maxAverageCpmBidAmountMicros": "",\n        "performanceGoalAmountMicros": "",\n        "performanceGoalType": ""\n      }\n    },\n    "budget": {\n      "budgetAllocationType": "",\n      "budgetUnit": "",\n      "maxAmount": ""\n    },\n    "campaignId": "",\n    "conversionCounting": {\n      "floodlightActivityConfigs": [\n        {\n          "floodlightActivityId": "",\n          "postClickLookbackWindowDays": 0,\n          "postViewLookbackWindowDays": 0\n        }\n      ],\n      "postViewCountPercentageMillis": ""\n    },\n    "creativeIds": [],\n    "displayName": "",\n    "entityStatus": "",\n    "excludeNewExchanges": false,\n    "flight": {\n      "dateRange": {\n        "endDate": {\n          "day": 0,\n          "month": 0,\n          "year": 0\n        },\n        "startDate": {}\n      },\n      "flightDateType": ""\n    },\n    "frequencyCap": {\n      "maxImpressions": 0,\n      "maxViews": 0,\n      "timeUnit": "",\n      "timeUnitCount": 0,\n      "unlimited": false\n    },\n    "insertionOrderId": "",\n    "integrationDetails": {\n      "details": "",\n      "integrationCode": ""\n    },\n    "lineItemId": "",\n    "lineItemType": "",\n    "mobileApp": {\n      "appId": "",\n      "displayName": "",\n      "platform": "",\n      "publisher": ""\n    },\n    "name": "",\n    "pacing": {\n      "dailyMaxImpressions": "",\n      "dailyMaxMicros": "",\n      "pacingPeriod": "",\n      "pacingType": ""\n    },\n    "partnerCosts": [\n      {\n        "costType": "",\n        "feeAmount": "",\n        "feePercentageMillis": "",\n        "feeType": "",\n        "invoiceType": ""\n      }\n    ],\n    "partnerRevenueModel": {\n      "markupAmount": "",\n      "markupType": ""\n    },\n    "reservationType": "",\n    "targetingExpansion": {\n      "excludeFirstPartyAudience": false,\n      "targetingExpansionLevel": ""\n    },\n    "updateTime": "",\n    "warningMessages": [],\n    "youtubeAndPartnersSettings": {\n      "biddingStrategy": {\n        "adGroupEffectiveTargetCpaSource": "",\n        "adGroupEffectiveTargetCpaValue": "",\n        "type": "",\n        "value": ""\n      },\n      "contentCategory": "",\n      "inventorySourceSettings": {\n        "includeYoutubeSearch": false,\n        "includeYoutubeVideoPartners": false,\n        "includeYoutubeVideos": false\n      },\n      "leadFormId": "",\n      "linkedMerchantId": "",\n      "relatedVideoIds": [],\n      "targetFrequency": {\n        "targetCount": "",\n        "timeUnit": "",\n        "timeUnitCount": 0\n      },\n      "thirdPartyMeasurementSettings": {\n        "brandLiftVendorConfigs": [\n          {\n            "placementId": "",\n            "vendor": ""\n          }\n        ],\n        "brandSafetyVendorConfigs": [\n          {}\n        ],\n        "reachVendorConfigs": [\n          {}\n        ],\n        "viewabilityVendorConfigs": [\n          {}\n        ]\n      },\n      "videoAdSequenceSettings": {\n        "minimumDuration": "",\n        "steps": [\n          {\n            "adGroupId": "",\n            "interactionType": "",\n            "previousStepId": "",\n            "stepId": ""\n          }\n        ]\n      },\n      "viewFrequencyCap": {}\n    }\n  },\n  "updateMask": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "lineItemIds": [],
  "targetLineItem": [
    "advertiserId": "",
    "bidStrategy": [
      "fixedBid": ["bidAmountMicros": ""],
      "maximizeSpendAutoBid": [
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalType": "",
        "raiseBidForDeals": false
      ],
      "performanceGoalAutoBid": [
        "customBiddingAlgorithmId": "",
        "maxAverageCpmBidAmountMicros": "",
        "performanceGoalAmountMicros": "",
        "performanceGoalType": ""
      ]
    ],
    "budget": [
      "budgetAllocationType": "",
      "budgetUnit": "",
      "maxAmount": ""
    ],
    "campaignId": "",
    "conversionCounting": [
      "floodlightActivityConfigs": [
        [
          "floodlightActivityId": "",
          "postClickLookbackWindowDays": 0,
          "postViewLookbackWindowDays": 0
        ]
      ],
      "postViewCountPercentageMillis": ""
    ],
    "creativeIds": [],
    "displayName": "",
    "entityStatus": "",
    "excludeNewExchanges": false,
    "flight": [
      "dateRange": [
        "endDate": [
          "day": 0,
          "month": 0,
          "year": 0
        ],
        "startDate": []
      ],
      "flightDateType": ""
    ],
    "frequencyCap": [
      "maxImpressions": 0,
      "maxViews": 0,
      "timeUnit": "",
      "timeUnitCount": 0,
      "unlimited": false
    ],
    "insertionOrderId": "",
    "integrationDetails": [
      "details": "",
      "integrationCode": ""
    ],
    "lineItemId": "",
    "lineItemType": "",
    "mobileApp": [
      "appId": "",
      "displayName": "",
      "platform": "",
      "publisher": ""
    ],
    "name": "",
    "pacing": [
      "dailyMaxImpressions": "",
      "dailyMaxMicros": "",
      "pacingPeriod": "",
      "pacingType": ""
    ],
    "partnerCosts": [
      [
        "costType": "",
        "feeAmount": "",
        "feePercentageMillis": "",
        "feeType": "",
        "invoiceType": ""
      ]
    ],
    "partnerRevenueModel": [
      "markupAmount": "",
      "markupType": ""
    ],
    "reservationType": "",
    "targetingExpansion": [
      "excludeFirstPartyAudience": false,
      "targetingExpansionLevel": ""
    ],
    "updateTime": "",
    "warningMessages": [],
    "youtubeAndPartnersSettings": [
      "biddingStrategy": [
        "adGroupEffectiveTargetCpaSource": "",
        "adGroupEffectiveTargetCpaValue": "",
        "type": "",
        "value": ""
      ],
      "contentCategory": "",
      "inventorySourceSettings": [
        "includeYoutubeSearch": false,
        "includeYoutubeVideoPartners": false,
        "includeYoutubeVideos": false
      ],
      "leadFormId": "",
      "linkedMerchantId": "",
      "relatedVideoIds": [],
      "targetFrequency": [
        "targetCount": "",
        "timeUnit": "",
        "timeUnitCount": 0
      ],
      "thirdPartyMeasurementSettings": [
        "brandLiftVendorConfigs": [
          [
            "placementId": "",
            "vendor": ""
          ]
        ],
        "brandSafetyVendorConfigs": [[]],
        "reachVendorConfigs": [[]],
        "viewabilityVendorConfigs": [[]]
      ],
      "videoAdSequenceSettings": [
        "minimumDuration": "",
        "steps": [
          [
            "adGroupId": "",
            "interactionType": "",
            "previousStepId": "",
            "stepId": ""
          ]
        ]
      ],
      "viewFrequencyCap": []
    ]
  ],
  "updateMask": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:bulkUpdate")! 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()
POST displayvideo.advertisers.lineItems.create
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems
QUERY PARAMS

advertiserId
BODY json

{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems");

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  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems" {:content-type :json
                                                                                   :form-params {:advertiserId ""
                                                                                                 :bidStrategy {:fixedBid {:bidAmountMicros ""}
                                                                                                               :maximizeSpendAutoBid {:customBiddingAlgorithmId ""
                                                                                                                                      :maxAverageCpmBidAmountMicros ""
                                                                                                                                      :performanceGoalType ""
                                                                                                                                      :raiseBidForDeals false}
                                                                                                               :performanceGoalAutoBid {:customBiddingAlgorithmId ""
                                                                                                                                        :maxAverageCpmBidAmountMicros ""
                                                                                                                                        :performanceGoalAmountMicros ""
                                                                                                                                        :performanceGoalType ""}}
                                                                                                 :budget {:budgetAllocationType ""
                                                                                                          :budgetUnit ""
                                                                                                          :maxAmount ""}
                                                                                                 :campaignId ""
                                                                                                 :conversionCounting {:floodlightActivityConfigs [{:floodlightActivityId ""
                                                                                                                                                   :postClickLookbackWindowDays 0
                                                                                                                                                   :postViewLookbackWindowDays 0}]
                                                                                                                      :postViewCountPercentageMillis ""}
                                                                                                 :creativeIds []
                                                                                                 :displayName ""
                                                                                                 :entityStatus ""
                                                                                                 :excludeNewExchanges false
                                                                                                 :flight {:dateRange {:endDate {:day 0
                                                                                                                                :month 0
                                                                                                                                :year 0}
                                                                                                                      :startDate {}}
                                                                                                          :flightDateType ""}
                                                                                                 :frequencyCap {:maxImpressions 0
                                                                                                                :maxViews 0
                                                                                                                :timeUnit ""
                                                                                                                :timeUnitCount 0
                                                                                                                :unlimited false}
                                                                                                 :insertionOrderId ""
                                                                                                 :integrationDetails {:details ""
                                                                                                                      :integrationCode ""}
                                                                                                 :lineItemId ""
                                                                                                 :lineItemType ""
                                                                                                 :mobileApp {:appId ""
                                                                                                             :displayName ""
                                                                                                             :platform ""
                                                                                                             :publisher ""}
                                                                                                 :name ""
                                                                                                 :pacing {:dailyMaxImpressions ""
                                                                                                          :dailyMaxMicros ""
                                                                                                          :pacingPeriod ""
                                                                                                          :pacingType ""}
                                                                                                 :partnerCosts [{:costType ""
                                                                                                                 :feeAmount ""
                                                                                                                 :feePercentageMillis ""
                                                                                                                 :feeType ""
                                                                                                                 :invoiceType ""}]
                                                                                                 :partnerRevenueModel {:markupAmount ""
                                                                                                                       :markupType ""}
                                                                                                 :reservationType ""
                                                                                                 :targetingExpansion {:excludeFirstPartyAudience false
                                                                                                                      :targetingExpansionLevel ""}
                                                                                                 :updateTime ""
                                                                                                 :warningMessages []
                                                                                                 :youtubeAndPartnersSettings {:biddingStrategy {:adGroupEffectiveTargetCpaSource ""
                                                                                                                                                :adGroupEffectiveTargetCpaValue ""
                                                                                                                                                :type ""
                                                                                                                                                :value ""}
                                                                                                                              :contentCategory ""
                                                                                                                              :inventorySourceSettings {:includeYoutubeSearch false
                                                                                                                                                        :includeYoutubeVideoPartners false
                                                                                                                                                        :includeYoutubeVideos false}
                                                                                                                              :leadFormId ""
                                                                                                                              :linkedMerchantId ""
                                                                                                                              :relatedVideoIds []
                                                                                                                              :targetFrequency {:targetCount ""
                                                                                                                                                :timeUnit ""
                                                                                                                                                :timeUnitCount 0}
                                                                                                                              :thirdPartyMeasurementSettings {:brandLiftVendorConfigs [{:placementId ""
                                                                                                                                                                                        :vendor ""}]
                                                                                                                                                              :brandSafetyVendorConfigs [{}]
                                                                                                                                                              :reachVendorConfigs [{}]
                                                                                                                                                              :viewabilityVendorConfigs [{}]}
                                                                                                                              :videoAdSequenceSettings {:minimumDuration ""
                                                                                                                                                        :steps [{:adGroupId ""
                                                                                                                                                                 :interactionType ""
                                                                                                                                                                 :previousStepId ""
                                                                                                                                                                 :stepId ""}]}
                                                                                                                              :viewFrequencyCap {}}}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\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}}/v2/advertisers/:advertiserId/lineItems"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\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}}/v2/advertisers/:advertiserId/lineItems");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\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/v2/advertisers/:advertiserId/lineItems HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 3174

{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\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  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  bidStrategy: {
    fixedBid: {
      bidAmountMicros: ''
    },
    maximizeSpendAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalType: '',
      raiseBidForDeals: false
    },
    performanceGoalAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalAmountMicros: '',
      performanceGoalType: ''
    }
  },
  budget: {
    budgetAllocationType: '',
    budgetUnit: '',
    maxAmount: ''
  },
  campaignId: '',
  conversionCounting: {
    floodlightActivityConfigs: [
      {
        floodlightActivityId: '',
        postClickLookbackWindowDays: 0,
        postViewLookbackWindowDays: 0
      }
    ],
    postViewCountPercentageMillis: ''
  },
  creativeIds: [],
  displayName: '',
  entityStatus: '',
  excludeNewExchanges: false,
  flight: {
    dateRange: {
      endDate: {
        day: 0,
        month: 0,
        year: 0
      },
      startDate: {}
    },
    flightDateType: ''
  },
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  insertionOrderId: '',
  integrationDetails: {
    details: '',
    integrationCode: ''
  },
  lineItemId: '',
  lineItemType: '',
  mobileApp: {
    appId: '',
    displayName: '',
    platform: '',
    publisher: ''
  },
  name: '',
  pacing: {
    dailyMaxImpressions: '',
    dailyMaxMicros: '',
    pacingPeriod: '',
    pacingType: ''
  },
  partnerCosts: [
    {
      costType: '',
      feeAmount: '',
      feePercentageMillis: '',
      feeType: '',
      invoiceType: ''
    }
  ],
  partnerRevenueModel: {
    markupAmount: '',
    markupType: ''
  },
  reservationType: '',
  targetingExpansion: {
    excludeFirstPartyAudience: false,
    targetingExpansionLevel: ''
  },
  updateTime: '',
  warningMessages: [],
  youtubeAndPartnersSettings: {
    biddingStrategy: {
      adGroupEffectiveTargetCpaSource: '',
      adGroupEffectiveTargetCpaValue: '',
      type: '',
      value: ''
    },
    contentCategory: '',
    inventorySourceSettings: {
      includeYoutubeSearch: false,
      includeYoutubeVideoPartners: false,
      includeYoutubeVideos: false
    },
    leadFormId: '',
    linkedMerchantId: '',
    relatedVideoIds: [],
    targetFrequency: {
      targetCount: '',
      timeUnit: '',
      timeUnitCount: 0
    },
    thirdPartyMeasurementSettings: {
      brandLiftVendorConfigs: [
        {
          placementId: '',
          vendor: ''
        }
      ],
      brandSafetyVendorConfigs: [
        {}
      ],
      reachVendorConfigs: [
        {}
      ],
      viewabilityVendorConfigs: [
        {}
      ]
    },
    videoAdSequenceSettings: {
      minimumDuration: '',
      steps: [
        {
          adGroupId: '',
          interactionType: '',
          previousStepId: '',
          stepId: ''
        }
      ]
    },
    viewFrequencyCap: {}
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {bidAmountMicros: ''},
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    budget: {budgetAllocationType: '', budgetUnit: '', maxAmount: ''},
    campaignId: '',
    conversionCounting: {
      floodlightActivityConfigs: [
        {
          floodlightActivityId: '',
          postClickLookbackWindowDays: 0,
          postViewLookbackWindowDays: 0
        }
      ],
      postViewCountPercentageMillis: ''
    },
    creativeIds: [],
    displayName: '',
    entityStatus: '',
    excludeNewExchanges: false,
    flight: {
      dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
      flightDateType: ''
    },
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    integrationDetails: {details: '', integrationCode: ''},
    lineItemId: '',
    lineItemType: '',
    mobileApp: {appId: '', displayName: '', platform: '', publisher: ''},
    name: '',
    pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    partnerRevenueModel: {markupAmount: '', markupType: ''},
    reservationType: '',
    targetingExpansion: {excludeFirstPartyAudience: false, targetingExpansionLevel: ''},
    updateTime: '',
    warningMessages: [],
    youtubeAndPartnersSettings: {
      biddingStrategy: {
        adGroupEffectiveTargetCpaSource: '',
        adGroupEffectiveTargetCpaValue: '',
        type: '',
        value: ''
      },
      contentCategory: '',
      inventorySourceSettings: {
        includeYoutubeSearch: false,
        includeYoutubeVideoPartners: false,
        includeYoutubeVideos: false
      },
      leadFormId: '',
      linkedMerchantId: '',
      relatedVideoIds: [],
      targetFrequency: {targetCount: '', timeUnit: '', timeUnitCount: 0},
      thirdPartyMeasurementSettings: {
        brandLiftVendorConfigs: [{placementId: '', vendor: ''}],
        brandSafetyVendorConfigs: [{}],
        reachVendorConfigs: [{}],
        viewabilityVendorConfigs: [{}]
      },
      videoAdSequenceSettings: {
        minimumDuration: '',
        steps: [{adGroupId: '', interactionType: '', previousStepId: '', stepId: ''}]
      },
      viewFrequencyCap: {}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","bidStrategy":{"fixedBid":{"bidAmountMicros":""},"maximizeSpendAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalType":"","raiseBidForDeals":false},"performanceGoalAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalAmountMicros":"","performanceGoalType":""}},"budget":{"budgetAllocationType":"","budgetUnit":"","maxAmount":""},"campaignId":"","conversionCounting":{"floodlightActivityConfigs":[{"floodlightActivityId":"","postClickLookbackWindowDays":0,"postViewLookbackWindowDays":0}],"postViewCountPercentageMillis":""},"creativeIds":[],"displayName":"","entityStatus":"","excludeNewExchanges":false,"flight":{"dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"flightDateType":""},"frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"insertionOrderId":"","integrationDetails":{"details":"","integrationCode":""},"lineItemId":"","lineItemType":"","mobileApp":{"appId":"","displayName":"","platform":"","publisher":""},"name":"","pacing":{"dailyMaxImpressions":"","dailyMaxMicros":"","pacingPeriod":"","pacingType":""},"partnerCosts":[{"costType":"","feeAmount":"","feePercentageMillis":"","feeType":"","invoiceType":""}],"partnerRevenueModel":{"markupAmount":"","markupType":""},"reservationType":"","targetingExpansion":{"excludeFirstPartyAudience":false,"targetingExpansionLevel":""},"updateTime":"","warningMessages":[],"youtubeAndPartnersSettings":{"biddingStrategy":{"adGroupEffectiveTargetCpaSource":"","adGroupEffectiveTargetCpaValue":"","type":"","value":""},"contentCategory":"","inventorySourceSettings":{"includeYoutubeSearch":false,"includeYoutubeVideoPartners":false,"includeYoutubeVideos":false},"leadFormId":"","linkedMerchantId":"","relatedVideoIds":[],"targetFrequency":{"targetCount":"","timeUnit":"","timeUnitCount":0},"thirdPartyMeasurementSettings":{"brandLiftVendorConfigs":[{"placementId":"","vendor":""}],"brandSafetyVendorConfigs":[{}],"reachVendorConfigs":[{}],"viewabilityVendorConfigs":[{}]},"videoAdSequenceSettings":{"minimumDuration":"","steps":[{"adGroupId":"","interactionType":"","previousStepId":"","stepId":""}]},"viewFrequencyCap":{}}}'
};

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}}/v2/advertisers/:advertiserId/lineItems',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "bidStrategy": {\n    "fixedBid": {\n      "bidAmountMicros": ""\n    },\n    "maximizeSpendAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalType": "",\n      "raiseBidForDeals": false\n    },\n    "performanceGoalAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalAmountMicros": "",\n      "performanceGoalType": ""\n    }\n  },\n  "budget": {\n    "budgetAllocationType": "",\n    "budgetUnit": "",\n    "maxAmount": ""\n  },\n  "campaignId": "",\n  "conversionCounting": {\n    "floodlightActivityConfigs": [\n      {\n        "floodlightActivityId": "",\n        "postClickLookbackWindowDays": 0,\n        "postViewLookbackWindowDays": 0\n      }\n    ],\n    "postViewCountPercentageMillis": ""\n  },\n  "creativeIds": [],\n  "displayName": "",\n  "entityStatus": "",\n  "excludeNewExchanges": false,\n  "flight": {\n    "dateRange": {\n      "endDate": {\n        "day": 0,\n        "month": 0,\n        "year": 0\n      },\n      "startDate": {}\n    },\n    "flightDateType": ""\n  },\n  "frequencyCap": {\n    "maxImpressions": 0,\n    "maxViews": 0,\n    "timeUnit": "",\n    "timeUnitCount": 0,\n    "unlimited": false\n  },\n  "insertionOrderId": "",\n  "integrationDetails": {\n    "details": "",\n    "integrationCode": ""\n  },\n  "lineItemId": "",\n  "lineItemType": "",\n  "mobileApp": {\n    "appId": "",\n    "displayName": "",\n    "platform": "",\n    "publisher": ""\n  },\n  "name": "",\n  "pacing": {\n    "dailyMaxImpressions": "",\n    "dailyMaxMicros": "",\n    "pacingPeriod": "",\n    "pacingType": ""\n  },\n  "partnerCosts": [\n    {\n      "costType": "",\n      "feeAmount": "",\n      "feePercentageMillis": "",\n      "feeType": "",\n      "invoiceType": ""\n    }\n  ],\n  "partnerRevenueModel": {\n    "markupAmount": "",\n    "markupType": ""\n  },\n  "reservationType": "",\n  "targetingExpansion": {\n    "excludeFirstPartyAudience": false,\n    "targetingExpansionLevel": ""\n  },\n  "updateTime": "",\n  "warningMessages": [],\n  "youtubeAndPartnersSettings": {\n    "biddingStrategy": {\n      "adGroupEffectiveTargetCpaSource": "",\n      "adGroupEffectiveTargetCpaValue": "",\n      "type": "",\n      "value": ""\n    },\n    "contentCategory": "",\n    "inventorySourceSettings": {\n      "includeYoutubeSearch": false,\n      "includeYoutubeVideoPartners": false,\n      "includeYoutubeVideos": false\n    },\n    "leadFormId": "",\n    "linkedMerchantId": "",\n    "relatedVideoIds": [],\n    "targetFrequency": {\n      "targetCount": "",\n      "timeUnit": "",\n      "timeUnitCount": 0\n    },\n    "thirdPartyMeasurementSettings": {\n      "brandLiftVendorConfigs": [\n        {\n          "placementId": "",\n          "vendor": ""\n        }\n      ],\n      "brandSafetyVendorConfigs": [\n        {}\n      ],\n      "reachVendorConfigs": [\n        {}\n      ],\n      "viewabilityVendorConfigs": [\n        {}\n      ]\n    },\n    "videoAdSequenceSettings": {\n      "minimumDuration": "",\n      "steps": [\n        {\n          "adGroupId": "",\n          "interactionType": "",\n          "previousStepId": "",\n          "stepId": ""\n        }\n      ]\n    },\n    "viewFrequencyCap": {}\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems")
  .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/v2/advertisers/:advertiserId/lineItems',
  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({
  advertiserId: '',
  bidStrategy: {
    fixedBid: {bidAmountMicros: ''},
    maximizeSpendAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalType: '',
      raiseBidForDeals: false
    },
    performanceGoalAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalAmountMicros: '',
      performanceGoalType: ''
    }
  },
  budget: {budgetAllocationType: '', budgetUnit: '', maxAmount: ''},
  campaignId: '',
  conversionCounting: {
    floodlightActivityConfigs: [
      {
        floodlightActivityId: '',
        postClickLookbackWindowDays: 0,
        postViewLookbackWindowDays: 0
      }
    ],
    postViewCountPercentageMillis: ''
  },
  creativeIds: [],
  displayName: '',
  entityStatus: '',
  excludeNewExchanges: false,
  flight: {
    dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
    flightDateType: ''
  },
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  insertionOrderId: '',
  integrationDetails: {details: '', integrationCode: ''},
  lineItemId: '',
  lineItemType: '',
  mobileApp: {appId: '', displayName: '', platform: '', publisher: ''},
  name: '',
  pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
  partnerCosts: [
    {
      costType: '',
      feeAmount: '',
      feePercentageMillis: '',
      feeType: '',
      invoiceType: ''
    }
  ],
  partnerRevenueModel: {markupAmount: '', markupType: ''},
  reservationType: '',
  targetingExpansion: {excludeFirstPartyAudience: false, targetingExpansionLevel: ''},
  updateTime: '',
  warningMessages: [],
  youtubeAndPartnersSettings: {
    biddingStrategy: {
      adGroupEffectiveTargetCpaSource: '',
      adGroupEffectiveTargetCpaValue: '',
      type: '',
      value: ''
    },
    contentCategory: '',
    inventorySourceSettings: {
      includeYoutubeSearch: false,
      includeYoutubeVideoPartners: false,
      includeYoutubeVideos: false
    },
    leadFormId: '',
    linkedMerchantId: '',
    relatedVideoIds: [],
    targetFrequency: {targetCount: '', timeUnit: '', timeUnitCount: 0},
    thirdPartyMeasurementSettings: {
      brandLiftVendorConfigs: [{placementId: '', vendor: ''}],
      brandSafetyVendorConfigs: [{}],
      reachVendorConfigs: [{}],
      viewabilityVendorConfigs: [{}]
    },
    videoAdSequenceSettings: {
      minimumDuration: '',
      steps: [{adGroupId: '', interactionType: '', previousStepId: '', stepId: ''}]
    },
    viewFrequencyCap: {}
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {bidAmountMicros: ''},
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    budget: {budgetAllocationType: '', budgetUnit: '', maxAmount: ''},
    campaignId: '',
    conversionCounting: {
      floodlightActivityConfigs: [
        {
          floodlightActivityId: '',
          postClickLookbackWindowDays: 0,
          postViewLookbackWindowDays: 0
        }
      ],
      postViewCountPercentageMillis: ''
    },
    creativeIds: [],
    displayName: '',
    entityStatus: '',
    excludeNewExchanges: false,
    flight: {
      dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
      flightDateType: ''
    },
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    integrationDetails: {details: '', integrationCode: ''},
    lineItemId: '',
    lineItemType: '',
    mobileApp: {appId: '', displayName: '', platform: '', publisher: ''},
    name: '',
    pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    partnerRevenueModel: {markupAmount: '', markupType: ''},
    reservationType: '',
    targetingExpansion: {excludeFirstPartyAudience: false, targetingExpansionLevel: ''},
    updateTime: '',
    warningMessages: [],
    youtubeAndPartnersSettings: {
      biddingStrategy: {
        adGroupEffectiveTargetCpaSource: '',
        adGroupEffectiveTargetCpaValue: '',
        type: '',
        value: ''
      },
      contentCategory: '',
      inventorySourceSettings: {
        includeYoutubeSearch: false,
        includeYoutubeVideoPartners: false,
        includeYoutubeVideos: false
      },
      leadFormId: '',
      linkedMerchantId: '',
      relatedVideoIds: [],
      targetFrequency: {targetCount: '', timeUnit: '', timeUnitCount: 0},
      thirdPartyMeasurementSettings: {
        brandLiftVendorConfigs: [{placementId: '', vendor: ''}],
        brandSafetyVendorConfigs: [{}],
        reachVendorConfigs: [{}],
        viewabilityVendorConfigs: [{}]
      },
      videoAdSequenceSettings: {
        minimumDuration: '',
        steps: [{adGroupId: '', interactionType: '', previousStepId: '', stepId: ''}]
      },
      viewFrequencyCap: {}
    }
  },
  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}}/v2/advertisers/:advertiserId/lineItems');

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

req.type('json');
req.send({
  advertiserId: '',
  bidStrategy: {
    fixedBid: {
      bidAmountMicros: ''
    },
    maximizeSpendAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalType: '',
      raiseBidForDeals: false
    },
    performanceGoalAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalAmountMicros: '',
      performanceGoalType: ''
    }
  },
  budget: {
    budgetAllocationType: '',
    budgetUnit: '',
    maxAmount: ''
  },
  campaignId: '',
  conversionCounting: {
    floodlightActivityConfigs: [
      {
        floodlightActivityId: '',
        postClickLookbackWindowDays: 0,
        postViewLookbackWindowDays: 0
      }
    ],
    postViewCountPercentageMillis: ''
  },
  creativeIds: [],
  displayName: '',
  entityStatus: '',
  excludeNewExchanges: false,
  flight: {
    dateRange: {
      endDate: {
        day: 0,
        month: 0,
        year: 0
      },
      startDate: {}
    },
    flightDateType: ''
  },
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  insertionOrderId: '',
  integrationDetails: {
    details: '',
    integrationCode: ''
  },
  lineItemId: '',
  lineItemType: '',
  mobileApp: {
    appId: '',
    displayName: '',
    platform: '',
    publisher: ''
  },
  name: '',
  pacing: {
    dailyMaxImpressions: '',
    dailyMaxMicros: '',
    pacingPeriod: '',
    pacingType: ''
  },
  partnerCosts: [
    {
      costType: '',
      feeAmount: '',
      feePercentageMillis: '',
      feeType: '',
      invoiceType: ''
    }
  ],
  partnerRevenueModel: {
    markupAmount: '',
    markupType: ''
  },
  reservationType: '',
  targetingExpansion: {
    excludeFirstPartyAudience: false,
    targetingExpansionLevel: ''
  },
  updateTime: '',
  warningMessages: [],
  youtubeAndPartnersSettings: {
    biddingStrategy: {
      adGroupEffectiveTargetCpaSource: '',
      adGroupEffectiveTargetCpaValue: '',
      type: '',
      value: ''
    },
    contentCategory: '',
    inventorySourceSettings: {
      includeYoutubeSearch: false,
      includeYoutubeVideoPartners: false,
      includeYoutubeVideos: false
    },
    leadFormId: '',
    linkedMerchantId: '',
    relatedVideoIds: [],
    targetFrequency: {
      targetCount: '',
      timeUnit: '',
      timeUnitCount: 0
    },
    thirdPartyMeasurementSettings: {
      brandLiftVendorConfigs: [
        {
          placementId: '',
          vendor: ''
        }
      ],
      brandSafetyVendorConfigs: [
        {}
      ],
      reachVendorConfigs: [
        {}
      ],
      viewabilityVendorConfigs: [
        {}
      ]
    },
    videoAdSequenceSettings: {
      minimumDuration: '',
      steps: [
        {
          adGroupId: '',
          interactionType: '',
          previousStepId: '',
          stepId: ''
        }
      ]
    },
    viewFrequencyCap: {}
  }
});

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}}/v2/advertisers/:advertiserId/lineItems',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {bidAmountMicros: ''},
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    budget: {budgetAllocationType: '', budgetUnit: '', maxAmount: ''},
    campaignId: '',
    conversionCounting: {
      floodlightActivityConfigs: [
        {
          floodlightActivityId: '',
          postClickLookbackWindowDays: 0,
          postViewLookbackWindowDays: 0
        }
      ],
      postViewCountPercentageMillis: ''
    },
    creativeIds: [],
    displayName: '',
    entityStatus: '',
    excludeNewExchanges: false,
    flight: {
      dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
      flightDateType: ''
    },
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    integrationDetails: {details: '', integrationCode: ''},
    lineItemId: '',
    lineItemType: '',
    mobileApp: {appId: '', displayName: '', platform: '', publisher: ''},
    name: '',
    pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    partnerRevenueModel: {markupAmount: '', markupType: ''},
    reservationType: '',
    targetingExpansion: {excludeFirstPartyAudience: false, targetingExpansionLevel: ''},
    updateTime: '',
    warningMessages: [],
    youtubeAndPartnersSettings: {
      biddingStrategy: {
        adGroupEffectiveTargetCpaSource: '',
        adGroupEffectiveTargetCpaValue: '',
        type: '',
        value: ''
      },
      contentCategory: '',
      inventorySourceSettings: {
        includeYoutubeSearch: false,
        includeYoutubeVideoPartners: false,
        includeYoutubeVideos: false
      },
      leadFormId: '',
      linkedMerchantId: '',
      relatedVideoIds: [],
      targetFrequency: {targetCount: '', timeUnit: '', timeUnitCount: 0},
      thirdPartyMeasurementSettings: {
        brandLiftVendorConfigs: [{placementId: '', vendor: ''}],
        brandSafetyVendorConfigs: [{}],
        reachVendorConfigs: [{}],
        viewabilityVendorConfigs: [{}]
      },
      videoAdSequenceSettings: {
        minimumDuration: '',
        steps: [{adGroupId: '', interactionType: '', previousStepId: '', stepId: ''}]
      },
      viewFrequencyCap: {}
    }
  }
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","bidStrategy":{"fixedBid":{"bidAmountMicros":""},"maximizeSpendAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalType":"","raiseBidForDeals":false},"performanceGoalAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalAmountMicros":"","performanceGoalType":""}},"budget":{"budgetAllocationType":"","budgetUnit":"","maxAmount":""},"campaignId":"","conversionCounting":{"floodlightActivityConfigs":[{"floodlightActivityId":"","postClickLookbackWindowDays":0,"postViewLookbackWindowDays":0}],"postViewCountPercentageMillis":""},"creativeIds":[],"displayName":"","entityStatus":"","excludeNewExchanges":false,"flight":{"dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"flightDateType":""},"frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"insertionOrderId":"","integrationDetails":{"details":"","integrationCode":""},"lineItemId":"","lineItemType":"","mobileApp":{"appId":"","displayName":"","platform":"","publisher":""},"name":"","pacing":{"dailyMaxImpressions":"","dailyMaxMicros":"","pacingPeriod":"","pacingType":""},"partnerCosts":[{"costType":"","feeAmount":"","feePercentageMillis":"","feeType":"","invoiceType":""}],"partnerRevenueModel":{"markupAmount":"","markupType":""},"reservationType":"","targetingExpansion":{"excludeFirstPartyAudience":false,"targetingExpansionLevel":""},"updateTime":"","warningMessages":[],"youtubeAndPartnersSettings":{"biddingStrategy":{"adGroupEffectiveTargetCpaSource":"","adGroupEffectiveTargetCpaValue":"","type":"","value":""},"contentCategory":"","inventorySourceSettings":{"includeYoutubeSearch":false,"includeYoutubeVideoPartners":false,"includeYoutubeVideos":false},"leadFormId":"","linkedMerchantId":"","relatedVideoIds":[],"targetFrequency":{"targetCount":"","timeUnit":"","timeUnitCount":0},"thirdPartyMeasurementSettings":{"brandLiftVendorConfigs":[{"placementId":"","vendor":""}],"brandSafetyVendorConfigs":[{}],"reachVendorConfigs":[{}],"viewabilityVendorConfigs":[{}]},"videoAdSequenceSettings":{"minimumDuration":"","steps":[{"adGroupId":"","interactionType":"","previousStepId":"","stepId":""}]},"viewFrequencyCap":{}}}'
};

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 = @{ @"advertiserId": @"",
                              @"bidStrategy": @{ @"fixedBid": @{ @"bidAmountMicros": @"" }, @"maximizeSpendAutoBid": @{ @"customBiddingAlgorithmId": @"", @"maxAverageCpmBidAmountMicros": @"", @"performanceGoalType": @"", @"raiseBidForDeals": @NO }, @"performanceGoalAutoBid": @{ @"customBiddingAlgorithmId": @"", @"maxAverageCpmBidAmountMicros": @"", @"performanceGoalAmountMicros": @"", @"performanceGoalType": @"" } },
                              @"budget": @{ @"budgetAllocationType": @"", @"budgetUnit": @"", @"maxAmount": @"" },
                              @"campaignId": @"",
                              @"conversionCounting": @{ @"floodlightActivityConfigs": @[ @{ @"floodlightActivityId": @"", @"postClickLookbackWindowDays": @0, @"postViewLookbackWindowDays": @0 } ], @"postViewCountPercentageMillis": @"" },
                              @"creativeIds": @[  ],
                              @"displayName": @"",
                              @"entityStatus": @"",
                              @"excludeNewExchanges": @NO,
                              @"flight": @{ @"dateRange": @{ @"endDate": @{ @"day": @0, @"month": @0, @"year": @0 }, @"startDate": @{  } }, @"flightDateType": @"" },
                              @"frequencyCap": @{ @"maxImpressions": @0, @"maxViews": @0, @"timeUnit": @"", @"timeUnitCount": @0, @"unlimited": @NO },
                              @"insertionOrderId": @"",
                              @"integrationDetails": @{ @"details": @"", @"integrationCode": @"" },
                              @"lineItemId": @"",
                              @"lineItemType": @"",
                              @"mobileApp": @{ @"appId": @"", @"displayName": @"", @"platform": @"", @"publisher": @"" },
                              @"name": @"",
                              @"pacing": @{ @"dailyMaxImpressions": @"", @"dailyMaxMicros": @"", @"pacingPeriod": @"", @"pacingType": @"" },
                              @"partnerCosts": @[ @{ @"costType": @"", @"feeAmount": @"", @"feePercentageMillis": @"", @"feeType": @"", @"invoiceType": @"" } ],
                              @"partnerRevenueModel": @{ @"markupAmount": @"", @"markupType": @"" },
                              @"reservationType": @"",
                              @"targetingExpansion": @{ @"excludeFirstPartyAudience": @NO, @"targetingExpansionLevel": @"" },
                              @"updateTime": @"",
                              @"warningMessages": @[  ],
                              @"youtubeAndPartnersSettings": @{ @"biddingStrategy": @{ @"adGroupEffectiveTargetCpaSource": @"", @"adGroupEffectiveTargetCpaValue": @"", @"type": @"", @"value": @"" }, @"contentCategory": @"", @"inventorySourceSettings": @{ @"includeYoutubeSearch": @NO, @"includeYoutubeVideoPartners": @NO, @"includeYoutubeVideos": @NO }, @"leadFormId": @"", @"linkedMerchantId": @"", @"relatedVideoIds": @[  ], @"targetFrequency": @{ @"targetCount": @"", @"timeUnit": @"", @"timeUnitCount": @0 }, @"thirdPartyMeasurementSettings": @{ @"brandLiftVendorConfigs": @[ @{ @"placementId": @"", @"vendor": @"" } ], @"brandSafetyVendorConfigs": @[ @{  } ], @"reachVendorConfigs": @[ @{  } ], @"viewabilityVendorConfigs": @[ @{  } ] }, @"videoAdSequenceSettings": @{ @"minimumDuration": @"", @"steps": @[ @{ @"adGroupId": @"", @"interactionType": @"", @"previousStepId": @"", @"stepId": @"" } ] }, @"viewFrequencyCap": @{  } } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/lineItems"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems",
  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([
    'advertiserId' => '',
    'bidStrategy' => [
        'fixedBid' => [
                'bidAmountMicros' => ''
        ],
        'maximizeSpendAutoBid' => [
                'customBiddingAlgorithmId' => '',
                'maxAverageCpmBidAmountMicros' => '',
                'performanceGoalType' => '',
                'raiseBidForDeals' => null
        ],
        'performanceGoalAutoBid' => [
                'customBiddingAlgorithmId' => '',
                'maxAverageCpmBidAmountMicros' => '',
                'performanceGoalAmountMicros' => '',
                'performanceGoalType' => ''
        ]
    ],
    'budget' => [
        'budgetAllocationType' => '',
        'budgetUnit' => '',
        'maxAmount' => ''
    ],
    'campaignId' => '',
    'conversionCounting' => [
        'floodlightActivityConfigs' => [
                [
                                'floodlightActivityId' => '',
                                'postClickLookbackWindowDays' => 0,
                                'postViewLookbackWindowDays' => 0
                ]
        ],
        'postViewCountPercentageMillis' => ''
    ],
    'creativeIds' => [
        
    ],
    'displayName' => '',
    'entityStatus' => '',
    'excludeNewExchanges' => null,
    'flight' => [
        'dateRange' => [
                'endDate' => [
                                'day' => 0,
                                'month' => 0,
                                'year' => 0
                ],
                'startDate' => [
                                
                ]
        ],
        'flightDateType' => ''
    ],
    'frequencyCap' => [
        'maxImpressions' => 0,
        'maxViews' => 0,
        'timeUnit' => '',
        'timeUnitCount' => 0,
        'unlimited' => null
    ],
    'insertionOrderId' => '',
    'integrationDetails' => [
        'details' => '',
        'integrationCode' => ''
    ],
    'lineItemId' => '',
    'lineItemType' => '',
    'mobileApp' => [
        'appId' => '',
        'displayName' => '',
        'platform' => '',
        'publisher' => ''
    ],
    'name' => '',
    'pacing' => [
        'dailyMaxImpressions' => '',
        'dailyMaxMicros' => '',
        'pacingPeriod' => '',
        'pacingType' => ''
    ],
    'partnerCosts' => [
        [
                'costType' => '',
                'feeAmount' => '',
                'feePercentageMillis' => '',
                'feeType' => '',
                'invoiceType' => ''
        ]
    ],
    'partnerRevenueModel' => [
        'markupAmount' => '',
        'markupType' => ''
    ],
    'reservationType' => '',
    'targetingExpansion' => [
        'excludeFirstPartyAudience' => null,
        'targetingExpansionLevel' => ''
    ],
    'updateTime' => '',
    'warningMessages' => [
        
    ],
    'youtubeAndPartnersSettings' => [
        'biddingStrategy' => [
                'adGroupEffectiveTargetCpaSource' => '',
                'adGroupEffectiveTargetCpaValue' => '',
                'type' => '',
                'value' => ''
        ],
        'contentCategory' => '',
        'inventorySourceSettings' => [
                'includeYoutubeSearch' => null,
                'includeYoutubeVideoPartners' => null,
                'includeYoutubeVideos' => null
        ],
        'leadFormId' => '',
        'linkedMerchantId' => '',
        'relatedVideoIds' => [
                
        ],
        'targetFrequency' => [
                'targetCount' => '',
                'timeUnit' => '',
                'timeUnitCount' => 0
        ],
        'thirdPartyMeasurementSettings' => [
                'brandLiftVendorConfigs' => [
                                [
                                                                'placementId' => '',
                                                                'vendor' => ''
                                ]
                ],
                'brandSafetyVendorConfigs' => [
                                [
                                                                
                                ]
                ],
                'reachVendorConfigs' => [
                                [
                                                                
                                ]
                ],
                'viewabilityVendorConfigs' => [
                                [
                                                                
                                ]
                ]
        ],
        'videoAdSequenceSettings' => [
                'minimumDuration' => '',
                'steps' => [
                                [
                                                                'adGroupId' => '',
                                                                'interactionType' => '',
                                                                'previousStepId' => '',
                                                                'stepId' => ''
                                ]
                ]
        ],
        'viewFrequencyCap' => [
                
        ]
    ]
  ]),
  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}}/v2/advertisers/:advertiserId/lineItems', [
  'body' => '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'bidStrategy' => [
    'fixedBid' => [
        'bidAmountMicros' => ''
    ],
    'maximizeSpendAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalType' => '',
        'raiseBidForDeals' => null
    ],
    'performanceGoalAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalAmountMicros' => '',
        'performanceGoalType' => ''
    ]
  ],
  'budget' => [
    'budgetAllocationType' => '',
    'budgetUnit' => '',
    'maxAmount' => ''
  ],
  'campaignId' => '',
  'conversionCounting' => [
    'floodlightActivityConfigs' => [
        [
                'floodlightActivityId' => '',
                'postClickLookbackWindowDays' => 0,
                'postViewLookbackWindowDays' => 0
        ]
    ],
    'postViewCountPercentageMillis' => ''
  ],
  'creativeIds' => [
    
  ],
  'displayName' => '',
  'entityStatus' => '',
  'excludeNewExchanges' => null,
  'flight' => [
    'dateRange' => [
        'endDate' => [
                'day' => 0,
                'month' => 0,
                'year' => 0
        ],
        'startDate' => [
                
        ]
    ],
    'flightDateType' => ''
  ],
  'frequencyCap' => [
    'maxImpressions' => 0,
    'maxViews' => 0,
    'timeUnit' => '',
    'timeUnitCount' => 0,
    'unlimited' => null
  ],
  'insertionOrderId' => '',
  'integrationDetails' => [
    'details' => '',
    'integrationCode' => ''
  ],
  'lineItemId' => '',
  'lineItemType' => '',
  'mobileApp' => [
    'appId' => '',
    'displayName' => '',
    'platform' => '',
    'publisher' => ''
  ],
  'name' => '',
  'pacing' => [
    'dailyMaxImpressions' => '',
    'dailyMaxMicros' => '',
    'pacingPeriod' => '',
    'pacingType' => ''
  ],
  'partnerCosts' => [
    [
        'costType' => '',
        'feeAmount' => '',
        'feePercentageMillis' => '',
        'feeType' => '',
        'invoiceType' => ''
    ]
  ],
  'partnerRevenueModel' => [
    'markupAmount' => '',
    'markupType' => ''
  ],
  'reservationType' => '',
  'targetingExpansion' => [
    'excludeFirstPartyAudience' => null,
    'targetingExpansionLevel' => ''
  ],
  'updateTime' => '',
  'warningMessages' => [
    
  ],
  'youtubeAndPartnersSettings' => [
    'biddingStrategy' => [
        'adGroupEffectiveTargetCpaSource' => '',
        'adGroupEffectiveTargetCpaValue' => '',
        'type' => '',
        'value' => ''
    ],
    'contentCategory' => '',
    'inventorySourceSettings' => [
        'includeYoutubeSearch' => null,
        'includeYoutubeVideoPartners' => null,
        'includeYoutubeVideos' => null
    ],
    'leadFormId' => '',
    'linkedMerchantId' => '',
    'relatedVideoIds' => [
        
    ],
    'targetFrequency' => [
        'targetCount' => '',
        'timeUnit' => '',
        'timeUnitCount' => 0
    ],
    'thirdPartyMeasurementSettings' => [
        'brandLiftVendorConfigs' => [
                [
                                'placementId' => '',
                                'vendor' => ''
                ]
        ],
        'brandSafetyVendorConfigs' => [
                [
                                
                ]
        ],
        'reachVendorConfigs' => [
                [
                                
                ]
        ],
        'viewabilityVendorConfigs' => [
                [
                                
                ]
        ]
    ],
    'videoAdSequenceSettings' => [
        'minimumDuration' => '',
        'steps' => [
                [
                                'adGroupId' => '',
                                'interactionType' => '',
                                'previousStepId' => '',
                                'stepId' => ''
                ]
        ]
    ],
    'viewFrequencyCap' => [
        
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'bidStrategy' => [
    'fixedBid' => [
        'bidAmountMicros' => ''
    ],
    'maximizeSpendAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalType' => '',
        'raiseBidForDeals' => null
    ],
    'performanceGoalAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalAmountMicros' => '',
        'performanceGoalType' => ''
    ]
  ],
  'budget' => [
    'budgetAllocationType' => '',
    'budgetUnit' => '',
    'maxAmount' => ''
  ],
  'campaignId' => '',
  'conversionCounting' => [
    'floodlightActivityConfigs' => [
        [
                'floodlightActivityId' => '',
                'postClickLookbackWindowDays' => 0,
                'postViewLookbackWindowDays' => 0
        ]
    ],
    'postViewCountPercentageMillis' => ''
  ],
  'creativeIds' => [
    
  ],
  'displayName' => '',
  'entityStatus' => '',
  'excludeNewExchanges' => null,
  'flight' => [
    'dateRange' => [
        'endDate' => [
                'day' => 0,
                'month' => 0,
                'year' => 0
        ],
        'startDate' => [
                
        ]
    ],
    'flightDateType' => ''
  ],
  'frequencyCap' => [
    'maxImpressions' => 0,
    'maxViews' => 0,
    'timeUnit' => '',
    'timeUnitCount' => 0,
    'unlimited' => null
  ],
  'insertionOrderId' => '',
  'integrationDetails' => [
    'details' => '',
    'integrationCode' => ''
  ],
  'lineItemId' => '',
  'lineItemType' => '',
  'mobileApp' => [
    'appId' => '',
    'displayName' => '',
    'platform' => '',
    'publisher' => ''
  ],
  'name' => '',
  'pacing' => [
    'dailyMaxImpressions' => '',
    'dailyMaxMicros' => '',
    'pacingPeriod' => '',
    'pacingType' => ''
  ],
  'partnerCosts' => [
    [
        'costType' => '',
        'feeAmount' => '',
        'feePercentageMillis' => '',
        'feeType' => '',
        'invoiceType' => ''
    ]
  ],
  'partnerRevenueModel' => [
    'markupAmount' => '',
    'markupType' => ''
  ],
  'reservationType' => '',
  'targetingExpansion' => [
    'excludeFirstPartyAudience' => null,
    'targetingExpansionLevel' => ''
  ],
  'updateTime' => '',
  'warningMessages' => [
    
  ],
  'youtubeAndPartnersSettings' => [
    'biddingStrategy' => [
        'adGroupEffectiveTargetCpaSource' => '',
        'adGroupEffectiveTargetCpaValue' => '',
        'type' => '',
        'value' => ''
    ],
    'contentCategory' => '',
    'inventorySourceSettings' => [
        'includeYoutubeSearch' => null,
        'includeYoutubeVideoPartners' => null,
        'includeYoutubeVideos' => null
    ],
    'leadFormId' => '',
    'linkedMerchantId' => '',
    'relatedVideoIds' => [
        
    ],
    'targetFrequency' => [
        'targetCount' => '',
        'timeUnit' => '',
        'timeUnitCount' => 0
    ],
    'thirdPartyMeasurementSettings' => [
        'brandLiftVendorConfigs' => [
                [
                                'placementId' => '',
                                'vendor' => ''
                ]
        ],
        'brandSafetyVendorConfigs' => [
                [
                                
                ]
        ],
        'reachVendorConfigs' => [
                [
                                
                ]
        ],
        'viewabilityVendorConfigs' => [
                [
                                
                ]
        ]
    ],
    'videoAdSequenceSettings' => [
        'minimumDuration' => '',
        'steps' => [
                [
                                'adGroupId' => '',
                                'interactionType' => '',
                                'previousStepId' => '',
                                'stepId' => ''
                ]
        ]
    ],
    'viewFrequencyCap' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems');
$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}}/v2/advertisers/:advertiserId/lineItems' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}'
import http.client

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

payload = "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}"

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

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/lineItems", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems"

payload = {
    "advertiserId": "",
    "bidStrategy": {
        "fixedBid": { "bidAmountMicros": "" },
        "maximizeSpendAutoBid": {
            "customBiddingAlgorithmId": "",
            "maxAverageCpmBidAmountMicros": "",
            "performanceGoalType": "",
            "raiseBidForDeals": False
        },
        "performanceGoalAutoBid": {
            "customBiddingAlgorithmId": "",
            "maxAverageCpmBidAmountMicros": "",
            "performanceGoalAmountMicros": "",
            "performanceGoalType": ""
        }
    },
    "budget": {
        "budgetAllocationType": "",
        "budgetUnit": "",
        "maxAmount": ""
    },
    "campaignId": "",
    "conversionCounting": {
        "floodlightActivityConfigs": [
            {
                "floodlightActivityId": "",
                "postClickLookbackWindowDays": 0,
                "postViewLookbackWindowDays": 0
            }
        ],
        "postViewCountPercentageMillis": ""
    },
    "creativeIds": [],
    "displayName": "",
    "entityStatus": "",
    "excludeNewExchanges": False,
    "flight": {
        "dateRange": {
            "endDate": {
                "day": 0,
                "month": 0,
                "year": 0
            },
            "startDate": {}
        },
        "flightDateType": ""
    },
    "frequencyCap": {
        "maxImpressions": 0,
        "maxViews": 0,
        "timeUnit": "",
        "timeUnitCount": 0,
        "unlimited": False
    },
    "insertionOrderId": "",
    "integrationDetails": {
        "details": "",
        "integrationCode": ""
    },
    "lineItemId": "",
    "lineItemType": "",
    "mobileApp": {
        "appId": "",
        "displayName": "",
        "platform": "",
        "publisher": ""
    },
    "name": "",
    "pacing": {
        "dailyMaxImpressions": "",
        "dailyMaxMicros": "",
        "pacingPeriod": "",
        "pacingType": ""
    },
    "partnerCosts": [
        {
            "costType": "",
            "feeAmount": "",
            "feePercentageMillis": "",
            "feeType": "",
            "invoiceType": ""
        }
    ],
    "partnerRevenueModel": {
        "markupAmount": "",
        "markupType": ""
    },
    "reservationType": "",
    "targetingExpansion": {
        "excludeFirstPartyAudience": False,
        "targetingExpansionLevel": ""
    },
    "updateTime": "",
    "warningMessages": [],
    "youtubeAndPartnersSettings": {
        "biddingStrategy": {
            "adGroupEffectiveTargetCpaSource": "",
            "adGroupEffectiveTargetCpaValue": "",
            "type": "",
            "value": ""
        },
        "contentCategory": "",
        "inventorySourceSettings": {
            "includeYoutubeSearch": False,
            "includeYoutubeVideoPartners": False,
            "includeYoutubeVideos": False
        },
        "leadFormId": "",
        "linkedMerchantId": "",
        "relatedVideoIds": [],
        "targetFrequency": {
            "targetCount": "",
            "timeUnit": "",
            "timeUnitCount": 0
        },
        "thirdPartyMeasurementSettings": {
            "brandLiftVendorConfigs": [
                {
                    "placementId": "",
                    "vendor": ""
                }
            ],
            "brandSafetyVendorConfigs": [{}],
            "reachVendorConfigs": [{}],
            "viewabilityVendorConfigs": [{}]
        },
        "videoAdSequenceSettings": {
            "minimumDuration": "",
            "steps": [
                {
                    "adGroupId": "",
                    "interactionType": "",
                    "previousStepId": "",
                    "stepId": ""
                }
            ]
        },
        "viewFrequencyCap": {}
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems"

payload <- "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\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}}/v2/advertisers/:advertiserId/lineItems")

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  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\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/v2/advertisers/:advertiserId/lineItems') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems";

    let payload = json!({
        "advertiserId": "",
        "bidStrategy": json!({
            "fixedBid": json!({"bidAmountMicros": ""}),
            "maximizeSpendAutoBid": json!({
                "customBiddingAlgorithmId": "",
                "maxAverageCpmBidAmountMicros": "",
                "performanceGoalType": "",
                "raiseBidForDeals": false
            }),
            "performanceGoalAutoBid": json!({
                "customBiddingAlgorithmId": "",
                "maxAverageCpmBidAmountMicros": "",
                "performanceGoalAmountMicros": "",
                "performanceGoalType": ""
            })
        }),
        "budget": json!({
            "budgetAllocationType": "",
            "budgetUnit": "",
            "maxAmount": ""
        }),
        "campaignId": "",
        "conversionCounting": json!({
            "floodlightActivityConfigs": (
                json!({
                    "floodlightActivityId": "",
                    "postClickLookbackWindowDays": 0,
                    "postViewLookbackWindowDays": 0
                })
            ),
            "postViewCountPercentageMillis": ""
        }),
        "creativeIds": (),
        "displayName": "",
        "entityStatus": "",
        "excludeNewExchanges": false,
        "flight": json!({
            "dateRange": json!({
                "endDate": json!({
                    "day": 0,
                    "month": 0,
                    "year": 0
                }),
                "startDate": json!({})
            }),
            "flightDateType": ""
        }),
        "frequencyCap": json!({
            "maxImpressions": 0,
            "maxViews": 0,
            "timeUnit": "",
            "timeUnitCount": 0,
            "unlimited": false
        }),
        "insertionOrderId": "",
        "integrationDetails": json!({
            "details": "",
            "integrationCode": ""
        }),
        "lineItemId": "",
        "lineItemType": "",
        "mobileApp": json!({
            "appId": "",
            "displayName": "",
            "platform": "",
            "publisher": ""
        }),
        "name": "",
        "pacing": json!({
            "dailyMaxImpressions": "",
            "dailyMaxMicros": "",
            "pacingPeriod": "",
            "pacingType": ""
        }),
        "partnerCosts": (
            json!({
                "costType": "",
                "feeAmount": "",
                "feePercentageMillis": "",
                "feeType": "",
                "invoiceType": ""
            })
        ),
        "partnerRevenueModel": json!({
            "markupAmount": "",
            "markupType": ""
        }),
        "reservationType": "",
        "targetingExpansion": json!({
            "excludeFirstPartyAudience": false,
            "targetingExpansionLevel": ""
        }),
        "updateTime": "",
        "warningMessages": (),
        "youtubeAndPartnersSettings": json!({
            "biddingStrategy": json!({
                "adGroupEffectiveTargetCpaSource": "",
                "adGroupEffectiveTargetCpaValue": "",
                "type": "",
                "value": ""
            }),
            "contentCategory": "",
            "inventorySourceSettings": json!({
                "includeYoutubeSearch": false,
                "includeYoutubeVideoPartners": false,
                "includeYoutubeVideos": false
            }),
            "leadFormId": "",
            "linkedMerchantId": "",
            "relatedVideoIds": (),
            "targetFrequency": json!({
                "targetCount": "",
                "timeUnit": "",
                "timeUnitCount": 0
            }),
            "thirdPartyMeasurementSettings": json!({
                "brandLiftVendorConfigs": (
                    json!({
                        "placementId": "",
                        "vendor": ""
                    })
                ),
                "brandSafetyVendorConfigs": (json!({})),
                "reachVendorConfigs": (json!({})),
                "viewabilityVendorConfigs": (json!({}))
            }),
            "videoAdSequenceSettings": json!({
                "minimumDuration": "",
                "steps": (
                    json!({
                        "adGroupId": "",
                        "interactionType": "",
                        "previousStepId": "",
                        "stepId": ""
                    })
                )
            }),
            "viewFrequencyCap": json!({})
        })
    });

    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}}/v2/advertisers/:advertiserId/lineItems \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}'
echo '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/lineItems \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "bidStrategy": {\n    "fixedBid": {\n      "bidAmountMicros": ""\n    },\n    "maximizeSpendAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalType": "",\n      "raiseBidForDeals": false\n    },\n    "performanceGoalAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalAmountMicros": "",\n      "performanceGoalType": ""\n    }\n  },\n  "budget": {\n    "budgetAllocationType": "",\n    "budgetUnit": "",\n    "maxAmount": ""\n  },\n  "campaignId": "",\n  "conversionCounting": {\n    "floodlightActivityConfigs": [\n      {\n        "floodlightActivityId": "",\n        "postClickLookbackWindowDays": 0,\n        "postViewLookbackWindowDays": 0\n      }\n    ],\n    "postViewCountPercentageMillis": ""\n  },\n  "creativeIds": [],\n  "displayName": "",\n  "entityStatus": "",\n  "excludeNewExchanges": false,\n  "flight": {\n    "dateRange": {\n      "endDate": {\n        "day": 0,\n        "month": 0,\n        "year": 0\n      },\n      "startDate": {}\n    },\n    "flightDateType": ""\n  },\n  "frequencyCap": {\n    "maxImpressions": 0,\n    "maxViews": 0,\n    "timeUnit": "",\n    "timeUnitCount": 0,\n    "unlimited": false\n  },\n  "insertionOrderId": "",\n  "integrationDetails": {\n    "details": "",\n    "integrationCode": ""\n  },\n  "lineItemId": "",\n  "lineItemType": "",\n  "mobileApp": {\n    "appId": "",\n    "displayName": "",\n    "platform": "",\n    "publisher": ""\n  },\n  "name": "",\n  "pacing": {\n    "dailyMaxImpressions": "",\n    "dailyMaxMicros": "",\n    "pacingPeriod": "",\n    "pacingType": ""\n  },\n  "partnerCosts": [\n    {\n      "costType": "",\n      "feeAmount": "",\n      "feePercentageMillis": "",\n      "feeType": "",\n      "invoiceType": ""\n    }\n  ],\n  "partnerRevenueModel": {\n    "markupAmount": "",\n    "markupType": ""\n  },\n  "reservationType": "",\n  "targetingExpansion": {\n    "excludeFirstPartyAudience": false,\n    "targetingExpansionLevel": ""\n  },\n  "updateTime": "",\n  "warningMessages": [],\n  "youtubeAndPartnersSettings": {\n    "biddingStrategy": {\n      "adGroupEffectiveTargetCpaSource": "",\n      "adGroupEffectiveTargetCpaValue": "",\n      "type": "",\n      "value": ""\n    },\n    "contentCategory": "",\n    "inventorySourceSettings": {\n      "includeYoutubeSearch": false,\n      "includeYoutubeVideoPartners": false,\n      "includeYoutubeVideos": false\n    },\n    "leadFormId": "",\n    "linkedMerchantId": "",\n    "relatedVideoIds": [],\n    "targetFrequency": {\n      "targetCount": "",\n      "timeUnit": "",\n      "timeUnitCount": 0\n    },\n    "thirdPartyMeasurementSettings": {\n      "brandLiftVendorConfigs": [\n        {\n          "placementId": "",\n          "vendor": ""\n        }\n      ],\n      "brandSafetyVendorConfigs": [\n        {}\n      ],\n      "reachVendorConfigs": [\n        {}\n      ],\n      "viewabilityVendorConfigs": [\n        {}\n      ]\n    },\n    "videoAdSequenceSettings": {\n      "minimumDuration": "",\n      "steps": [\n        {\n          "adGroupId": "",\n          "interactionType": "",\n          "previousStepId": "",\n          "stepId": ""\n        }\n      ]\n    },\n    "viewFrequencyCap": {}\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "bidStrategy": [
    "fixedBid": ["bidAmountMicros": ""],
    "maximizeSpendAutoBid": [
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    ],
    "performanceGoalAutoBid": [
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    ]
  ],
  "budget": [
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  ],
  "campaignId": "",
  "conversionCounting": [
    "floodlightActivityConfigs": [
      [
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      ]
    ],
    "postViewCountPercentageMillis": ""
  ],
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": [
    "dateRange": [
      "endDate": [
        "day": 0,
        "month": 0,
        "year": 0
      ],
      "startDate": []
    ],
    "flightDateType": ""
  ],
  "frequencyCap": [
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  ],
  "insertionOrderId": "",
  "integrationDetails": [
    "details": "",
    "integrationCode": ""
  ],
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": [
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  ],
  "name": "",
  "pacing": [
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  ],
  "partnerCosts": [
    [
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    ]
  ],
  "partnerRevenueModel": [
    "markupAmount": "",
    "markupType": ""
  ],
  "reservationType": "",
  "targetingExpansion": [
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  ],
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": [
    "biddingStrategy": [
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    ],
    "contentCategory": "",
    "inventorySourceSettings": [
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    ],
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": [
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    ],
    "thirdPartyMeasurementSettings": [
      "brandLiftVendorConfigs": [
        [
          "placementId": "",
          "vendor": ""
        ]
      ],
      "brandSafetyVendorConfigs": [[]],
      "reachVendorConfigs": [[]],
      "viewabilityVendorConfigs": [[]]
    ],
    "videoAdSequenceSettings": [
      "minimumDuration": "",
      "steps": [
        [
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        ]
      ]
    ],
    "viewFrequencyCap": []
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems")! 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()
DELETE displayvideo.advertisers.lineItems.delete
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId
QUERY PARAMS

advertiserId
lineItemId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId");

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

(client/delete "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"

	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/v2/advertisers/:advertiserId/lineItems/:lineItemId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"))
    .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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
  .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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId';
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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/lineItems/:lineItemId',
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId'
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId';
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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId",
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/v2/advertisers/:advertiserId/lineItems/:lineItemId")

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"

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

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

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")

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/v2/advertisers/:advertiserId/lineItems/:lineItemId') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId";

    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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId
http DELETE {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")! 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 displayvideo.advertisers.lineItems.duplicate
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate
QUERY PARAMS

advertiserId
lineItemId
BODY json

{
  "targetDisplayName": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate");

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  \"targetDisplayName\": \"\"\n}");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate" {:content-type :json
                                                                                                         :form-params {:targetDisplayName ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"targetDisplayName\": \"\"\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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate"),
    Content = new StringContent("{\n  \"targetDisplayName\": \"\"\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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"targetDisplayName\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate"

	payload := strings.NewReader("{\n  \"targetDisplayName\": \"\"\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/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 29

{
  "targetDisplayName": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"targetDisplayName\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"targetDisplayName\": \"\"\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  \"targetDisplayName\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate")
  .header("content-type", "application/json")
  .body("{\n  \"targetDisplayName\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  targetDisplayName: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate',
  headers: {'content-type': 'application/json'},
  data: {targetDisplayName: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"targetDisplayName":""}'
};

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "targetDisplayName": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"targetDisplayName\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate")
  .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/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate',
  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({targetDisplayName: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate',
  headers: {'content-type': 'application/json'},
  body: {targetDisplayName: ''},
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate');

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

req.type('json');
req.send({
  targetDisplayName: ''
});

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate',
  headers: {'content-type': 'application/json'},
  data: {targetDisplayName: ''}
};

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

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"targetDisplayName":""}'
};

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 = @{ @"targetDisplayName": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"targetDisplayName\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate",
  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([
    'targetDisplayName' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate', [
  'body' => '{
  "targetDisplayName": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'targetDisplayName' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'targetDisplayName' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate');
$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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "targetDisplayName": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "targetDisplayName": ""
}'
import http.client

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

payload = "{\n  \"targetDisplayName\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate", payload, headers)

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

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

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate"

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

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

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

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate"

payload <- "{\n  \"targetDisplayName\": \"\"\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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate")

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  \"targetDisplayName\": \"\"\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/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate') do |req|
  req.body = "{\n  \"targetDisplayName\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate";

    let payload = json!({"targetDisplayName": ""});

    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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate \
  --header 'content-type: application/json' \
  --data '{
  "targetDisplayName": ""
}'
echo '{
  "targetDisplayName": ""
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "targetDisplayName": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["targetDisplayName": ""] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId:duplicate")! 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()
POST displayvideo.advertisers.lineItems.generateDefault
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault
QUERY PARAMS

advertiserId
BODY json

{
  "displayName": "",
  "insertionOrderId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault");

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  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault" {:content-type :json
                                                                                                   :form-params {:displayName ""
                                                                                                                 :insertionOrderId ""
                                                                                                                 :lineItemType ""
                                                                                                                 :mobileApp {:appId ""
                                                                                                                             :displayName ""
                                                                                                                             :platform ""
                                                                                                                             :publisher ""}}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\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}}/v2/advertisers/:advertiserId/lineItems:generateDefault"),
    Content = new StringContent("{\n  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\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}}/v2/advertisers/:advertiserId/lineItems:generateDefault");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault"

	payload := strings.NewReader("{\n  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\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/v2/advertisers/:advertiserId/lineItems:generateDefault HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 173

{
  "displayName": "",
  "insertionOrderId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\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  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault")
  .header("content-type", "application/json")
  .body("{\n  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  displayName: '',
  insertionOrderId: '',
  lineItemType: '',
  mobileApp: {
    appId: '',
    displayName: '',
    platform: '',
    publisher: ''
  }
});

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

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault',
  headers: {'content-type': 'application/json'},
  data: {
    displayName: '',
    insertionOrderId: '',
    lineItemType: '',
    mobileApp: {appId: '', displayName: '', platform: '', publisher: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"displayName":"","insertionOrderId":"","lineItemType":"","mobileApp":{"appId":"","displayName":"","platform":"","publisher":""}}'
};

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}}/v2/advertisers/:advertiserId/lineItems:generateDefault',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "displayName": "",\n  "insertionOrderId": "",\n  "lineItemType": "",\n  "mobileApp": {\n    "appId": "",\n    "displayName": "",\n    "platform": "",\n    "publisher": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault")
  .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/v2/advertisers/:advertiserId/lineItems:generateDefault',
  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({
  displayName: '',
  insertionOrderId: '',
  lineItemType: '',
  mobileApp: {appId: '', displayName: '', platform: '', publisher: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault',
  headers: {'content-type': 'application/json'},
  body: {
    displayName: '',
    insertionOrderId: '',
    lineItemType: '',
    mobileApp: {appId: '', displayName: '', platform: '', publisher: ''}
  },
  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}}/v2/advertisers/:advertiserId/lineItems:generateDefault');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  displayName: '',
  insertionOrderId: '',
  lineItemType: '',
  mobileApp: {
    appId: '',
    displayName: '',
    platform: '',
    publisher: ''
  }
});

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}}/v2/advertisers/:advertiserId/lineItems:generateDefault',
  headers: {'content-type': 'application/json'},
  data: {
    displayName: '',
    insertionOrderId: '',
    lineItemType: '',
    mobileApp: {appId: '', displayName: '', platform: '', publisher: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"displayName":"","insertionOrderId":"","lineItemType":"","mobileApp":{"appId":"","displayName":"","platform":"","publisher":""}}'
};

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 = @{ @"displayName": @"",
                              @"insertionOrderId": @"",
                              @"lineItemType": @"",
                              @"mobileApp": @{ @"appId": @"", @"displayName": @"", @"platform": @"", @"publisher": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems:generateDefault" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault",
  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([
    'displayName' => '',
    'insertionOrderId' => '',
    'lineItemType' => '',
    'mobileApp' => [
        'appId' => '',
        'displayName' => '',
        'platform' => '',
        'publisher' => ''
    ]
  ]),
  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}}/v2/advertisers/:advertiserId/lineItems:generateDefault', [
  'body' => '{
  "displayName": "",
  "insertionOrderId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'displayName' => '',
  'insertionOrderId' => '',
  'lineItemType' => '',
  'mobileApp' => [
    'appId' => '',
    'displayName' => '',
    'platform' => '',
    'publisher' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'displayName' => '',
  'insertionOrderId' => '',
  'lineItemType' => '',
  'mobileApp' => [
    'appId' => '',
    'displayName' => '',
    'platform' => '',
    'publisher' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault');
$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}}/v2/advertisers/:advertiserId/lineItems:generateDefault' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "displayName": "",
  "insertionOrderId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "displayName": "",
  "insertionOrderId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/lineItems:generateDefault", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault"

payload = {
    "displayName": "",
    "insertionOrderId": "",
    "lineItemType": "",
    "mobileApp": {
        "appId": "",
        "displayName": "",
        "platform": "",
        "publisher": ""
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault"

payload <- "{\n  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\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}}/v2/advertisers/:advertiserId/lineItems:generateDefault")

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  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\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/v2/advertisers/:advertiserId/lineItems:generateDefault') do |req|
  req.body = "{\n  \"displayName\": \"\",\n  \"insertionOrderId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault";

    let payload = json!({
        "displayName": "",
        "insertionOrderId": "",
        "lineItemType": "",
        "mobileApp": json!({
            "appId": "",
            "displayName": "",
            "platform": "",
            "publisher": ""
        })
    });

    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}}/v2/advertisers/:advertiserId/lineItems:generateDefault \
  --header 'content-type: application/json' \
  --data '{
  "displayName": "",
  "insertionOrderId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  }
}'
echo '{
  "displayName": "",
  "insertionOrderId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  }
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "displayName": "",\n  "insertionOrderId": "",\n  "lineItemType": "",\n  "mobileApp": {\n    "appId": "",\n    "displayName": "",\n    "platform": "",\n    "publisher": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "displayName": "",
  "insertionOrderId": "",
  "lineItemType": "",
  "mobileApp": [
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems:generateDefault")! 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 displayvideo.advertisers.lineItems.get
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId
QUERY PARAMS

advertiserId
lineItemId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"

	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/v2/advertisers/:advertiserId/lineItems/:lineItemId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"))
    .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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
  .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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId';
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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/lineItems/:lineItemId',
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId';
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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId",
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/lineItems/:lineItemId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")

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/v2/advertisers/:advertiserId/lineItems/:lineItemId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId";

    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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId
http GET {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")! 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 displayvideo.advertisers.lineItems.list
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems"

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}}/v2/advertisers/:advertiserId/lineItems"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems"

	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/v2/advertisers/:advertiserId/lineItems HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems"))
    .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}}/v2/advertisers/:advertiserId/lineItems")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems")
  .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}}/v2/advertisers/:advertiserId/lineItems');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems';
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}}/v2/advertisers/:advertiserId/lineItems',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/lineItems',
  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}}/v2/advertisers/:advertiserId/lineItems'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems');

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}}/v2/advertisers/:advertiserId/lineItems'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems';
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}}/v2/advertisers/:advertiserId/lineItems"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems",
  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}}/v2/advertisers/:advertiserId/lineItems');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/lineItems")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems")

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/v2/advertisers/:advertiserId/lineItems') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems";

    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}}/v2/advertisers/:advertiserId/lineItems
http GET {{baseUrl}}/v2/advertisers/:advertiserId/lineItems
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems")! 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 displayvideo.advertisers.lineItems.patch
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId
QUERY PARAMS

advertiserId
lineItemId
BODY json

{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId");

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  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId" {:content-type :json
                                                                                                :form-params {:advertiserId ""
                                                                                                              :bidStrategy {:fixedBid {:bidAmountMicros ""}
                                                                                                                            :maximizeSpendAutoBid {:customBiddingAlgorithmId ""
                                                                                                                                                   :maxAverageCpmBidAmountMicros ""
                                                                                                                                                   :performanceGoalType ""
                                                                                                                                                   :raiseBidForDeals false}
                                                                                                                            :performanceGoalAutoBid {:customBiddingAlgorithmId ""
                                                                                                                                                     :maxAverageCpmBidAmountMicros ""
                                                                                                                                                     :performanceGoalAmountMicros ""
                                                                                                                                                     :performanceGoalType ""}}
                                                                                                              :budget {:budgetAllocationType ""
                                                                                                                       :budgetUnit ""
                                                                                                                       :maxAmount ""}
                                                                                                              :campaignId ""
                                                                                                              :conversionCounting {:floodlightActivityConfigs [{:floodlightActivityId ""
                                                                                                                                                                :postClickLookbackWindowDays 0
                                                                                                                                                                :postViewLookbackWindowDays 0}]
                                                                                                                                   :postViewCountPercentageMillis ""}
                                                                                                              :creativeIds []
                                                                                                              :displayName ""
                                                                                                              :entityStatus ""
                                                                                                              :excludeNewExchanges false
                                                                                                              :flight {:dateRange {:endDate {:day 0
                                                                                                                                             :month 0
                                                                                                                                             :year 0}
                                                                                                                                   :startDate {}}
                                                                                                                       :flightDateType ""}
                                                                                                              :frequencyCap {:maxImpressions 0
                                                                                                                             :maxViews 0
                                                                                                                             :timeUnit ""
                                                                                                                             :timeUnitCount 0
                                                                                                                             :unlimited false}
                                                                                                              :insertionOrderId ""
                                                                                                              :integrationDetails {:details ""
                                                                                                                                   :integrationCode ""}
                                                                                                              :lineItemId ""
                                                                                                              :lineItemType ""
                                                                                                              :mobileApp {:appId ""
                                                                                                                          :displayName ""
                                                                                                                          :platform ""
                                                                                                                          :publisher ""}
                                                                                                              :name ""
                                                                                                              :pacing {:dailyMaxImpressions ""
                                                                                                                       :dailyMaxMicros ""
                                                                                                                       :pacingPeriod ""
                                                                                                                       :pacingType ""}
                                                                                                              :partnerCosts [{:costType ""
                                                                                                                              :feeAmount ""
                                                                                                                              :feePercentageMillis ""
                                                                                                                              :feeType ""
                                                                                                                              :invoiceType ""}]
                                                                                                              :partnerRevenueModel {:markupAmount ""
                                                                                                                                    :markupType ""}
                                                                                                              :reservationType ""
                                                                                                              :targetingExpansion {:excludeFirstPartyAudience false
                                                                                                                                   :targetingExpansionLevel ""}
                                                                                                              :updateTime ""
                                                                                                              :warningMessages []
                                                                                                              :youtubeAndPartnersSettings {:biddingStrategy {:adGroupEffectiveTargetCpaSource ""
                                                                                                                                                             :adGroupEffectiveTargetCpaValue ""
                                                                                                                                                             :type ""
                                                                                                                                                             :value ""}
                                                                                                                                           :contentCategory ""
                                                                                                                                           :inventorySourceSettings {:includeYoutubeSearch false
                                                                                                                                                                     :includeYoutubeVideoPartners false
                                                                                                                                                                     :includeYoutubeVideos false}
                                                                                                                                           :leadFormId ""
                                                                                                                                           :linkedMerchantId ""
                                                                                                                                           :relatedVideoIds []
                                                                                                                                           :targetFrequency {:targetCount ""
                                                                                                                                                             :timeUnit ""
                                                                                                                                                             :timeUnitCount 0}
                                                                                                                                           :thirdPartyMeasurementSettings {:brandLiftVendorConfigs [{:placementId ""
                                                                                                                                                                                                     :vendor ""}]
                                                                                                                                                                           :brandSafetyVendorConfigs [{}]
                                                                                                                                                                           :reachVendorConfigs [{}]
                                                                                                                                                                           :viewabilityVendorConfigs [{}]}
                                                                                                                                           :videoAdSequenceSettings {:minimumDuration ""
                                                                                                                                                                     :steps [{:adGroupId ""
                                                                                                                                                                              :interactionType ""
                                                                                                                                                                              :previousStepId ""
                                                                                                                                                                              :stepId ""}]}
                                                                                                                                           :viewFrequencyCap {}}}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\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/v2/advertisers/:advertiserId/lineItems/:lineItemId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 3174

{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\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  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  bidStrategy: {
    fixedBid: {
      bidAmountMicros: ''
    },
    maximizeSpendAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalType: '',
      raiseBidForDeals: false
    },
    performanceGoalAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalAmountMicros: '',
      performanceGoalType: ''
    }
  },
  budget: {
    budgetAllocationType: '',
    budgetUnit: '',
    maxAmount: ''
  },
  campaignId: '',
  conversionCounting: {
    floodlightActivityConfigs: [
      {
        floodlightActivityId: '',
        postClickLookbackWindowDays: 0,
        postViewLookbackWindowDays: 0
      }
    ],
    postViewCountPercentageMillis: ''
  },
  creativeIds: [],
  displayName: '',
  entityStatus: '',
  excludeNewExchanges: false,
  flight: {
    dateRange: {
      endDate: {
        day: 0,
        month: 0,
        year: 0
      },
      startDate: {}
    },
    flightDateType: ''
  },
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  insertionOrderId: '',
  integrationDetails: {
    details: '',
    integrationCode: ''
  },
  lineItemId: '',
  lineItemType: '',
  mobileApp: {
    appId: '',
    displayName: '',
    platform: '',
    publisher: ''
  },
  name: '',
  pacing: {
    dailyMaxImpressions: '',
    dailyMaxMicros: '',
    pacingPeriod: '',
    pacingType: ''
  },
  partnerCosts: [
    {
      costType: '',
      feeAmount: '',
      feePercentageMillis: '',
      feeType: '',
      invoiceType: ''
    }
  ],
  partnerRevenueModel: {
    markupAmount: '',
    markupType: ''
  },
  reservationType: '',
  targetingExpansion: {
    excludeFirstPartyAudience: false,
    targetingExpansionLevel: ''
  },
  updateTime: '',
  warningMessages: [],
  youtubeAndPartnersSettings: {
    biddingStrategy: {
      adGroupEffectiveTargetCpaSource: '',
      adGroupEffectiveTargetCpaValue: '',
      type: '',
      value: ''
    },
    contentCategory: '',
    inventorySourceSettings: {
      includeYoutubeSearch: false,
      includeYoutubeVideoPartners: false,
      includeYoutubeVideos: false
    },
    leadFormId: '',
    linkedMerchantId: '',
    relatedVideoIds: [],
    targetFrequency: {
      targetCount: '',
      timeUnit: '',
      timeUnitCount: 0
    },
    thirdPartyMeasurementSettings: {
      brandLiftVendorConfigs: [
        {
          placementId: '',
          vendor: ''
        }
      ],
      brandSafetyVendorConfigs: [
        {}
      ],
      reachVendorConfigs: [
        {}
      ],
      viewabilityVendorConfigs: [
        {}
      ]
    },
    videoAdSequenceSettings: {
      minimumDuration: '',
      steps: [
        {
          adGroupId: '',
          interactionType: '',
          previousStepId: '',
          stepId: ''
        }
      ]
    },
    viewFrequencyCap: {}
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {bidAmountMicros: ''},
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    budget: {budgetAllocationType: '', budgetUnit: '', maxAmount: ''},
    campaignId: '',
    conversionCounting: {
      floodlightActivityConfigs: [
        {
          floodlightActivityId: '',
          postClickLookbackWindowDays: 0,
          postViewLookbackWindowDays: 0
        }
      ],
      postViewCountPercentageMillis: ''
    },
    creativeIds: [],
    displayName: '',
    entityStatus: '',
    excludeNewExchanges: false,
    flight: {
      dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
      flightDateType: ''
    },
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    integrationDetails: {details: '', integrationCode: ''},
    lineItemId: '',
    lineItemType: '',
    mobileApp: {appId: '', displayName: '', platform: '', publisher: ''},
    name: '',
    pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    partnerRevenueModel: {markupAmount: '', markupType: ''},
    reservationType: '',
    targetingExpansion: {excludeFirstPartyAudience: false, targetingExpansionLevel: ''},
    updateTime: '',
    warningMessages: [],
    youtubeAndPartnersSettings: {
      biddingStrategy: {
        adGroupEffectiveTargetCpaSource: '',
        adGroupEffectiveTargetCpaValue: '',
        type: '',
        value: ''
      },
      contentCategory: '',
      inventorySourceSettings: {
        includeYoutubeSearch: false,
        includeYoutubeVideoPartners: false,
        includeYoutubeVideos: false
      },
      leadFormId: '',
      linkedMerchantId: '',
      relatedVideoIds: [],
      targetFrequency: {targetCount: '', timeUnit: '', timeUnitCount: 0},
      thirdPartyMeasurementSettings: {
        brandLiftVendorConfigs: [{placementId: '', vendor: ''}],
        brandSafetyVendorConfigs: [{}],
        reachVendorConfigs: [{}],
        viewabilityVendorConfigs: [{}]
      },
      videoAdSequenceSettings: {
        minimumDuration: '',
        steps: [{adGroupId: '', interactionType: '', previousStepId: '', stepId: ''}]
      },
      viewFrequencyCap: {}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","bidStrategy":{"fixedBid":{"bidAmountMicros":""},"maximizeSpendAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalType":"","raiseBidForDeals":false},"performanceGoalAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalAmountMicros":"","performanceGoalType":""}},"budget":{"budgetAllocationType":"","budgetUnit":"","maxAmount":""},"campaignId":"","conversionCounting":{"floodlightActivityConfigs":[{"floodlightActivityId":"","postClickLookbackWindowDays":0,"postViewLookbackWindowDays":0}],"postViewCountPercentageMillis":""},"creativeIds":[],"displayName":"","entityStatus":"","excludeNewExchanges":false,"flight":{"dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"flightDateType":""},"frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"insertionOrderId":"","integrationDetails":{"details":"","integrationCode":""},"lineItemId":"","lineItemType":"","mobileApp":{"appId":"","displayName":"","platform":"","publisher":""},"name":"","pacing":{"dailyMaxImpressions":"","dailyMaxMicros":"","pacingPeriod":"","pacingType":""},"partnerCosts":[{"costType":"","feeAmount":"","feePercentageMillis":"","feeType":"","invoiceType":""}],"partnerRevenueModel":{"markupAmount":"","markupType":""},"reservationType":"","targetingExpansion":{"excludeFirstPartyAudience":false,"targetingExpansionLevel":""},"updateTime":"","warningMessages":[],"youtubeAndPartnersSettings":{"biddingStrategy":{"adGroupEffectiveTargetCpaSource":"","adGroupEffectiveTargetCpaValue":"","type":"","value":""},"contentCategory":"","inventorySourceSettings":{"includeYoutubeSearch":false,"includeYoutubeVideoPartners":false,"includeYoutubeVideos":false},"leadFormId":"","linkedMerchantId":"","relatedVideoIds":[],"targetFrequency":{"targetCount":"","timeUnit":"","timeUnitCount":0},"thirdPartyMeasurementSettings":{"brandLiftVendorConfigs":[{"placementId":"","vendor":""}],"brandSafetyVendorConfigs":[{}],"reachVendorConfigs":[{}],"viewabilityVendorConfigs":[{}]},"videoAdSequenceSettings":{"minimumDuration":"","steps":[{"adGroupId":"","interactionType":"","previousStepId":"","stepId":""}]},"viewFrequencyCap":{}}}'
};

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "bidStrategy": {\n    "fixedBid": {\n      "bidAmountMicros": ""\n    },\n    "maximizeSpendAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalType": "",\n      "raiseBidForDeals": false\n    },\n    "performanceGoalAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalAmountMicros": "",\n      "performanceGoalType": ""\n    }\n  },\n  "budget": {\n    "budgetAllocationType": "",\n    "budgetUnit": "",\n    "maxAmount": ""\n  },\n  "campaignId": "",\n  "conversionCounting": {\n    "floodlightActivityConfigs": [\n      {\n        "floodlightActivityId": "",\n        "postClickLookbackWindowDays": 0,\n        "postViewLookbackWindowDays": 0\n      }\n    ],\n    "postViewCountPercentageMillis": ""\n  },\n  "creativeIds": [],\n  "displayName": "",\n  "entityStatus": "",\n  "excludeNewExchanges": false,\n  "flight": {\n    "dateRange": {\n      "endDate": {\n        "day": 0,\n        "month": 0,\n        "year": 0\n      },\n      "startDate": {}\n    },\n    "flightDateType": ""\n  },\n  "frequencyCap": {\n    "maxImpressions": 0,\n    "maxViews": 0,\n    "timeUnit": "",\n    "timeUnitCount": 0,\n    "unlimited": false\n  },\n  "insertionOrderId": "",\n  "integrationDetails": {\n    "details": "",\n    "integrationCode": ""\n  },\n  "lineItemId": "",\n  "lineItemType": "",\n  "mobileApp": {\n    "appId": "",\n    "displayName": "",\n    "platform": "",\n    "publisher": ""\n  },\n  "name": "",\n  "pacing": {\n    "dailyMaxImpressions": "",\n    "dailyMaxMicros": "",\n    "pacingPeriod": "",\n    "pacingType": ""\n  },\n  "partnerCosts": [\n    {\n      "costType": "",\n      "feeAmount": "",\n      "feePercentageMillis": "",\n      "feeType": "",\n      "invoiceType": ""\n    }\n  ],\n  "partnerRevenueModel": {\n    "markupAmount": "",\n    "markupType": ""\n  },\n  "reservationType": "",\n  "targetingExpansion": {\n    "excludeFirstPartyAudience": false,\n    "targetingExpansionLevel": ""\n  },\n  "updateTime": "",\n  "warningMessages": [],\n  "youtubeAndPartnersSettings": {\n    "biddingStrategy": {\n      "adGroupEffectiveTargetCpaSource": "",\n      "adGroupEffectiveTargetCpaValue": "",\n      "type": "",\n      "value": ""\n    },\n    "contentCategory": "",\n    "inventorySourceSettings": {\n      "includeYoutubeSearch": false,\n      "includeYoutubeVideoPartners": false,\n      "includeYoutubeVideos": false\n    },\n    "leadFormId": "",\n    "linkedMerchantId": "",\n    "relatedVideoIds": [],\n    "targetFrequency": {\n      "targetCount": "",\n      "timeUnit": "",\n      "timeUnitCount": 0\n    },\n    "thirdPartyMeasurementSettings": {\n      "brandLiftVendorConfigs": [\n        {\n          "placementId": "",\n          "vendor": ""\n        }\n      ],\n      "brandSafetyVendorConfigs": [\n        {}\n      ],\n      "reachVendorConfigs": [\n        {}\n      ],\n      "viewabilityVendorConfigs": [\n        {}\n      ]\n    },\n    "videoAdSequenceSettings": {\n      "minimumDuration": "",\n      "steps": [\n        {\n          "adGroupId": "",\n          "interactionType": "",\n          "previousStepId": "",\n          "stepId": ""\n        }\n      ]\n    },\n    "viewFrequencyCap": {}\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")
  .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/v2/advertisers/:advertiserId/lineItems/:lineItemId',
  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({
  advertiserId: '',
  bidStrategy: {
    fixedBid: {bidAmountMicros: ''},
    maximizeSpendAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalType: '',
      raiseBidForDeals: false
    },
    performanceGoalAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalAmountMicros: '',
      performanceGoalType: ''
    }
  },
  budget: {budgetAllocationType: '', budgetUnit: '', maxAmount: ''},
  campaignId: '',
  conversionCounting: {
    floodlightActivityConfigs: [
      {
        floodlightActivityId: '',
        postClickLookbackWindowDays: 0,
        postViewLookbackWindowDays: 0
      }
    ],
    postViewCountPercentageMillis: ''
  },
  creativeIds: [],
  displayName: '',
  entityStatus: '',
  excludeNewExchanges: false,
  flight: {
    dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
    flightDateType: ''
  },
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  insertionOrderId: '',
  integrationDetails: {details: '', integrationCode: ''},
  lineItemId: '',
  lineItemType: '',
  mobileApp: {appId: '', displayName: '', platform: '', publisher: ''},
  name: '',
  pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
  partnerCosts: [
    {
      costType: '',
      feeAmount: '',
      feePercentageMillis: '',
      feeType: '',
      invoiceType: ''
    }
  ],
  partnerRevenueModel: {markupAmount: '', markupType: ''},
  reservationType: '',
  targetingExpansion: {excludeFirstPartyAudience: false, targetingExpansionLevel: ''},
  updateTime: '',
  warningMessages: [],
  youtubeAndPartnersSettings: {
    biddingStrategy: {
      adGroupEffectiveTargetCpaSource: '',
      adGroupEffectiveTargetCpaValue: '',
      type: '',
      value: ''
    },
    contentCategory: '',
    inventorySourceSettings: {
      includeYoutubeSearch: false,
      includeYoutubeVideoPartners: false,
      includeYoutubeVideos: false
    },
    leadFormId: '',
    linkedMerchantId: '',
    relatedVideoIds: [],
    targetFrequency: {targetCount: '', timeUnit: '', timeUnitCount: 0},
    thirdPartyMeasurementSettings: {
      brandLiftVendorConfigs: [{placementId: '', vendor: ''}],
      brandSafetyVendorConfigs: [{}],
      reachVendorConfigs: [{}],
      viewabilityVendorConfigs: [{}]
    },
    videoAdSequenceSettings: {
      minimumDuration: '',
      steps: [{adGroupId: '', interactionType: '', previousStepId: '', stepId: ''}]
    },
    viewFrequencyCap: {}
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {bidAmountMicros: ''},
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    budget: {budgetAllocationType: '', budgetUnit: '', maxAmount: ''},
    campaignId: '',
    conversionCounting: {
      floodlightActivityConfigs: [
        {
          floodlightActivityId: '',
          postClickLookbackWindowDays: 0,
          postViewLookbackWindowDays: 0
        }
      ],
      postViewCountPercentageMillis: ''
    },
    creativeIds: [],
    displayName: '',
    entityStatus: '',
    excludeNewExchanges: false,
    flight: {
      dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
      flightDateType: ''
    },
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    integrationDetails: {details: '', integrationCode: ''},
    lineItemId: '',
    lineItemType: '',
    mobileApp: {appId: '', displayName: '', platform: '', publisher: ''},
    name: '',
    pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    partnerRevenueModel: {markupAmount: '', markupType: ''},
    reservationType: '',
    targetingExpansion: {excludeFirstPartyAudience: false, targetingExpansionLevel: ''},
    updateTime: '',
    warningMessages: [],
    youtubeAndPartnersSettings: {
      biddingStrategy: {
        adGroupEffectiveTargetCpaSource: '',
        adGroupEffectiveTargetCpaValue: '',
        type: '',
        value: ''
      },
      contentCategory: '',
      inventorySourceSettings: {
        includeYoutubeSearch: false,
        includeYoutubeVideoPartners: false,
        includeYoutubeVideos: false
      },
      leadFormId: '',
      linkedMerchantId: '',
      relatedVideoIds: [],
      targetFrequency: {targetCount: '', timeUnit: '', timeUnitCount: 0},
      thirdPartyMeasurementSettings: {
        brandLiftVendorConfigs: [{placementId: '', vendor: ''}],
        brandSafetyVendorConfigs: [{}],
        reachVendorConfigs: [{}],
        viewabilityVendorConfigs: [{}]
      },
      videoAdSequenceSettings: {
        minimumDuration: '',
        steps: [{adGroupId: '', interactionType: '', previousStepId: '', stepId: ''}]
      },
      viewFrequencyCap: {}
    }
  },
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  bidStrategy: {
    fixedBid: {
      bidAmountMicros: ''
    },
    maximizeSpendAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalType: '',
      raiseBidForDeals: false
    },
    performanceGoalAutoBid: {
      customBiddingAlgorithmId: '',
      maxAverageCpmBidAmountMicros: '',
      performanceGoalAmountMicros: '',
      performanceGoalType: ''
    }
  },
  budget: {
    budgetAllocationType: '',
    budgetUnit: '',
    maxAmount: ''
  },
  campaignId: '',
  conversionCounting: {
    floodlightActivityConfigs: [
      {
        floodlightActivityId: '',
        postClickLookbackWindowDays: 0,
        postViewLookbackWindowDays: 0
      }
    ],
    postViewCountPercentageMillis: ''
  },
  creativeIds: [],
  displayName: '',
  entityStatus: '',
  excludeNewExchanges: false,
  flight: {
    dateRange: {
      endDate: {
        day: 0,
        month: 0,
        year: 0
      },
      startDate: {}
    },
    flightDateType: ''
  },
  frequencyCap: {
    maxImpressions: 0,
    maxViews: 0,
    timeUnit: '',
    timeUnitCount: 0,
    unlimited: false
  },
  insertionOrderId: '',
  integrationDetails: {
    details: '',
    integrationCode: ''
  },
  lineItemId: '',
  lineItemType: '',
  mobileApp: {
    appId: '',
    displayName: '',
    platform: '',
    publisher: ''
  },
  name: '',
  pacing: {
    dailyMaxImpressions: '',
    dailyMaxMicros: '',
    pacingPeriod: '',
    pacingType: ''
  },
  partnerCosts: [
    {
      costType: '',
      feeAmount: '',
      feePercentageMillis: '',
      feeType: '',
      invoiceType: ''
    }
  ],
  partnerRevenueModel: {
    markupAmount: '',
    markupType: ''
  },
  reservationType: '',
  targetingExpansion: {
    excludeFirstPartyAudience: false,
    targetingExpansionLevel: ''
  },
  updateTime: '',
  warningMessages: [],
  youtubeAndPartnersSettings: {
    biddingStrategy: {
      adGroupEffectiveTargetCpaSource: '',
      adGroupEffectiveTargetCpaValue: '',
      type: '',
      value: ''
    },
    contentCategory: '',
    inventorySourceSettings: {
      includeYoutubeSearch: false,
      includeYoutubeVideoPartners: false,
      includeYoutubeVideos: false
    },
    leadFormId: '',
    linkedMerchantId: '',
    relatedVideoIds: [],
    targetFrequency: {
      targetCount: '',
      timeUnit: '',
      timeUnitCount: 0
    },
    thirdPartyMeasurementSettings: {
      brandLiftVendorConfigs: [
        {
          placementId: '',
          vendor: ''
        }
      ],
      brandSafetyVendorConfigs: [
        {}
      ],
      reachVendorConfigs: [
        {}
      ],
      viewabilityVendorConfigs: [
        {}
      ]
    },
    videoAdSequenceSettings: {
      minimumDuration: '',
      steps: [
        {
          adGroupId: '',
          interactionType: '',
          previousStepId: '',
          stepId: ''
        }
      ]
    },
    viewFrequencyCap: {}
  }
});

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    bidStrategy: {
      fixedBid: {bidAmountMicros: ''},
      maximizeSpendAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalType: '',
        raiseBidForDeals: false
      },
      performanceGoalAutoBid: {
        customBiddingAlgorithmId: '',
        maxAverageCpmBidAmountMicros: '',
        performanceGoalAmountMicros: '',
        performanceGoalType: ''
      }
    },
    budget: {budgetAllocationType: '', budgetUnit: '', maxAmount: ''},
    campaignId: '',
    conversionCounting: {
      floodlightActivityConfigs: [
        {
          floodlightActivityId: '',
          postClickLookbackWindowDays: 0,
          postViewLookbackWindowDays: 0
        }
      ],
      postViewCountPercentageMillis: ''
    },
    creativeIds: [],
    displayName: '',
    entityStatus: '',
    excludeNewExchanges: false,
    flight: {
      dateRange: {endDate: {day: 0, month: 0, year: 0}, startDate: {}},
      flightDateType: ''
    },
    frequencyCap: {
      maxImpressions: 0,
      maxViews: 0,
      timeUnit: '',
      timeUnitCount: 0,
      unlimited: false
    },
    insertionOrderId: '',
    integrationDetails: {details: '', integrationCode: ''},
    lineItemId: '',
    lineItemType: '',
    mobileApp: {appId: '', displayName: '', platform: '', publisher: ''},
    name: '',
    pacing: {dailyMaxImpressions: '', dailyMaxMicros: '', pacingPeriod: '', pacingType: ''},
    partnerCosts: [
      {
        costType: '',
        feeAmount: '',
        feePercentageMillis: '',
        feeType: '',
        invoiceType: ''
      }
    ],
    partnerRevenueModel: {markupAmount: '', markupType: ''},
    reservationType: '',
    targetingExpansion: {excludeFirstPartyAudience: false, targetingExpansionLevel: ''},
    updateTime: '',
    warningMessages: [],
    youtubeAndPartnersSettings: {
      biddingStrategy: {
        adGroupEffectiveTargetCpaSource: '',
        adGroupEffectiveTargetCpaValue: '',
        type: '',
        value: ''
      },
      contentCategory: '',
      inventorySourceSettings: {
        includeYoutubeSearch: false,
        includeYoutubeVideoPartners: false,
        includeYoutubeVideos: false
      },
      leadFormId: '',
      linkedMerchantId: '',
      relatedVideoIds: [],
      targetFrequency: {targetCount: '', timeUnit: '', timeUnitCount: 0},
      thirdPartyMeasurementSettings: {
        brandLiftVendorConfigs: [{placementId: '', vendor: ''}],
        brandSafetyVendorConfigs: [{}],
        reachVendorConfigs: [{}],
        viewabilityVendorConfigs: [{}]
      },
      videoAdSequenceSettings: {
        minimumDuration: '',
        steps: [{adGroupId: '', interactionType: '', previousStepId: '', stepId: ''}]
      },
      viewFrequencyCap: {}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","bidStrategy":{"fixedBid":{"bidAmountMicros":""},"maximizeSpendAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalType":"","raiseBidForDeals":false},"performanceGoalAutoBid":{"customBiddingAlgorithmId":"","maxAverageCpmBidAmountMicros":"","performanceGoalAmountMicros":"","performanceGoalType":""}},"budget":{"budgetAllocationType":"","budgetUnit":"","maxAmount":""},"campaignId":"","conversionCounting":{"floodlightActivityConfigs":[{"floodlightActivityId":"","postClickLookbackWindowDays":0,"postViewLookbackWindowDays":0}],"postViewCountPercentageMillis":""},"creativeIds":[],"displayName":"","entityStatus":"","excludeNewExchanges":false,"flight":{"dateRange":{"endDate":{"day":0,"month":0,"year":0},"startDate":{}},"flightDateType":""},"frequencyCap":{"maxImpressions":0,"maxViews":0,"timeUnit":"","timeUnitCount":0,"unlimited":false},"insertionOrderId":"","integrationDetails":{"details":"","integrationCode":""},"lineItemId":"","lineItemType":"","mobileApp":{"appId":"","displayName":"","platform":"","publisher":""},"name":"","pacing":{"dailyMaxImpressions":"","dailyMaxMicros":"","pacingPeriod":"","pacingType":""},"partnerCosts":[{"costType":"","feeAmount":"","feePercentageMillis":"","feeType":"","invoiceType":""}],"partnerRevenueModel":{"markupAmount":"","markupType":""},"reservationType":"","targetingExpansion":{"excludeFirstPartyAudience":false,"targetingExpansionLevel":""},"updateTime":"","warningMessages":[],"youtubeAndPartnersSettings":{"biddingStrategy":{"adGroupEffectiveTargetCpaSource":"","adGroupEffectiveTargetCpaValue":"","type":"","value":""},"contentCategory":"","inventorySourceSettings":{"includeYoutubeSearch":false,"includeYoutubeVideoPartners":false,"includeYoutubeVideos":false},"leadFormId":"","linkedMerchantId":"","relatedVideoIds":[],"targetFrequency":{"targetCount":"","timeUnit":"","timeUnitCount":0},"thirdPartyMeasurementSettings":{"brandLiftVendorConfigs":[{"placementId":"","vendor":""}],"brandSafetyVendorConfigs":[{}],"reachVendorConfigs":[{}],"viewabilityVendorConfigs":[{}]},"videoAdSequenceSettings":{"minimumDuration":"","steps":[{"adGroupId":"","interactionType":"","previousStepId":"","stepId":""}]},"viewFrequencyCap":{}}}'
};

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 = @{ @"advertiserId": @"",
                              @"bidStrategy": @{ @"fixedBid": @{ @"bidAmountMicros": @"" }, @"maximizeSpendAutoBid": @{ @"customBiddingAlgorithmId": @"", @"maxAverageCpmBidAmountMicros": @"", @"performanceGoalType": @"", @"raiseBidForDeals": @NO }, @"performanceGoalAutoBid": @{ @"customBiddingAlgorithmId": @"", @"maxAverageCpmBidAmountMicros": @"", @"performanceGoalAmountMicros": @"", @"performanceGoalType": @"" } },
                              @"budget": @{ @"budgetAllocationType": @"", @"budgetUnit": @"", @"maxAmount": @"" },
                              @"campaignId": @"",
                              @"conversionCounting": @{ @"floodlightActivityConfigs": @[ @{ @"floodlightActivityId": @"", @"postClickLookbackWindowDays": @0, @"postViewLookbackWindowDays": @0 } ], @"postViewCountPercentageMillis": @"" },
                              @"creativeIds": @[  ],
                              @"displayName": @"",
                              @"entityStatus": @"",
                              @"excludeNewExchanges": @NO,
                              @"flight": @{ @"dateRange": @{ @"endDate": @{ @"day": @0, @"month": @0, @"year": @0 }, @"startDate": @{  } }, @"flightDateType": @"" },
                              @"frequencyCap": @{ @"maxImpressions": @0, @"maxViews": @0, @"timeUnit": @"", @"timeUnitCount": @0, @"unlimited": @NO },
                              @"insertionOrderId": @"",
                              @"integrationDetails": @{ @"details": @"", @"integrationCode": @"" },
                              @"lineItemId": @"",
                              @"lineItemType": @"",
                              @"mobileApp": @{ @"appId": @"", @"displayName": @"", @"platform": @"", @"publisher": @"" },
                              @"name": @"",
                              @"pacing": @{ @"dailyMaxImpressions": @"", @"dailyMaxMicros": @"", @"pacingPeriod": @"", @"pacingType": @"" },
                              @"partnerCosts": @[ @{ @"costType": @"", @"feeAmount": @"", @"feePercentageMillis": @"", @"feeType": @"", @"invoiceType": @"" } ],
                              @"partnerRevenueModel": @{ @"markupAmount": @"", @"markupType": @"" },
                              @"reservationType": @"",
                              @"targetingExpansion": @{ @"excludeFirstPartyAudience": @NO, @"targetingExpansionLevel": @"" },
                              @"updateTime": @"",
                              @"warningMessages": @[  ],
                              @"youtubeAndPartnersSettings": @{ @"biddingStrategy": @{ @"adGroupEffectiveTargetCpaSource": @"", @"adGroupEffectiveTargetCpaValue": @"", @"type": @"", @"value": @"" }, @"contentCategory": @"", @"inventorySourceSettings": @{ @"includeYoutubeSearch": @NO, @"includeYoutubeVideoPartners": @NO, @"includeYoutubeVideos": @NO }, @"leadFormId": @"", @"linkedMerchantId": @"", @"relatedVideoIds": @[  ], @"targetFrequency": @{ @"targetCount": @"", @"timeUnit": @"", @"timeUnitCount": @0 }, @"thirdPartyMeasurementSettings": @{ @"brandLiftVendorConfigs": @[ @{ @"placementId": @"", @"vendor": @"" } ], @"brandSafetyVendorConfigs": @[ @{  } ], @"reachVendorConfigs": @[ @{  } ], @"viewabilityVendorConfigs": @[ @{  } ] }, @"videoAdSequenceSettings": @{ @"minimumDuration": @"", @"steps": @[ @{ @"adGroupId": @"", @"interactionType": @"", @"previousStepId": @"", @"stepId": @"" } ] }, @"viewFrequencyCap": @{  } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId",
  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([
    'advertiserId' => '',
    'bidStrategy' => [
        'fixedBid' => [
                'bidAmountMicros' => ''
        ],
        'maximizeSpendAutoBid' => [
                'customBiddingAlgorithmId' => '',
                'maxAverageCpmBidAmountMicros' => '',
                'performanceGoalType' => '',
                'raiseBidForDeals' => null
        ],
        'performanceGoalAutoBid' => [
                'customBiddingAlgorithmId' => '',
                'maxAverageCpmBidAmountMicros' => '',
                'performanceGoalAmountMicros' => '',
                'performanceGoalType' => ''
        ]
    ],
    'budget' => [
        'budgetAllocationType' => '',
        'budgetUnit' => '',
        'maxAmount' => ''
    ],
    'campaignId' => '',
    'conversionCounting' => [
        'floodlightActivityConfigs' => [
                [
                                'floodlightActivityId' => '',
                                'postClickLookbackWindowDays' => 0,
                                'postViewLookbackWindowDays' => 0
                ]
        ],
        'postViewCountPercentageMillis' => ''
    ],
    'creativeIds' => [
        
    ],
    'displayName' => '',
    'entityStatus' => '',
    'excludeNewExchanges' => null,
    'flight' => [
        'dateRange' => [
                'endDate' => [
                                'day' => 0,
                                'month' => 0,
                                'year' => 0
                ],
                'startDate' => [
                                
                ]
        ],
        'flightDateType' => ''
    ],
    'frequencyCap' => [
        'maxImpressions' => 0,
        'maxViews' => 0,
        'timeUnit' => '',
        'timeUnitCount' => 0,
        'unlimited' => null
    ],
    'insertionOrderId' => '',
    'integrationDetails' => [
        'details' => '',
        'integrationCode' => ''
    ],
    'lineItemId' => '',
    'lineItemType' => '',
    'mobileApp' => [
        'appId' => '',
        'displayName' => '',
        'platform' => '',
        'publisher' => ''
    ],
    'name' => '',
    'pacing' => [
        'dailyMaxImpressions' => '',
        'dailyMaxMicros' => '',
        'pacingPeriod' => '',
        'pacingType' => ''
    ],
    'partnerCosts' => [
        [
                'costType' => '',
                'feeAmount' => '',
                'feePercentageMillis' => '',
                'feeType' => '',
                'invoiceType' => ''
        ]
    ],
    'partnerRevenueModel' => [
        'markupAmount' => '',
        'markupType' => ''
    ],
    'reservationType' => '',
    'targetingExpansion' => [
        'excludeFirstPartyAudience' => null,
        'targetingExpansionLevel' => ''
    ],
    'updateTime' => '',
    'warningMessages' => [
        
    ],
    'youtubeAndPartnersSettings' => [
        'biddingStrategy' => [
                'adGroupEffectiveTargetCpaSource' => '',
                'adGroupEffectiveTargetCpaValue' => '',
                'type' => '',
                'value' => ''
        ],
        'contentCategory' => '',
        'inventorySourceSettings' => [
                'includeYoutubeSearch' => null,
                'includeYoutubeVideoPartners' => null,
                'includeYoutubeVideos' => null
        ],
        'leadFormId' => '',
        'linkedMerchantId' => '',
        'relatedVideoIds' => [
                
        ],
        'targetFrequency' => [
                'targetCount' => '',
                'timeUnit' => '',
                'timeUnitCount' => 0
        ],
        'thirdPartyMeasurementSettings' => [
                'brandLiftVendorConfigs' => [
                                [
                                                                'placementId' => '',
                                                                'vendor' => ''
                                ]
                ],
                'brandSafetyVendorConfigs' => [
                                [
                                                                
                                ]
                ],
                'reachVendorConfigs' => [
                                [
                                                                
                                ]
                ],
                'viewabilityVendorConfigs' => [
                                [
                                                                
                                ]
                ]
        ],
        'videoAdSequenceSettings' => [
                'minimumDuration' => '',
                'steps' => [
                                [
                                                                'adGroupId' => '',
                                                                'interactionType' => '',
                                                                'previousStepId' => '',
                                                                'stepId' => ''
                                ]
                ]
        ],
        'viewFrequencyCap' => [
                
        ]
    ]
  ]),
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId', [
  'body' => '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'bidStrategy' => [
    'fixedBid' => [
        'bidAmountMicros' => ''
    ],
    'maximizeSpendAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalType' => '',
        'raiseBidForDeals' => null
    ],
    'performanceGoalAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalAmountMicros' => '',
        'performanceGoalType' => ''
    ]
  ],
  'budget' => [
    'budgetAllocationType' => '',
    'budgetUnit' => '',
    'maxAmount' => ''
  ],
  'campaignId' => '',
  'conversionCounting' => [
    'floodlightActivityConfigs' => [
        [
                'floodlightActivityId' => '',
                'postClickLookbackWindowDays' => 0,
                'postViewLookbackWindowDays' => 0
        ]
    ],
    'postViewCountPercentageMillis' => ''
  ],
  'creativeIds' => [
    
  ],
  'displayName' => '',
  'entityStatus' => '',
  'excludeNewExchanges' => null,
  'flight' => [
    'dateRange' => [
        'endDate' => [
                'day' => 0,
                'month' => 0,
                'year' => 0
        ],
        'startDate' => [
                
        ]
    ],
    'flightDateType' => ''
  ],
  'frequencyCap' => [
    'maxImpressions' => 0,
    'maxViews' => 0,
    'timeUnit' => '',
    'timeUnitCount' => 0,
    'unlimited' => null
  ],
  'insertionOrderId' => '',
  'integrationDetails' => [
    'details' => '',
    'integrationCode' => ''
  ],
  'lineItemId' => '',
  'lineItemType' => '',
  'mobileApp' => [
    'appId' => '',
    'displayName' => '',
    'platform' => '',
    'publisher' => ''
  ],
  'name' => '',
  'pacing' => [
    'dailyMaxImpressions' => '',
    'dailyMaxMicros' => '',
    'pacingPeriod' => '',
    'pacingType' => ''
  ],
  'partnerCosts' => [
    [
        'costType' => '',
        'feeAmount' => '',
        'feePercentageMillis' => '',
        'feeType' => '',
        'invoiceType' => ''
    ]
  ],
  'partnerRevenueModel' => [
    'markupAmount' => '',
    'markupType' => ''
  ],
  'reservationType' => '',
  'targetingExpansion' => [
    'excludeFirstPartyAudience' => null,
    'targetingExpansionLevel' => ''
  ],
  'updateTime' => '',
  'warningMessages' => [
    
  ],
  'youtubeAndPartnersSettings' => [
    'biddingStrategy' => [
        'adGroupEffectiveTargetCpaSource' => '',
        'adGroupEffectiveTargetCpaValue' => '',
        'type' => '',
        'value' => ''
    ],
    'contentCategory' => '',
    'inventorySourceSettings' => [
        'includeYoutubeSearch' => null,
        'includeYoutubeVideoPartners' => null,
        'includeYoutubeVideos' => null
    ],
    'leadFormId' => '',
    'linkedMerchantId' => '',
    'relatedVideoIds' => [
        
    ],
    'targetFrequency' => [
        'targetCount' => '',
        'timeUnit' => '',
        'timeUnitCount' => 0
    ],
    'thirdPartyMeasurementSettings' => [
        'brandLiftVendorConfigs' => [
                [
                                'placementId' => '',
                                'vendor' => ''
                ]
        ],
        'brandSafetyVendorConfigs' => [
                [
                                
                ]
        ],
        'reachVendorConfigs' => [
                [
                                
                ]
        ],
        'viewabilityVendorConfigs' => [
                [
                                
                ]
        ]
    ],
    'videoAdSequenceSettings' => [
        'minimumDuration' => '',
        'steps' => [
                [
                                'adGroupId' => '',
                                'interactionType' => '',
                                'previousStepId' => '',
                                'stepId' => ''
                ]
        ]
    ],
    'viewFrequencyCap' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'bidStrategy' => [
    'fixedBid' => [
        'bidAmountMicros' => ''
    ],
    'maximizeSpendAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalType' => '',
        'raiseBidForDeals' => null
    ],
    'performanceGoalAutoBid' => [
        'customBiddingAlgorithmId' => '',
        'maxAverageCpmBidAmountMicros' => '',
        'performanceGoalAmountMicros' => '',
        'performanceGoalType' => ''
    ]
  ],
  'budget' => [
    'budgetAllocationType' => '',
    'budgetUnit' => '',
    'maxAmount' => ''
  ],
  'campaignId' => '',
  'conversionCounting' => [
    'floodlightActivityConfigs' => [
        [
                'floodlightActivityId' => '',
                'postClickLookbackWindowDays' => 0,
                'postViewLookbackWindowDays' => 0
        ]
    ],
    'postViewCountPercentageMillis' => ''
  ],
  'creativeIds' => [
    
  ],
  'displayName' => '',
  'entityStatus' => '',
  'excludeNewExchanges' => null,
  'flight' => [
    'dateRange' => [
        'endDate' => [
                'day' => 0,
                'month' => 0,
                'year' => 0
        ],
        'startDate' => [
                
        ]
    ],
    'flightDateType' => ''
  ],
  'frequencyCap' => [
    'maxImpressions' => 0,
    'maxViews' => 0,
    'timeUnit' => '',
    'timeUnitCount' => 0,
    'unlimited' => null
  ],
  'insertionOrderId' => '',
  'integrationDetails' => [
    'details' => '',
    'integrationCode' => ''
  ],
  'lineItemId' => '',
  'lineItemType' => '',
  'mobileApp' => [
    'appId' => '',
    'displayName' => '',
    'platform' => '',
    'publisher' => ''
  ],
  'name' => '',
  'pacing' => [
    'dailyMaxImpressions' => '',
    'dailyMaxMicros' => '',
    'pacingPeriod' => '',
    'pacingType' => ''
  ],
  'partnerCosts' => [
    [
        'costType' => '',
        'feeAmount' => '',
        'feePercentageMillis' => '',
        'feeType' => '',
        'invoiceType' => ''
    ]
  ],
  'partnerRevenueModel' => [
    'markupAmount' => '',
    'markupType' => ''
  ],
  'reservationType' => '',
  'targetingExpansion' => [
    'excludeFirstPartyAudience' => null,
    'targetingExpansionLevel' => ''
  ],
  'updateTime' => '',
  'warningMessages' => [
    
  ],
  'youtubeAndPartnersSettings' => [
    'biddingStrategy' => [
        'adGroupEffectiveTargetCpaSource' => '',
        'adGroupEffectiveTargetCpaValue' => '',
        'type' => '',
        'value' => ''
    ],
    'contentCategory' => '',
    'inventorySourceSettings' => [
        'includeYoutubeSearch' => null,
        'includeYoutubeVideoPartners' => null,
        'includeYoutubeVideos' => null
    ],
    'leadFormId' => '',
    'linkedMerchantId' => '',
    'relatedVideoIds' => [
        
    ],
    'targetFrequency' => [
        'targetCount' => '',
        'timeUnit' => '',
        'timeUnitCount' => 0
    ],
    'thirdPartyMeasurementSettings' => [
        'brandLiftVendorConfigs' => [
                [
                                'placementId' => '',
                                'vendor' => ''
                ]
        ],
        'brandSafetyVendorConfigs' => [
                [
                                
                ]
        ],
        'reachVendorConfigs' => [
                [
                                
                ]
        ],
        'viewabilityVendorConfigs' => [
                [
                                
                ]
        ]
    ],
    'videoAdSequenceSettings' => [
        'minimumDuration' => '',
        'steps' => [
                [
                                'adGroupId' => '',
                                'interactionType' => '',
                                'previousStepId' => '',
                                'stepId' => ''
                ]
        ]
    ],
    'viewFrequencyCap' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId');
$request->setRequestMethod('PATCH');
$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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/v2/advertisers/:advertiserId/lineItems/:lineItemId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"

payload = {
    "advertiserId": "",
    "bidStrategy": {
        "fixedBid": { "bidAmountMicros": "" },
        "maximizeSpendAutoBid": {
            "customBiddingAlgorithmId": "",
            "maxAverageCpmBidAmountMicros": "",
            "performanceGoalType": "",
            "raiseBidForDeals": False
        },
        "performanceGoalAutoBid": {
            "customBiddingAlgorithmId": "",
            "maxAverageCpmBidAmountMicros": "",
            "performanceGoalAmountMicros": "",
            "performanceGoalType": ""
        }
    },
    "budget": {
        "budgetAllocationType": "",
        "budgetUnit": "",
        "maxAmount": ""
    },
    "campaignId": "",
    "conversionCounting": {
        "floodlightActivityConfigs": [
            {
                "floodlightActivityId": "",
                "postClickLookbackWindowDays": 0,
                "postViewLookbackWindowDays": 0
            }
        ],
        "postViewCountPercentageMillis": ""
    },
    "creativeIds": [],
    "displayName": "",
    "entityStatus": "",
    "excludeNewExchanges": False,
    "flight": {
        "dateRange": {
            "endDate": {
                "day": 0,
                "month": 0,
                "year": 0
            },
            "startDate": {}
        },
        "flightDateType": ""
    },
    "frequencyCap": {
        "maxImpressions": 0,
        "maxViews": 0,
        "timeUnit": "",
        "timeUnitCount": 0,
        "unlimited": False
    },
    "insertionOrderId": "",
    "integrationDetails": {
        "details": "",
        "integrationCode": ""
    },
    "lineItemId": "",
    "lineItemType": "",
    "mobileApp": {
        "appId": "",
        "displayName": "",
        "platform": "",
        "publisher": ""
    },
    "name": "",
    "pacing": {
        "dailyMaxImpressions": "",
        "dailyMaxMicros": "",
        "pacingPeriod": "",
        "pacingType": ""
    },
    "partnerCosts": [
        {
            "costType": "",
            "feeAmount": "",
            "feePercentageMillis": "",
            "feeType": "",
            "invoiceType": ""
        }
    ],
    "partnerRevenueModel": {
        "markupAmount": "",
        "markupType": ""
    },
    "reservationType": "",
    "targetingExpansion": {
        "excludeFirstPartyAudience": False,
        "targetingExpansionLevel": ""
    },
    "updateTime": "",
    "warningMessages": [],
    "youtubeAndPartnersSettings": {
        "biddingStrategy": {
            "adGroupEffectiveTargetCpaSource": "",
            "adGroupEffectiveTargetCpaValue": "",
            "type": "",
            "value": ""
        },
        "contentCategory": "",
        "inventorySourceSettings": {
            "includeYoutubeSearch": False,
            "includeYoutubeVideoPartners": False,
            "includeYoutubeVideos": False
        },
        "leadFormId": "",
        "linkedMerchantId": "",
        "relatedVideoIds": [],
        "targetFrequency": {
            "targetCount": "",
            "timeUnit": "",
            "timeUnitCount": 0
        },
        "thirdPartyMeasurementSettings": {
            "brandLiftVendorConfigs": [
                {
                    "placementId": "",
                    "vendor": ""
                }
            ],
            "brandSafetyVendorConfigs": [{}],
            "reachVendorConfigs": [{}],
            "viewabilityVendorConfigs": [{}]
        },
        "videoAdSequenceSettings": {
            "minimumDuration": "",
            "steps": [
                {
                    "adGroupId": "",
                    "interactionType": "",
                    "previousStepId": "",
                    "stepId": ""
                }
            ]
        },
        "viewFrequencyCap": {}
    }
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId"

payload <- "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")

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  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\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/v2/advertisers/:advertiserId/lineItems/:lineItemId') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"bidStrategy\": {\n    \"fixedBid\": {\n      \"bidAmountMicros\": \"\"\n    },\n    \"maximizeSpendAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalType\": \"\",\n      \"raiseBidForDeals\": false\n    },\n    \"performanceGoalAutoBid\": {\n      \"customBiddingAlgorithmId\": \"\",\n      \"maxAverageCpmBidAmountMicros\": \"\",\n      \"performanceGoalAmountMicros\": \"\",\n      \"performanceGoalType\": \"\"\n    }\n  },\n  \"budget\": {\n    \"budgetAllocationType\": \"\",\n    \"budgetUnit\": \"\",\n    \"maxAmount\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"conversionCounting\": {\n    \"floodlightActivityConfigs\": [\n      {\n        \"floodlightActivityId\": \"\",\n        \"postClickLookbackWindowDays\": 0,\n        \"postViewLookbackWindowDays\": 0\n      }\n    ],\n    \"postViewCountPercentageMillis\": \"\"\n  },\n  \"creativeIds\": [],\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"excludeNewExchanges\": false,\n  \"flight\": {\n    \"dateRange\": {\n      \"endDate\": {\n        \"day\": 0,\n        \"month\": 0,\n        \"year\": 0\n      },\n      \"startDate\": {}\n    },\n    \"flightDateType\": \"\"\n  },\n  \"frequencyCap\": {\n    \"maxImpressions\": 0,\n    \"maxViews\": 0,\n    \"timeUnit\": \"\",\n    \"timeUnitCount\": 0,\n    \"unlimited\": false\n  },\n  \"insertionOrderId\": \"\",\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"lineItemId\": \"\",\n  \"lineItemType\": \"\",\n  \"mobileApp\": {\n    \"appId\": \"\",\n    \"displayName\": \"\",\n    \"platform\": \"\",\n    \"publisher\": \"\"\n  },\n  \"name\": \"\",\n  \"pacing\": {\n    \"dailyMaxImpressions\": \"\",\n    \"dailyMaxMicros\": \"\",\n    \"pacingPeriod\": \"\",\n    \"pacingType\": \"\"\n  },\n  \"partnerCosts\": [\n    {\n      \"costType\": \"\",\n      \"feeAmount\": \"\",\n      \"feePercentageMillis\": \"\",\n      \"feeType\": \"\",\n      \"invoiceType\": \"\"\n    }\n  ],\n  \"partnerRevenueModel\": {\n    \"markupAmount\": \"\",\n    \"markupType\": \"\"\n  },\n  \"reservationType\": \"\",\n  \"targetingExpansion\": {\n    \"excludeFirstPartyAudience\": false,\n    \"targetingExpansionLevel\": \"\"\n  },\n  \"updateTime\": \"\",\n  \"warningMessages\": [],\n  \"youtubeAndPartnersSettings\": {\n    \"biddingStrategy\": {\n      \"adGroupEffectiveTargetCpaSource\": \"\",\n      \"adGroupEffectiveTargetCpaValue\": \"\",\n      \"type\": \"\",\n      \"value\": \"\"\n    },\n    \"contentCategory\": \"\",\n    \"inventorySourceSettings\": {\n      \"includeYoutubeSearch\": false,\n      \"includeYoutubeVideoPartners\": false,\n      \"includeYoutubeVideos\": false\n    },\n    \"leadFormId\": \"\",\n    \"linkedMerchantId\": \"\",\n    \"relatedVideoIds\": [],\n    \"targetFrequency\": {\n      \"targetCount\": \"\",\n      \"timeUnit\": \"\",\n      \"timeUnitCount\": 0\n    },\n    \"thirdPartyMeasurementSettings\": {\n      \"brandLiftVendorConfigs\": [\n        {\n          \"placementId\": \"\",\n          \"vendor\": \"\"\n        }\n      ],\n      \"brandSafetyVendorConfigs\": [\n        {}\n      ],\n      \"reachVendorConfigs\": [\n        {}\n      ],\n      \"viewabilityVendorConfigs\": [\n        {}\n      ]\n    },\n    \"videoAdSequenceSettings\": {\n      \"minimumDuration\": \"\",\n      \"steps\": [\n        {\n          \"adGroupId\": \"\",\n          \"interactionType\": \"\",\n          \"previousStepId\": \"\",\n          \"stepId\": \"\"\n        }\n      ]\n    },\n    \"viewFrequencyCap\": {}\n  }\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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId";

    let payload = json!({
        "advertiserId": "",
        "bidStrategy": json!({
            "fixedBid": json!({"bidAmountMicros": ""}),
            "maximizeSpendAutoBid": json!({
                "customBiddingAlgorithmId": "",
                "maxAverageCpmBidAmountMicros": "",
                "performanceGoalType": "",
                "raiseBidForDeals": false
            }),
            "performanceGoalAutoBid": json!({
                "customBiddingAlgorithmId": "",
                "maxAverageCpmBidAmountMicros": "",
                "performanceGoalAmountMicros": "",
                "performanceGoalType": ""
            })
        }),
        "budget": json!({
            "budgetAllocationType": "",
            "budgetUnit": "",
            "maxAmount": ""
        }),
        "campaignId": "",
        "conversionCounting": json!({
            "floodlightActivityConfigs": (
                json!({
                    "floodlightActivityId": "",
                    "postClickLookbackWindowDays": 0,
                    "postViewLookbackWindowDays": 0
                })
            ),
            "postViewCountPercentageMillis": ""
        }),
        "creativeIds": (),
        "displayName": "",
        "entityStatus": "",
        "excludeNewExchanges": false,
        "flight": json!({
            "dateRange": json!({
                "endDate": json!({
                    "day": 0,
                    "month": 0,
                    "year": 0
                }),
                "startDate": json!({})
            }),
            "flightDateType": ""
        }),
        "frequencyCap": json!({
            "maxImpressions": 0,
            "maxViews": 0,
            "timeUnit": "",
            "timeUnitCount": 0,
            "unlimited": false
        }),
        "insertionOrderId": "",
        "integrationDetails": json!({
            "details": "",
            "integrationCode": ""
        }),
        "lineItemId": "",
        "lineItemType": "",
        "mobileApp": json!({
            "appId": "",
            "displayName": "",
            "platform": "",
            "publisher": ""
        }),
        "name": "",
        "pacing": json!({
            "dailyMaxImpressions": "",
            "dailyMaxMicros": "",
            "pacingPeriod": "",
            "pacingType": ""
        }),
        "partnerCosts": (
            json!({
                "costType": "",
                "feeAmount": "",
                "feePercentageMillis": "",
                "feeType": "",
                "invoiceType": ""
            })
        ),
        "partnerRevenueModel": json!({
            "markupAmount": "",
            "markupType": ""
        }),
        "reservationType": "",
        "targetingExpansion": json!({
            "excludeFirstPartyAudience": false,
            "targetingExpansionLevel": ""
        }),
        "updateTime": "",
        "warningMessages": (),
        "youtubeAndPartnersSettings": json!({
            "biddingStrategy": json!({
                "adGroupEffectiveTargetCpaSource": "",
                "adGroupEffectiveTargetCpaValue": "",
                "type": "",
                "value": ""
            }),
            "contentCategory": "",
            "inventorySourceSettings": json!({
                "includeYoutubeSearch": false,
                "includeYoutubeVideoPartners": false,
                "includeYoutubeVideos": false
            }),
            "leadFormId": "",
            "linkedMerchantId": "",
            "relatedVideoIds": (),
            "targetFrequency": json!({
                "targetCount": "",
                "timeUnit": "",
                "timeUnitCount": 0
            }),
            "thirdPartyMeasurementSettings": json!({
                "brandLiftVendorConfigs": (
                    json!({
                        "placementId": "",
                        "vendor": ""
                    })
                ),
                "brandSafetyVendorConfigs": (json!({})),
                "reachVendorConfigs": (json!({})),
                "viewabilityVendorConfigs": (json!({}))
            }),
            "videoAdSequenceSettings": json!({
                "minimumDuration": "",
                "steps": (
                    json!({
                        "adGroupId": "",
                        "interactionType": "",
                        "previousStepId": "",
                        "stepId": ""
                    })
                )
            }),
            "viewFrequencyCap": json!({})
        })
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}'
echo '{
  "advertiserId": "",
  "bidStrategy": {
    "fixedBid": {
      "bidAmountMicros": ""
    },
    "maximizeSpendAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    },
    "performanceGoalAutoBid": {
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    }
  },
  "budget": {
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  },
  "campaignId": "",
  "conversionCounting": {
    "floodlightActivityConfigs": [
      {
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      }
    ],
    "postViewCountPercentageMillis": ""
  },
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": {
    "dateRange": {
      "endDate": {
        "day": 0,
        "month": 0,
        "year": 0
      },
      "startDate": {}
    },
    "flightDateType": ""
  },
  "frequencyCap": {
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  },
  "insertionOrderId": "",
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": {
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  },
  "name": "",
  "pacing": {
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  },
  "partnerCosts": [
    {
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    }
  ],
  "partnerRevenueModel": {
    "markupAmount": "",
    "markupType": ""
  },
  "reservationType": "",
  "targetingExpansion": {
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  },
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": {
    "biddingStrategy": {
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    },
    "contentCategory": "",
    "inventorySourceSettings": {
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    },
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": {
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    },
    "thirdPartyMeasurementSettings": {
      "brandLiftVendorConfigs": [
        {
          "placementId": "",
          "vendor": ""
        }
      ],
      "brandSafetyVendorConfigs": [
        {}
      ],
      "reachVendorConfigs": [
        {}
      ],
      "viewabilityVendorConfigs": [
        {}
      ]
    },
    "videoAdSequenceSettings": {
      "minimumDuration": "",
      "steps": [
        {
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        }
      ]
    },
    "viewFrequencyCap": {}
  }
}' |  \
  http PATCH {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "bidStrategy": {\n    "fixedBid": {\n      "bidAmountMicros": ""\n    },\n    "maximizeSpendAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalType": "",\n      "raiseBidForDeals": false\n    },\n    "performanceGoalAutoBid": {\n      "customBiddingAlgorithmId": "",\n      "maxAverageCpmBidAmountMicros": "",\n      "performanceGoalAmountMicros": "",\n      "performanceGoalType": ""\n    }\n  },\n  "budget": {\n    "budgetAllocationType": "",\n    "budgetUnit": "",\n    "maxAmount": ""\n  },\n  "campaignId": "",\n  "conversionCounting": {\n    "floodlightActivityConfigs": [\n      {\n        "floodlightActivityId": "",\n        "postClickLookbackWindowDays": 0,\n        "postViewLookbackWindowDays": 0\n      }\n    ],\n    "postViewCountPercentageMillis": ""\n  },\n  "creativeIds": [],\n  "displayName": "",\n  "entityStatus": "",\n  "excludeNewExchanges": false,\n  "flight": {\n    "dateRange": {\n      "endDate": {\n        "day": 0,\n        "month": 0,\n        "year": 0\n      },\n      "startDate": {}\n    },\n    "flightDateType": ""\n  },\n  "frequencyCap": {\n    "maxImpressions": 0,\n    "maxViews": 0,\n    "timeUnit": "",\n    "timeUnitCount": 0,\n    "unlimited": false\n  },\n  "insertionOrderId": "",\n  "integrationDetails": {\n    "details": "",\n    "integrationCode": ""\n  },\n  "lineItemId": "",\n  "lineItemType": "",\n  "mobileApp": {\n    "appId": "",\n    "displayName": "",\n    "platform": "",\n    "publisher": ""\n  },\n  "name": "",\n  "pacing": {\n    "dailyMaxImpressions": "",\n    "dailyMaxMicros": "",\n    "pacingPeriod": "",\n    "pacingType": ""\n  },\n  "partnerCosts": [\n    {\n      "costType": "",\n      "feeAmount": "",\n      "feePercentageMillis": "",\n      "feeType": "",\n      "invoiceType": ""\n    }\n  ],\n  "partnerRevenueModel": {\n    "markupAmount": "",\n    "markupType": ""\n  },\n  "reservationType": "",\n  "targetingExpansion": {\n    "excludeFirstPartyAudience": false,\n    "targetingExpansionLevel": ""\n  },\n  "updateTime": "",\n  "warningMessages": [],\n  "youtubeAndPartnersSettings": {\n    "biddingStrategy": {\n      "adGroupEffectiveTargetCpaSource": "",\n      "adGroupEffectiveTargetCpaValue": "",\n      "type": "",\n      "value": ""\n    },\n    "contentCategory": "",\n    "inventorySourceSettings": {\n      "includeYoutubeSearch": false,\n      "includeYoutubeVideoPartners": false,\n      "includeYoutubeVideos": false\n    },\n    "leadFormId": "",\n    "linkedMerchantId": "",\n    "relatedVideoIds": [],\n    "targetFrequency": {\n      "targetCount": "",\n      "timeUnit": "",\n      "timeUnitCount": 0\n    },\n    "thirdPartyMeasurementSettings": {\n      "brandLiftVendorConfigs": [\n        {\n          "placementId": "",\n          "vendor": ""\n        }\n      ],\n      "brandSafetyVendorConfigs": [\n        {}\n      ],\n      "reachVendorConfigs": [\n        {}\n      ],\n      "viewabilityVendorConfigs": [\n        {}\n      ]\n    },\n    "videoAdSequenceSettings": {\n      "minimumDuration": "",\n      "steps": [\n        {\n          "adGroupId": "",\n          "interactionType": "",\n          "previousStepId": "",\n          "stepId": ""\n        }\n      ]\n    },\n    "viewFrequencyCap": {}\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "bidStrategy": [
    "fixedBid": ["bidAmountMicros": ""],
    "maximizeSpendAutoBid": [
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalType": "",
      "raiseBidForDeals": false
    ],
    "performanceGoalAutoBid": [
      "customBiddingAlgorithmId": "",
      "maxAverageCpmBidAmountMicros": "",
      "performanceGoalAmountMicros": "",
      "performanceGoalType": ""
    ]
  ],
  "budget": [
    "budgetAllocationType": "",
    "budgetUnit": "",
    "maxAmount": ""
  ],
  "campaignId": "",
  "conversionCounting": [
    "floodlightActivityConfigs": [
      [
        "floodlightActivityId": "",
        "postClickLookbackWindowDays": 0,
        "postViewLookbackWindowDays": 0
      ]
    ],
    "postViewCountPercentageMillis": ""
  ],
  "creativeIds": [],
  "displayName": "",
  "entityStatus": "",
  "excludeNewExchanges": false,
  "flight": [
    "dateRange": [
      "endDate": [
        "day": 0,
        "month": 0,
        "year": 0
      ],
      "startDate": []
    ],
    "flightDateType": ""
  ],
  "frequencyCap": [
    "maxImpressions": 0,
    "maxViews": 0,
    "timeUnit": "",
    "timeUnitCount": 0,
    "unlimited": false
  ],
  "insertionOrderId": "",
  "integrationDetails": [
    "details": "",
    "integrationCode": ""
  ],
  "lineItemId": "",
  "lineItemType": "",
  "mobileApp": [
    "appId": "",
    "displayName": "",
    "platform": "",
    "publisher": ""
  ],
  "name": "",
  "pacing": [
    "dailyMaxImpressions": "",
    "dailyMaxMicros": "",
    "pacingPeriod": "",
    "pacingType": ""
  ],
  "partnerCosts": [
    [
      "costType": "",
      "feeAmount": "",
      "feePercentageMillis": "",
      "feeType": "",
      "invoiceType": ""
    ]
  ],
  "partnerRevenueModel": [
    "markupAmount": "",
    "markupType": ""
  ],
  "reservationType": "",
  "targetingExpansion": [
    "excludeFirstPartyAudience": false,
    "targetingExpansionLevel": ""
  ],
  "updateTime": "",
  "warningMessages": [],
  "youtubeAndPartnersSettings": [
    "biddingStrategy": [
      "adGroupEffectiveTargetCpaSource": "",
      "adGroupEffectiveTargetCpaValue": "",
      "type": "",
      "value": ""
    ],
    "contentCategory": "",
    "inventorySourceSettings": [
      "includeYoutubeSearch": false,
      "includeYoutubeVideoPartners": false,
      "includeYoutubeVideos": false
    ],
    "leadFormId": "",
    "linkedMerchantId": "",
    "relatedVideoIds": [],
    "targetFrequency": [
      "targetCount": "",
      "timeUnit": "",
      "timeUnitCount": 0
    ],
    "thirdPartyMeasurementSettings": [
      "brandLiftVendorConfigs": [
        [
          "placementId": "",
          "vendor": ""
        ]
      ],
      "brandSafetyVendorConfigs": [[]],
      "reachVendorConfigs": [[]],
      "viewabilityVendorConfigs": [[]]
    ],
    "videoAdSequenceSettings": [
      "minimumDuration": "",
      "steps": [
        [
          "adGroupId": "",
          "interactionType": "",
          "previousStepId": "",
          "stepId": ""
        ]
      ]
    ],
    "viewFrequencyCap": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId")! 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()
POST displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.create
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions
QUERY PARAMS

advertiserId
lineItemId
targetingType
BODY json

{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions");

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  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions" {:content-type :json
                                                                                                                                                      :form-params {:ageRangeDetails {:ageRange ""}
                                                                                                                                                                    :appCategoryDetails {:displayName ""
                                                                                                                                                                                         :negative false
                                                                                                                                                                                         :targetingOptionId ""}
                                                                                                                                                                    :appDetails {:appId ""
                                                                                                                                                                                 :appPlatform ""
                                                                                                                                                                                 :displayName ""
                                                                                                                                                                                 :negative false}
                                                                                                                                                                    :assignedTargetingOptionId ""
                                                                                                                                                                    :assignedTargetingOptionIdAlias ""
                                                                                                                                                                    :audienceGroupDetails {:excludedFirstAndThirdPartyAudienceGroup {:settings [{:firstAndThirdPartyAudienceId ""
                                                                                                                                                                                                                                                 :recency ""}]}
                                                                                                                                                                                           :excludedGoogleAudienceGroup {:settings [{:googleAudienceId ""}]}
                                                                                                                                                                                           :includedCombinedAudienceGroup {:settings [{:combinedAudienceId ""}]}
                                                                                                                                                                                           :includedCustomListGroup {:settings [{:customListId ""}]}
                                                                                                                                                                                           :includedFirstAndThirdPartyAudienceGroups [{}]
                                                                                                                                                                                           :includedGoogleAudienceGroup {}}
                                                                                                                                                                    :audioContentTypeDetails {:audioContentType ""}
                                                                                                                                                                    :authorizedSellerStatusDetails {:authorizedSellerStatus ""
                                                                                                                                                                                                    :targetingOptionId ""}
                                                                                                                                                                    :browserDetails {:displayName ""
                                                                                                                                                                                     :negative false
                                                                                                                                                                                     :targetingOptionId ""}
                                                                                                                                                                    :businessChainDetails {:displayName ""
                                                                                                                                                                                           :proximityRadiusAmount ""
                                                                                                                                                                                           :proximityRadiusUnit ""
                                                                                                                                                                                           :targetingOptionId ""}
                                                                                                                                                                    :carrierAndIspDetails {:displayName ""
                                                                                                                                                                                           :negative false
                                                                                                                                                                                           :targetingOptionId ""}
                                                                                                                                                                    :categoryDetails {:displayName ""
                                                                                                                                                                                      :negative false
                                                                                                                                                                                      :targetingOptionId ""}
                                                                                                                                                                    :channelDetails {:channelId ""
                                                                                                                                                                                     :negative false}
                                                                                                                                                                    :contentDurationDetails {:contentDuration ""
                                                                                                                                                                                             :targetingOptionId ""}
                                                                                                                                                                    :contentGenreDetails {:displayName ""
                                                                                                                                                                                          :negative false
                                                                                                                                                                                          :targetingOptionId ""}
                                                                                                                                                                    :contentInstreamPositionDetails {:adType ""
                                                                                                                                                                                                     :contentInstreamPosition ""}
                                                                                                                                                                    :contentOutstreamPositionDetails {:adType ""
                                                                                                                                                                                                      :contentOutstreamPosition ""}
                                                                                                                                                                    :contentStreamTypeDetails {:contentStreamType ""
                                                                                                                                                                                               :targetingOptionId ""}
                                                                                                                                                                    :dayAndTimeDetails {:dayOfWeek ""
                                                                                                                                                                                        :endHour 0
                                                                                                                                                                                        :startHour 0
                                                                                                                                                                                        :timeZoneResolution ""}
                                                                                                                                                                    :deviceMakeModelDetails {:displayName ""
                                                                                                                                                                                             :negative false
                                                                                                                                                                                             :targetingOptionId ""}
                                                                                                                                                                    :deviceTypeDetails {:deviceType ""
                                                                                                                                                                                        :youtubeAndPartnersBidMultiplier ""}
                                                                                                                                                                    :digitalContentLabelExclusionDetails {:excludedContentRatingTier ""}
                                                                                                                                                                    :environmentDetails {:environment ""}
                                                                                                                                                                    :exchangeDetails {:exchange ""}
                                                                                                                                                                    :genderDetails {:gender ""}
                                                                                                                                                                    :geoRegionDetails {:displayName ""
                                                                                                                                                                                       :geoRegionType ""
                                                                                                                                                                                       :negative false
                                                                                                                                                                                       :targetingOptionId ""}
                                                                                                                                                                    :householdIncomeDetails {:householdIncome ""}
                                                                                                                                                                    :inheritance ""
                                                                                                                                                                    :inventorySourceDetails {:inventorySourceId ""}
                                                                                                                                                                    :inventorySourceGroupDetails {:inventorySourceGroupId ""}
                                                                                                                                                                    :keywordDetails {:keyword ""
                                                                                                                                                                                     :negative false}
                                                                                                                                                                    :languageDetails {:displayName ""
                                                                                                                                                                                      :negative false
                                                                                                                                                                                      :targetingOptionId ""}
                                                                                                                                                                    :name ""
                                                                                                                                                                    :nativeContentPositionDetails {:contentPosition ""}
                                                                                                                                                                    :negativeKeywordListDetails {:negativeKeywordListId ""}
                                                                                                                                                                    :omidDetails {:omid ""}
                                                                                                                                                                    :onScreenPositionDetails {:adType ""
                                                                                                                                                                                              :onScreenPosition ""
                                                                                                                                                                                              :targetingOptionId ""}
                                                                                                                                                                    :operatingSystemDetails {:displayName ""
                                                                                                                                                                                             :negative false
                                                                                                                                                                                             :targetingOptionId ""}
                                                                                                                                                                    :parentalStatusDetails {:parentalStatus ""}
                                                                                                                                                                    :poiDetails {:displayName ""
                                                                                                                                                                                 :latitude ""
                                                                                                                                                                                 :longitude ""
                                                                                                                                                                                 :proximityRadiusAmount ""
                                                                                                                                                                                 :proximityRadiusUnit ""
                                                                                                                                                                                 :targetingOptionId ""}
                                                                                                                                                                    :proximityLocationListDetails {:proximityLocationListId ""
                                                                                                                                                                                                   :proximityRadius ""
                                                                                                                                                                                                   :proximityRadiusUnit ""}
                                                                                                                                                                    :regionalLocationListDetails {:negative false
                                                                                                                                                                                                  :regionalLocationListId ""}
                                                                                                                                                                    :sensitiveCategoryExclusionDetails {:excludedSensitiveCategory ""}
                                                                                                                                                                    :sessionPositionDetails {:sessionPosition ""}
                                                                                                                                                                    :subExchangeDetails {:targetingOptionId ""}
                                                                                                                                                                    :targetingType ""
                                                                                                                                                                    :thirdPartyVerifierDetails {:adloox {:excludedAdlooxCategories []}
                                                                                                                                                                                                :doubleVerify {:appStarRating {:avoidInsufficientStarRating false
                                                                                                                                                                                                                               :avoidedStarRating ""}
                                                                                                                                                                                                               :avoidedAgeRatings []
                                                                                                                                                                                                               :brandSafetyCategories {:avoidUnknownBrandSafetyCategory false
                                                                                                                                                                                                                                       :avoidedHighSeverityCategories []
                                                                                                                                                                                                                                       :avoidedMediumSeverityCategories []}
                                                                                                                                                                                                               :customSegmentId ""
                                                                                                                                                                                                               :displayViewability {:iab ""
                                                                                                                                                                                                                                    :viewableDuring ""}
                                                                                                                                                                                                               :fraudInvalidTraffic {:avoidInsufficientOption false
                                                                                                                                                                                                                                     :avoidedFraudOption ""}
                                                                                                                                                                                                               :videoViewability {:playerImpressionRate ""
                                                                                                                                                                                                                                  :videoIab ""
                                                                                                                                                                                                                                  :videoViewableRate ""}}
                                                                                                                                                                                                :integralAdScience {:customSegmentId []
                                                                                                                                                                                                                    :displayViewability ""
                                                                                                                                                                                                                    :excludeUnrateable false
                                                                                                                                                                                                                    :excludedAdFraudRisk ""
                                                                                                                                                                                                                    :excludedAdultRisk ""
                                                                                                                                                                                                                    :excludedAlcoholRisk ""
                                                                                                                                                                                                                    :excludedDrugsRisk ""
                                                                                                                                                                                                                    :excludedGamblingRisk ""
                                                                                                                                                                                                                    :excludedHateSpeechRisk ""
                                                                                                                                                                                                                    :excludedIllegalDownloadsRisk ""
                                                                                                                                                                                                                    :excludedOffensiveLanguageRisk ""
                                                                                                                                                                                                                    :excludedViolenceRisk ""
                                                                                                                                                                                                                    :traqScoreOption ""
                                                                                                                                                                                                                    :videoViewability ""}}
                                                                                                                                                                    :urlDetails {:negative false
                                                                                                                                                                                 :url ""}
                                                                                                                                                                    :userRewardedContentDetails {:targetingOptionId ""
                                                                                                                                                                                                 :userRewardedContent ""}
                                                                                                                                                                    :videoPlayerSizeDetails {:videoPlayerSize ""}
                                                                                                                                                                    :viewabilityDetails {:viewability ""}
                                                                                                                                                                    :youtubeChannelDetails {:channelId ""
                                                                                                                                                                                            :negative false}
                                                                                                                                                                    :youtubeVideoDetails {:negative false
                                                                                                                                                                                          :videoId ""}}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"),
    Content = new StringContent("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"

	payload := strings.NewReader("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 6099

{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")
  .header("content-type", "application/json")
  .body("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  ageRangeDetails: {
    ageRange: ''
  },
  appCategoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  appDetails: {
    appId: '',
    appPlatform: '',
    displayName: '',
    negative: false
  },
  assignedTargetingOptionId: '',
  assignedTargetingOptionIdAlias: '',
  audienceGroupDetails: {
    excludedFirstAndThirdPartyAudienceGroup: {
      settings: [
        {
          firstAndThirdPartyAudienceId: '',
          recency: ''
        }
      ]
    },
    excludedGoogleAudienceGroup: {
      settings: [
        {
          googleAudienceId: ''
        }
      ]
    },
    includedCombinedAudienceGroup: {
      settings: [
        {
          combinedAudienceId: ''
        }
      ]
    },
    includedCustomListGroup: {
      settings: [
        {
          customListId: ''
        }
      ]
    },
    includedFirstAndThirdPartyAudienceGroups: [
      {}
    ],
    includedGoogleAudienceGroup: {}
  },
  audioContentTypeDetails: {
    audioContentType: ''
  },
  authorizedSellerStatusDetails: {
    authorizedSellerStatus: '',
    targetingOptionId: ''
  },
  browserDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  businessChainDetails: {
    displayName: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  carrierAndIspDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  categoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  channelDetails: {
    channelId: '',
    negative: false
  },
  contentDurationDetails: {
    contentDuration: '',
    targetingOptionId: ''
  },
  contentGenreDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  contentInstreamPositionDetails: {
    adType: '',
    contentInstreamPosition: ''
  },
  contentOutstreamPositionDetails: {
    adType: '',
    contentOutstreamPosition: ''
  },
  contentStreamTypeDetails: {
    contentStreamType: '',
    targetingOptionId: ''
  },
  dayAndTimeDetails: {
    dayOfWeek: '',
    endHour: 0,
    startHour: 0,
    timeZoneResolution: ''
  },
  deviceMakeModelDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  deviceTypeDetails: {
    deviceType: '',
    youtubeAndPartnersBidMultiplier: ''
  },
  digitalContentLabelExclusionDetails: {
    excludedContentRatingTier: ''
  },
  environmentDetails: {
    environment: ''
  },
  exchangeDetails: {
    exchange: ''
  },
  genderDetails: {
    gender: ''
  },
  geoRegionDetails: {
    displayName: '',
    geoRegionType: '',
    negative: false,
    targetingOptionId: ''
  },
  householdIncomeDetails: {
    householdIncome: ''
  },
  inheritance: '',
  inventorySourceDetails: {
    inventorySourceId: ''
  },
  inventorySourceGroupDetails: {
    inventorySourceGroupId: ''
  },
  keywordDetails: {
    keyword: '',
    negative: false
  },
  languageDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  name: '',
  nativeContentPositionDetails: {
    contentPosition: ''
  },
  negativeKeywordListDetails: {
    negativeKeywordListId: ''
  },
  omidDetails: {
    omid: ''
  },
  onScreenPositionDetails: {
    adType: '',
    onScreenPosition: '',
    targetingOptionId: ''
  },
  operatingSystemDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  parentalStatusDetails: {
    parentalStatus: ''
  },
  poiDetails: {
    displayName: '',
    latitude: '',
    longitude: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  proximityLocationListDetails: {
    proximityLocationListId: '',
    proximityRadius: '',
    proximityRadiusUnit: ''
  },
  regionalLocationListDetails: {
    negative: false,
    regionalLocationListId: ''
  },
  sensitiveCategoryExclusionDetails: {
    excludedSensitiveCategory: ''
  },
  sessionPositionDetails: {
    sessionPosition: ''
  },
  subExchangeDetails: {
    targetingOptionId: ''
  },
  targetingType: '',
  thirdPartyVerifierDetails: {
    adloox: {
      excludedAdlooxCategories: []
    },
    doubleVerify: {
      appStarRating: {
        avoidInsufficientStarRating: false,
        avoidedStarRating: ''
      },
      avoidedAgeRatings: [],
      brandSafetyCategories: {
        avoidUnknownBrandSafetyCategory: false,
        avoidedHighSeverityCategories: [],
        avoidedMediumSeverityCategories: []
      },
      customSegmentId: '',
      displayViewability: {
        iab: '',
        viewableDuring: ''
      },
      fraudInvalidTraffic: {
        avoidInsufficientOption: false,
        avoidedFraudOption: ''
      },
      videoViewability: {
        playerImpressionRate: '',
        videoIab: '',
        videoViewableRate: ''
      }
    },
    integralAdScience: {
      customSegmentId: [],
      displayViewability: '',
      excludeUnrateable: false,
      excludedAdFraudRisk: '',
      excludedAdultRisk: '',
      excludedAlcoholRisk: '',
      excludedDrugsRisk: '',
      excludedGamblingRisk: '',
      excludedHateSpeechRisk: '',
      excludedIllegalDownloadsRisk: '',
      excludedOffensiveLanguageRisk: '',
      excludedViolenceRisk: '',
      traqScoreOption: '',
      videoViewability: ''
    }
  },
  urlDetails: {
    negative: false,
    url: ''
  },
  userRewardedContentDetails: {
    targetingOptionId: '',
    userRewardedContent: ''
  },
  videoPlayerSizeDetails: {
    videoPlayerSize: ''
  },
  viewabilityDetails: {
    viewability: ''
  },
  youtubeChannelDetails: {
    channelId: '',
    negative: false
  },
  youtubeVideoDetails: {
    negative: false,
    videoId: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    ageRangeDetails: {ageRange: ''},
    appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
    assignedTargetingOptionId: '',
    assignedTargetingOptionIdAlias: '',
    audienceGroupDetails: {
      excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
      excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
      includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
      includedCustomListGroup: {settings: [{customListId: ''}]},
      includedFirstAndThirdPartyAudienceGroups: [{}],
      includedGoogleAudienceGroup: {}
    },
    audioContentTypeDetails: {audioContentType: ''},
    authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
    browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
    businessChainDetails: {
      displayName: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
    categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    channelDetails: {channelId: '', negative: false},
    contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
    contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
    contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
    contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
    contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
    dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
    deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
    deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
    digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
    environmentDetails: {environment: ''},
    exchangeDetails: {exchange: ''},
    genderDetails: {gender: ''},
    geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
    householdIncomeDetails: {householdIncome: ''},
    inheritance: '',
    inventorySourceDetails: {inventorySourceId: ''},
    inventorySourceGroupDetails: {inventorySourceGroupId: ''},
    keywordDetails: {keyword: '', negative: false},
    languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
    name: '',
    nativeContentPositionDetails: {contentPosition: ''},
    negativeKeywordListDetails: {negativeKeywordListId: ''},
    omidDetails: {omid: ''},
    onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
    operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
    parentalStatusDetails: {parentalStatus: ''},
    poiDetails: {
      displayName: '',
      latitude: '',
      longitude: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
    regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
    sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
    sessionPositionDetails: {sessionPosition: ''},
    subExchangeDetails: {targetingOptionId: ''},
    targetingType: '',
    thirdPartyVerifierDetails: {
      adloox: {excludedAdlooxCategories: []},
      doubleVerify: {
        appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
        avoidedAgeRatings: [],
        brandSafetyCategories: {
          avoidUnknownBrandSafetyCategory: false,
          avoidedHighSeverityCategories: [],
          avoidedMediumSeverityCategories: []
        },
        customSegmentId: '',
        displayViewability: {iab: '', viewableDuring: ''},
        fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
        videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
      },
      integralAdScience: {
        customSegmentId: [],
        displayViewability: '',
        excludeUnrateable: false,
        excludedAdFraudRisk: '',
        excludedAdultRisk: '',
        excludedAlcoholRisk: '',
        excludedDrugsRisk: '',
        excludedGamblingRisk: '',
        excludedHateSpeechRisk: '',
        excludedIllegalDownloadsRisk: '',
        excludedOffensiveLanguageRisk: '',
        excludedViolenceRisk: '',
        traqScoreOption: '',
        videoViewability: ''
      }
    },
    urlDetails: {negative: false, url: ''},
    userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
    videoPlayerSizeDetails: {videoPlayerSize: ''},
    viewabilityDetails: {viewability: ''},
    youtubeChannelDetails: {channelId: '', negative: false},
    youtubeVideoDetails: {negative: false, videoId: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}'
};

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "ageRangeDetails": {\n    "ageRange": ""\n  },\n  "appCategoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "appDetails": {\n    "appId": "",\n    "appPlatform": "",\n    "displayName": "",\n    "negative": false\n  },\n  "assignedTargetingOptionId": "",\n  "assignedTargetingOptionIdAlias": "",\n  "audienceGroupDetails": {\n    "excludedFirstAndThirdPartyAudienceGroup": {\n      "settings": [\n        {\n          "firstAndThirdPartyAudienceId": "",\n          "recency": ""\n        }\n      ]\n    },\n    "excludedGoogleAudienceGroup": {\n      "settings": [\n        {\n          "googleAudienceId": ""\n        }\n      ]\n    },\n    "includedCombinedAudienceGroup": {\n      "settings": [\n        {\n          "combinedAudienceId": ""\n        }\n      ]\n    },\n    "includedCustomListGroup": {\n      "settings": [\n        {\n          "customListId": ""\n        }\n      ]\n    },\n    "includedFirstAndThirdPartyAudienceGroups": [\n      {}\n    ],\n    "includedGoogleAudienceGroup": {}\n  },\n  "audioContentTypeDetails": {\n    "audioContentType": ""\n  },\n  "authorizedSellerStatusDetails": {\n    "authorizedSellerStatus": "",\n    "targetingOptionId": ""\n  },\n  "browserDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "businessChainDetails": {\n    "displayName": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "carrierAndIspDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "categoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "channelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "contentDurationDetails": {\n    "contentDuration": "",\n    "targetingOptionId": ""\n  },\n  "contentGenreDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "contentInstreamPositionDetails": {\n    "adType": "",\n    "contentInstreamPosition": ""\n  },\n  "contentOutstreamPositionDetails": {\n    "adType": "",\n    "contentOutstreamPosition": ""\n  },\n  "contentStreamTypeDetails": {\n    "contentStreamType": "",\n    "targetingOptionId": ""\n  },\n  "dayAndTimeDetails": {\n    "dayOfWeek": "",\n    "endHour": 0,\n    "startHour": 0,\n    "timeZoneResolution": ""\n  },\n  "deviceMakeModelDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "deviceTypeDetails": {\n    "deviceType": "",\n    "youtubeAndPartnersBidMultiplier": ""\n  },\n  "digitalContentLabelExclusionDetails": {\n    "excludedContentRatingTier": ""\n  },\n  "environmentDetails": {\n    "environment": ""\n  },\n  "exchangeDetails": {\n    "exchange": ""\n  },\n  "genderDetails": {\n    "gender": ""\n  },\n  "geoRegionDetails": {\n    "displayName": "",\n    "geoRegionType": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "householdIncomeDetails": {\n    "householdIncome": ""\n  },\n  "inheritance": "",\n  "inventorySourceDetails": {\n    "inventorySourceId": ""\n  },\n  "inventorySourceGroupDetails": {\n    "inventorySourceGroupId": ""\n  },\n  "keywordDetails": {\n    "keyword": "",\n    "negative": false\n  },\n  "languageDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "name": "",\n  "nativeContentPositionDetails": {\n    "contentPosition": ""\n  },\n  "negativeKeywordListDetails": {\n    "negativeKeywordListId": ""\n  },\n  "omidDetails": {\n    "omid": ""\n  },\n  "onScreenPositionDetails": {\n    "adType": "",\n    "onScreenPosition": "",\n    "targetingOptionId": ""\n  },\n  "operatingSystemDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "parentalStatusDetails": {\n    "parentalStatus": ""\n  },\n  "poiDetails": {\n    "displayName": "",\n    "latitude": "",\n    "longitude": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "proximityLocationListDetails": {\n    "proximityLocationListId": "",\n    "proximityRadius": "",\n    "proximityRadiusUnit": ""\n  },\n  "regionalLocationListDetails": {\n    "negative": false,\n    "regionalLocationListId": ""\n  },\n  "sensitiveCategoryExclusionDetails": {\n    "excludedSensitiveCategory": ""\n  },\n  "sessionPositionDetails": {\n    "sessionPosition": ""\n  },\n  "subExchangeDetails": {\n    "targetingOptionId": ""\n  },\n  "targetingType": "",\n  "thirdPartyVerifierDetails": {\n    "adloox": {\n      "excludedAdlooxCategories": []\n    },\n    "doubleVerify": {\n      "appStarRating": {\n        "avoidInsufficientStarRating": false,\n        "avoidedStarRating": ""\n      },\n      "avoidedAgeRatings": [],\n      "brandSafetyCategories": {\n        "avoidUnknownBrandSafetyCategory": false,\n        "avoidedHighSeverityCategories": [],\n        "avoidedMediumSeverityCategories": []\n      },\n      "customSegmentId": "",\n      "displayViewability": {\n        "iab": "",\n        "viewableDuring": ""\n      },\n      "fraudInvalidTraffic": {\n        "avoidInsufficientOption": false,\n        "avoidedFraudOption": ""\n      },\n      "videoViewability": {\n        "playerImpressionRate": "",\n        "videoIab": "",\n        "videoViewableRate": ""\n      }\n    },\n    "integralAdScience": {\n      "customSegmentId": [],\n      "displayViewability": "",\n      "excludeUnrateable": false,\n      "excludedAdFraudRisk": "",\n      "excludedAdultRisk": "",\n      "excludedAlcoholRisk": "",\n      "excludedDrugsRisk": "",\n      "excludedGamblingRisk": "",\n      "excludedHateSpeechRisk": "",\n      "excludedIllegalDownloadsRisk": "",\n      "excludedOffensiveLanguageRisk": "",\n      "excludedViolenceRisk": "",\n      "traqScoreOption": "",\n      "videoViewability": ""\n    }\n  },\n  "urlDetails": {\n    "negative": false,\n    "url": ""\n  },\n  "userRewardedContentDetails": {\n    "targetingOptionId": "",\n    "userRewardedContent": ""\n  },\n  "videoPlayerSizeDetails": {\n    "videoPlayerSize": ""\n  },\n  "viewabilityDetails": {\n    "viewability": ""\n  },\n  "youtubeChannelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "youtubeVideoDetails": {\n    "negative": false,\n    "videoId": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")
  .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/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions',
  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({
  ageRangeDetails: {ageRange: ''},
  appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
  appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
  assignedTargetingOptionId: '',
  assignedTargetingOptionIdAlias: '',
  audienceGroupDetails: {
    excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
    excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
    includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
    includedCustomListGroup: {settings: [{customListId: ''}]},
    includedFirstAndThirdPartyAudienceGroups: [{}],
    includedGoogleAudienceGroup: {}
  },
  audioContentTypeDetails: {audioContentType: ''},
  authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
  browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
  businessChainDetails: {
    displayName: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
  categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
  channelDetails: {channelId: '', negative: false},
  contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
  contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
  contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
  contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
  contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
  dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
  deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
  deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
  digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
  environmentDetails: {environment: ''},
  exchangeDetails: {exchange: ''},
  genderDetails: {gender: ''},
  geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
  householdIncomeDetails: {householdIncome: ''},
  inheritance: '',
  inventorySourceDetails: {inventorySourceId: ''},
  inventorySourceGroupDetails: {inventorySourceGroupId: ''},
  keywordDetails: {keyword: '', negative: false},
  languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
  name: '',
  nativeContentPositionDetails: {contentPosition: ''},
  negativeKeywordListDetails: {negativeKeywordListId: ''},
  omidDetails: {omid: ''},
  onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
  operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
  parentalStatusDetails: {parentalStatus: ''},
  poiDetails: {
    displayName: '',
    latitude: '',
    longitude: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
  regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
  sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
  sessionPositionDetails: {sessionPosition: ''},
  subExchangeDetails: {targetingOptionId: ''},
  targetingType: '',
  thirdPartyVerifierDetails: {
    adloox: {excludedAdlooxCategories: []},
    doubleVerify: {
      appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
      avoidedAgeRatings: [],
      brandSafetyCategories: {
        avoidUnknownBrandSafetyCategory: false,
        avoidedHighSeverityCategories: [],
        avoidedMediumSeverityCategories: []
      },
      customSegmentId: '',
      displayViewability: {iab: '', viewableDuring: ''},
      fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
      videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
    },
    integralAdScience: {
      customSegmentId: [],
      displayViewability: '',
      excludeUnrateable: false,
      excludedAdFraudRisk: '',
      excludedAdultRisk: '',
      excludedAlcoholRisk: '',
      excludedDrugsRisk: '',
      excludedGamblingRisk: '',
      excludedHateSpeechRisk: '',
      excludedIllegalDownloadsRisk: '',
      excludedOffensiveLanguageRisk: '',
      excludedViolenceRisk: '',
      traqScoreOption: '',
      videoViewability: ''
    }
  },
  urlDetails: {negative: false, url: ''},
  userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
  videoPlayerSizeDetails: {videoPlayerSize: ''},
  viewabilityDetails: {viewability: ''},
  youtubeChannelDetails: {channelId: '', negative: false},
  youtubeVideoDetails: {negative: false, videoId: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  body: {
    ageRangeDetails: {ageRange: ''},
    appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
    assignedTargetingOptionId: '',
    assignedTargetingOptionIdAlias: '',
    audienceGroupDetails: {
      excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
      excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
      includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
      includedCustomListGroup: {settings: [{customListId: ''}]},
      includedFirstAndThirdPartyAudienceGroups: [{}],
      includedGoogleAudienceGroup: {}
    },
    audioContentTypeDetails: {audioContentType: ''},
    authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
    browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
    businessChainDetails: {
      displayName: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
    categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    channelDetails: {channelId: '', negative: false},
    contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
    contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
    contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
    contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
    contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
    dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
    deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
    deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
    digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
    environmentDetails: {environment: ''},
    exchangeDetails: {exchange: ''},
    genderDetails: {gender: ''},
    geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
    householdIncomeDetails: {householdIncome: ''},
    inheritance: '',
    inventorySourceDetails: {inventorySourceId: ''},
    inventorySourceGroupDetails: {inventorySourceGroupId: ''},
    keywordDetails: {keyword: '', negative: false},
    languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
    name: '',
    nativeContentPositionDetails: {contentPosition: ''},
    negativeKeywordListDetails: {negativeKeywordListId: ''},
    omidDetails: {omid: ''},
    onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
    operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
    parentalStatusDetails: {parentalStatus: ''},
    poiDetails: {
      displayName: '',
      latitude: '',
      longitude: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
    regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
    sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
    sessionPositionDetails: {sessionPosition: ''},
    subExchangeDetails: {targetingOptionId: ''},
    targetingType: '',
    thirdPartyVerifierDetails: {
      adloox: {excludedAdlooxCategories: []},
      doubleVerify: {
        appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
        avoidedAgeRatings: [],
        brandSafetyCategories: {
          avoidUnknownBrandSafetyCategory: false,
          avoidedHighSeverityCategories: [],
          avoidedMediumSeverityCategories: []
        },
        customSegmentId: '',
        displayViewability: {iab: '', viewableDuring: ''},
        fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
        videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
      },
      integralAdScience: {
        customSegmentId: [],
        displayViewability: '',
        excludeUnrateable: false,
        excludedAdFraudRisk: '',
        excludedAdultRisk: '',
        excludedAlcoholRisk: '',
        excludedDrugsRisk: '',
        excludedGamblingRisk: '',
        excludedHateSpeechRisk: '',
        excludedIllegalDownloadsRisk: '',
        excludedOffensiveLanguageRisk: '',
        excludedViolenceRisk: '',
        traqScoreOption: '',
        videoViewability: ''
      }
    },
    urlDetails: {negative: false, url: ''},
    userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
    videoPlayerSizeDetails: {videoPlayerSize: ''},
    viewabilityDetails: {viewability: ''},
    youtubeChannelDetails: {channelId: '', negative: false},
    youtubeVideoDetails: {negative: false, videoId: ''}
  },
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  ageRangeDetails: {
    ageRange: ''
  },
  appCategoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  appDetails: {
    appId: '',
    appPlatform: '',
    displayName: '',
    negative: false
  },
  assignedTargetingOptionId: '',
  assignedTargetingOptionIdAlias: '',
  audienceGroupDetails: {
    excludedFirstAndThirdPartyAudienceGroup: {
      settings: [
        {
          firstAndThirdPartyAudienceId: '',
          recency: ''
        }
      ]
    },
    excludedGoogleAudienceGroup: {
      settings: [
        {
          googleAudienceId: ''
        }
      ]
    },
    includedCombinedAudienceGroup: {
      settings: [
        {
          combinedAudienceId: ''
        }
      ]
    },
    includedCustomListGroup: {
      settings: [
        {
          customListId: ''
        }
      ]
    },
    includedFirstAndThirdPartyAudienceGroups: [
      {}
    ],
    includedGoogleAudienceGroup: {}
  },
  audioContentTypeDetails: {
    audioContentType: ''
  },
  authorizedSellerStatusDetails: {
    authorizedSellerStatus: '',
    targetingOptionId: ''
  },
  browserDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  businessChainDetails: {
    displayName: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  carrierAndIspDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  categoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  channelDetails: {
    channelId: '',
    negative: false
  },
  contentDurationDetails: {
    contentDuration: '',
    targetingOptionId: ''
  },
  contentGenreDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  contentInstreamPositionDetails: {
    adType: '',
    contentInstreamPosition: ''
  },
  contentOutstreamPositionDetails: {
    adType: '',
    contentOutstreamPosition: ''
  },
  contentStreamTypeDetails: {
    contentStreamType: '',
    targetingOptionId: ''
  },
  dayAndTimeDetails: {
    dayOfWeek: '',
    endHour: 0,
    startHour: 0,
    timeZoneResolution: ''
  },
  deviceMakeModelDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  deviceTypeDetails: {
    deviceType: '',
    youtubeAndPartnersBidMultiplier: ''
  },
  digitalContentLabelExclusionDetails: {
    excludedContentRatingTier: ''
  },
  environmentDetails: {
    environment: ''
  },
  exchangeDetails: {
    exchange: ''
  },
  genderDetails: {
    gender: ''
  },
  geoRegionDetails: {
    displayName: '',
    geoRegionType: '',
    negative: false,
    targetingOptionId: ''
  },
  householdIncomeDetails: {
    householdIncome: ''
  },
  inheritance: '',
  inventorySourceDetails: {
    inventorySourceId: ''
  },
  inventorySourceGroupDetails: {
    inventorySourceGroupId: ''
  },
  keywordDetails: {
    keyword: '',
    negative: false
  },
  languageDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  name: '',
  nativeContentPositionDetails: {
    contentPosition: ''
  },
  negativeKeywordListDetails: {
    negativeKeywordListId: ''
  },
  omidDetails: {
    omid: ''
  },
  onScreenPositionDetails: {
    adType: '',
    onScreenPosition: '',
    targetingOptionId: ''
  },
  operatingSystemDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  parentalStatusDetails: {
    parentalStatus: ''
  },
  poiDetails: {
    displayName: '',
    latitude: '',
    longitude: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  proximityLocationListDetails: {
    proximityLocationListId: '',
    proximityRadius: '',
    proximityRadiusUnit: ''
  },
  regionalLocationListDetails: {
    negative: false,
    regionalLocationListId: ''
  },
  sensitiveCategoryExclusionDetails: {
    excludedSensitiveCategory: ''
  },
  sessionPositionDetails: {
    sessionPosition: ''
  },
  subExchangeDetails: {
    targetingOptionId: ''
  },
  targetingType: '',
  thirdPartyVerifierDetails: {
    adloox: {
      excludedAdlooxCategories: []
    },
    doubleVerify: {
      appStarRating: {
        avoidInsufficientStarRating: false,
        avoidedStarRating: ''
      },
      avoidedAgeRatings: [],
      brandSafetyCategories: {
        avoidUnknownBrandSafetyCategory: false,
        avoidedHighSeverityCategories: [],
        avoidedMediumSeverityCategories: []
      },
      customSegmentId: '',
      displayViewability: {
        iab: '',
        viewableDuring: ''
      },
      fraudInvalidTraffic: {
        avoidInsufficientOption: false,
        avoidedFraudOption: ''
      },
      videoViewability: {
        playerImpressionRate: '',
        videoIab: '',
        videoViewableRate: ''
      }
    },
    integralAdScience: {
      customSegmentId: [],
      displayViewability: '',
      excludeUnrateable: false,
      excludedAdFraudRisk: '',
      excludedAdultRisk: '',
      excludedAlcoholRisk: '',
      excludedDrugsRisk: '',
      excludedGamblingRisk: '',
      excludedHateSpeechRisk: '',
      excludedIllegalDownloadsRisk: '',
      excludedOffensiveLanguageRisk: '',
      excludedViolenceRisk: '',
      traqScoreOption: '',
      videoViewability: ''
    }
  },
  urlDetails: {
    negative: false,
    url: ''
  },
  userRewardedContentDetails: {
    targetingOptionId: '',
    userRewardedContent: ''
  },
  videoPlayerSizeDetails: {
    videoPlayerSize: ''
  },
  viewabilityDetails: {
    viewability: ''
  },
  youtubeChannelDetails: {
    channelId: '',
    negative: false
  },
  youtubeVideoDetails: {
    negative: false,
    videoId: ''
  }
});

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    ageRangeDetails: {ageRange: ''},
    appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
    assignedTargetingOptionId: '',
    assignedTargetingOptionIdAlias: '',
    audienceGroupDetails: {
      excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
      excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
      includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
      includedCustomListGroup: {settings: [{customListId: ''}]},
      includedFirstAndThirdPartyAudienceGroups: [{}],
      includedGoogleAudienceGroup: {}
    },
    audioContentTypeDetails: {audioContentType: ''},
    authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
    browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
    businessChainDetails: {
      displayName: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
    categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    channelDetails: {channelId: '', negative: false},
    contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
    contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
    contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
    contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
    contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
    dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
    deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
    deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
    digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
    environmentDetails: {environment: ''},
    exchangeDetails: {exchange: ''},
    genderDetails: {gender: ''},
    geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
    householdIncomeDetails: {householdIncome: ''},
    inheritance: '',
    inventorySourceDetails: {inventorySourceId: ''},
    inventorySourceGroupDetails: {inventorySourceGroupId: ''},
    keywordDetails: {keyword: '', negative: false},
    languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
    name: '',
    nativeContentPositionDetails: {contentPosition: ''},
    negativeKeywordListDetails: {negativeKeywordListId: ''},
    omidDetails: {omid: ''},
    onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
    operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
    parentalStatusDetails: {parentalStatus: ''},
    poiDetails: {
      displayName: '',
      latitude: '',
      longitude: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
    regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
    sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
    sessionPositionDetails: {sessionPosition: ''},
    subExchangeDetails: {targetingOptionId: ''},
    targetingType: '',
    thirdPartyVerifierDetails: {
      adloox: {excludedAdlooxCategories: []},
      doubleVerify: {
        appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
        avoidedAgeRatings: [],
        brandSafetyCategories: {
          avoidUnknownBrandSafetyCategory: false,
          avoidedHighSeverityCategories: [],
          avoidedMediumSeverityCategories: []
        },
        customSegmentId: '',
        displayViewability: {iab: '', viewableDuring: ''},
        fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
        videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
      },
      integralAdScience: {
        customSegmentId: [],
        displayViewability: '',
        excludeUnrateable: false,
        excludedAdFraudRisk: '',
        excludedAdultRisk: '',
        excludedAlcoholRisk: '',
        excludedDrugsRisk: '',
        excludedGamblingRisk: '',
        excludedHateSpeechRisk: '',
        excludedIllegalDownloadsRisk: '',
        excludedOffensiveLanguageRisk: '',
        excludedViolenceRisk: '',
        traqScoreOption: '',
        videoViewability: ''
      }
    },
    urlDetails: {negative: false, url: ''},
    userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
    videoPlayerSizeDetails: {videoPlayerSize: ''},
    viewabilityDetails: {viewability: ''},
    youtubeChannelDetails: {channelId: '', negative: false},
    youtubeVideoDetails: {negative: false, videoId: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}'
};

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 = @{ @"ageRangeDetails": @{ @"ageRange": @"" },
                              @"appCategoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"appDetails": @{ @"appId": @"", @"appPlatform": @"", @"displayName": @"", @"negative": @NO },
                              @"assignedTargetingOptionId": @"",
                              @"assignedTargetingOptionIdAlias": @"",
                              @"audienceGroupDetails": @{ @"excludedFirstAndThirdPartyAudienceGroup": @{ @"settings": @[ @{ @"firstAndThirdPartyAudienceId": @"", @"recency": @"" } ] }, @"excludedGoogleAudienceGroup": @{ @"settings": @[ @{ @"googleAudienceId": @"" } ] }, @"includedCombinedAudienceGroup": @{ @"settings": @[ @{ @"combinedAudienceId": @"" } ] }, @"includedCustomListGroup": @{ @"settings": @[ @{ @"customListId": @"" } ] }, @"includedFirstAndThirdPartyAudienceGroups": @[ @{  } ], @"includedGoogleAudienceGroup": @{  } },
                              @"audioContentTypeDetails": @{ @"audioContentType": @"" },
                              @"authorizedSellerStatusDetails": @{ @"authorizedSellerStatus": @"", @"targetingOptionId": @"" },
                              @"browserDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"businessChainDetails": @{ @"displayName": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" },
                              @"carrierAndIspDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"categoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"channelDetails": @{ @"channelId": @"", @"negative": @NO },
                              @"contentDurationDetails": @{ @"contentDuration": @"", @"targetingOptionId": @"" },
                              @"contentGenreDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"contentInstreamPositionDetails": @{ @"adType": @"", @"contentInstreamPosition": @"" },
                              @"contentOutstreamPositionDetails": @{ @"adType": @"", @"contentOutstreamPosition": @"" },
                              @"contentStreamTypeDetails": @{ @"contentStreamType": @"", @"targetingOptionId": @"" },
                              @"dayAndTimeDetails": @{ @"dayOfWeek": @"", @"endHour": @0, @"startHour": @0, @"timeZoneResolution": @"" },
                              @"deviceMakeModelDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"deviceTypeDetails": @{ @"deviceType": @"", @"youtubeAndPartnersBidMultiplier": @"" },
                              @"digitalContentLabelExclusionDetails": @{ @"excludedContentRatingTier": @"" },
                              @"environmentDetails": @{ @"environment": @"" },
                              @"exchangeDetails": @{ @"exchange": @"" },
                              @"genderDetails": @{ @"gender": @"" },
                              @"geoRegionDetails": @{ @"displayName": @"", @"geoRegionType": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"householdIncomeDetails": @{ @"householdIncome": @"" },
                              @"inheritance": @"",
                              @"inventorySourceDetails": @{ @"inventorySourceId": @"" },
                              @"inventorySourceGroupDetails": @{ @"inventorySourceGroupId": @"" },
                              @"keywordDetails": @{ @"keyword": @"", @"negative": @NO },
                              @"languageDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"name": @"",
                              @"nativeContentPositionDetails": @{ @"contentPosition": @"" },
                              @"negativeKeywordListDetails": @{ @"negativeKeywordListId": @"" },
                              @"omidDetails": @{ @"omid": @"" },
                              @"onScreenPositionDetails": @{ @"adType": @"", @"onScreenPosition": @"", @"targetingOptionId": @"" },
                              @"operatingSystemDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"parentalStatusDetails": @{ @"parentalStatus": @"" },
                              @"poiDetails": @{ @"displayName": @"", @"latitude": @"", @"longitude": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" },
                              @"proximityLocationListDetails": @{ @"proximityLocationListId": @"", @"proximityRadius": @"", @"proximityRadiusUnit": @"" },
                              @"regionalLocationListDetails": @{ @"negative": @NO, @"regionalLocationListId": @"" },
                              @"sensitiveCategoryExclusionDetails": @{ @"excludedSensitiveCategory": @"" },
                              @"sessionPositionDetails": @{ @"sessionPosition": @"" },
                              @"subExchangeDetails": @{ @"targetingOptionId": @"" },
                              @"targetingType": @"",
                              @"thirdPartyVerifierDetails": @{ @"adloox": @{ @"excludedAdlooxCategories": @[  ] }, @"doubleVerify": @{ @"appStarRating": @{ @"avoidInsufficientStarRating": @NO, @"avoidedStarRating": @"" }, @"avoidedAgeRatings": @[  ], @"brandSafetyCategories": @{ @"avoidUnknownBrandSafetyCategory": @NO, @"avoidedHighSeverityCategories": @[  ], @"avoidedMediumSeverityCategories": @[  ] }, @"customSegmentId": @"", @"displayViewability": @{ @"iab": @"", @"viewableDuring": @"" }, @"fraudInvalidTraffic": @{ @"avoidInsufficientOption": @NO, @"avoidedFraudOption": @"" }, @"videoViewability": @{ @"playerImpressionRate": @"", @"videoIab": @"", @"videoViewableRate": @"" } }, @"integralAdScience": @{ @"customSegmentId": @[  ], @"displayViewability": @"", @"excludeUnrateable": @NO, @"excludedAdFraudRisk": @"", @"excludedAdultRisk": @"", @"excludedAlcoholRisk": @"", @"excludedDrugsRisk": @"", @"excludedGamblingRisk": @"", @"excludedHateSpeechRisk": @"", @"excludedIllegalDownloadsRisk": @"", @"excludedOffensiveLanguageRisk": @"", @"excludedViolenceRisk": @"", @"traqScoreOption": @"", @"videoViewability": @"" } },
                              @"urlDetails": @{ @"negative": @NO, @"url": @"" },
                              @"userRewardedContentDetails": @{ @"targetingOptionId": @"", @"userRewardedContent": @"" },
                              @"videoPlayerSizeDetails": @{ @"videoPlayerSize": @"" },
                              @"viewabilityDetails": @{ @"viewability": @"" },
                              @"youtubeChannelDetails": @{ @"channelId": @"", @"negative": @NO },
                              @"youtubeVideoDetails": @{ @"negative": @NO, @"videoId": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions",
  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([
    'ageRangeDetails' => [
        'ageRange' => ''
    ],
    'appCategoryDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'appDetails' => [
        'appId' => '',
        'appPlatform' => '',
        'displayName' => '',
        'negative' => null
    ],
    'assignedTargetingOptionId' => '',
    'assignedTargetingOptionIdAlias' => '',
    'audienceGroupDetails' => [
        'excludedFirstAndThirdPartyAudienceGroup' => [
                'settings' => [
                                [
                                                                'firstAndThirdPartyAudienceId' => '',
                                                                'recency' => ''
                                ]
                ]
        ],
        'excludedGoogleAudienceGroup' => [
                'settings' => [
                                [
                                                                'googleAudienceId' => ''
                                ]
                ]
        ],
        'includedCombinedAudienceGroup' => [
                'settings' => [
                                [
                                                                'combinedAudienceId' => ''
                                ]
                ]
        ],
        'includedCustomListGroup' => [
                'settings' => [
                                [
                                                                'customListId' => ''
                                ]
                ]
        ],
        'includedFirstAndThirdPartyAudienceGroups' => [
                [
                                
                ]
        ],
        'includedGoogleAudienceGroup' => [
                
        ]
    ],
    'audioContentTypeDetails' => [
        'audioContentType' => ''
    ],
    'authorizedSellerStatusDetails' => [
        'authorizedSellerStatus' => '',
        'targetingOptionId' => ''
    ],
    'browserDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'businessChainDetails' => [
        'displayName' => '',
        'proximityRadiusAmount' => '',
        'proximityRadiusUnit' => '',
        'targetingOptionId' => ''
    ],
    'carrierAndIspDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'categoryDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'channelDetails' => [
        'channelId' => '',
        'negative' => null
    ],
    'contentDurationDetails' => [
        'contentDuration' => '',
        'targetingOptionId' => ''
    ],
    'contentGenreDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'contentInstreamPositionDetails' => [
        'adType' => '',
        'contentInstreamPosition' => ''
    ],
    'contentOutstreamPositionDetails' => [
        'adType' => '',
        'contentOutstreamPosition' => ''
    ],
    'contentStreamTypeDetails' => [
        'contentStreamType' => '',
        'targetingOptionId' => ''
    ],
    'dayAndTimeDetails' => [
        'dayOfWeek' => '',
        'endHour' => 0,
        'startHour' => 0,
        'timeZoneResolution' => ''
    ],
    'deviceMakeModelDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'deviceTypeDetails' => [
        'deviceType' => '',
        'youtubeAndPartnersBidMultiplier' => ''
    ],
    'digitalContentLabelExclusionDetails' => [
        'excludedContentRatingTier' => ''
    ],
    'environmentDetails' => [
        'environment' => ''
    ],
    'exchangeDetails' => [
        'exchange' => ''
    ],
    'genderDetails' => [
        'gender' => ''
    ],
    'geoRegionDetails' => [
        'displayName' => '',
        'geoRegionType' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'householdIncomeDetails' => [
        'householdIncome' => ''
    ],
    'inheritance' => '',
    'inventorySourceDetails' => [
        'inventorySourceId' => ''
    ],
    'inventorySourceGroupDetails' => [
        'inventorySourceGroupId' => ''
    ],
    'keywordDetails' => [
        'keyword' => '',
        'negative' => null
    ],
    'languageDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'name' => '',
    'nativeContentPositionDetails' => [
        'contentPosition' => ''
    ],
    'negativeKeywordListDetails' => [
        'negativeKeywordListId' => ''
    ],
    'omidDetails' => [
        'omid' => ''
    ],
    'onScreenPositionDetails' => [
        'adType' => '',
        'onScreenPosition' => '',
        'targetingOptionId' => ''
    ],
    'operatingSystemDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'parentalStatusDetails' => [
        'parentalStatus' => ''
    ],
    'poiDetails' => [
        'displayName' => '',
        'latitude' => '',
        'longitude' => '',
        'proximityRadiusAmount' => '',
        'proximityRadiusUnit' => '',
        'targetingOptionId' => ''
    ],
    'proximityLocationListDetails' => [
        'proximityLocationListId' => '',
        'proximityRadius' => '',
        'proximityRadiusUnit' => ''
    ],
    'regionalLocationListDetails' => [
        'negative' => null,
        'regionalLocationListId' => ''
    ],
    'sensitiveCategoryExclusionDetails' => [
        'excludedSensitiveCategory' => ''
    ],
    'sessionPositionDetails' => [
        'sessionPosition' => ''
    ],
    'subExchangeDetails' => [
        'targetingOptionId' => ''
    ],
    'targetingType' => '',
    'thirdPartyVerifierDetails' => [
        'adloox' => [
                'excludedAdlooxCategories' => [
                                
                ]
        ],
        'doubleVerify' => [
                'appStarRating' => [
                                'avoidInsufficientStarRating' => null,
                                'avoidedStarRating' => ''
                ],
                'avoidedAgeRatings' => [
                                
                ],
                'brandSafetyCategories' => [
                                'avoidUnknownBrandSafetyCategory' => null,
                                'avoidedHighSeverityCategories' => [
                                                                
                                ],
                                'avoidedMediumSeverityCategories' => [
                                                                
                                ]
                ],
                'customSegmentId' => '',
                'displayViewability' => [
                                'iab' => '',
                                'viewableDuring' => ''
                ],
                'fraudInvalidTraffic' => [
                                'avoidInsufficientOption' => null,
                                'avoidedFraudOption' => ''
                ],
                'videoViewability' => [
                                'playerImpressionRate' => '',
                                'videoIab' => '',
                                'videoViewableRate' => ''
                ]
        ],
        'integralAdScience' => [
                'customSegmentId' => [
                                
                ],
                'displayViewability' => '',
                'excludeUnrateable' => null,
                'excludedAdFraudRisk' => '',
                'excludedAdultRisk' => '',
                'excludedAlcoholRisk' => '',
                'excludedDrugsRisk' => '',
                'excludedGamblingRisk' => '',
                'excludedHateSpeechRisk' => '',
                'excludedIllegalDownloadsRisk' => '',
                'excludedOffensiveLanguageRisk' => '',
                'excludedViolenceRisk' => '',
                'traqScoreOption' => '',
                'videoViewability' => ''
        ]
    ],
    'urlDetails' => [
        'negative' => null,
        'url' => ''
    ],
    'userRewardedContentDetails' => [
        'targetingOptionId' => '',
        'userRewardedContent' => ''
    ],
    'videoPlayerSizeDetails' => [
        'videoPlayerSize' => ''
    ],
    'viewabilityDetails' => [
        'viewability' => ''
    ],
    'youtubeChannelDetails' => [
        'channelId' => '',
        'negative' => null
    ],
    'youtubeVideoDetails' => [
        'negative' => null,
        'videoId' => ''
    ]
  ]),
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions', [
  'body' => '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'ageRangeDetails' => [
    'ageRange' => ''
  ],
  'appCategoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'appDetails' => [
    'appId' => '',
    'appPlatform' => '',
    'displayName' => '',
    'negative' => null
  ],
  'assignedTargetingOptionId' => '',
  'assignedTargetingOptionIdAlias' => '',
  'audienceGroupDetails' => [
    'excludedFirstAndThirdPartyAudienceGroup' => [
        'settings' => [
                [
                                'firstAndThirdPartyAudienceId' => '',
                                'recency' => ''
                ]
        ]
    ],
    'excludedGoogleAudienceGroup' => [
        'settings' => [
                [
                                'googleAudienceId' => ''
                ]
        ]
    ],
    'includedCombinedAudienceGroup' => [
        'settings' => [
                [
                                'combinedAudienceId' => ''
                ]
        ]
    ],
    'includedCustomListGroup' => [
        'settings' => [
                [
                                'customListId' => ''
                ]
        ]
    ],
    'includedFirstAndThirdPartyAudienceGroups' => [
        [
                
        ]
    ],
    'includedGoogleAudienceGroup' => [
        
    ]
  ],
  'audioContentTypeDetails' => [
    'audioContentType' => ''
  ],
  'authorizedSellerStatusDetails' => [
    'authorizedSellerStatus' => '',
    'targetingOptionId' => ''
  ],
  'browserDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'businessChainDetails' => [
    'displayName' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'carrierAndIspDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'categoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'channelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'contentDurationDetails' => [
    'contentDuration' => '',
    'targetingOptionId' => ''
  ],
  'contentGenreDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'contentInstreamPositionDetails' => [
    'adType' => '',
    'contentInstreamPosition' => ''
  ],
  'contentOutstreamPositionDetails' => [
    'adType' => '',
    'contentOutstreamPosition' => ''
  ],
  'contentStreamTypeDetails' => [
    'contentStreamType' => '',
    'targetingOptionId' => ''
  ],
  'dayAndTimeDetails' => [
    'dayOfWeek' => '',
    'endHour' => 0,
    'startHour' => 0,
    'timeZoneResolution' => ''
  ],
  'deviceMakeModelDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'deviceTypeDetails' => [
    'deviceType' => '',
    'youtubeAndPartnersBidMultiplier' => ''
  ],
  'digitalContentLabelExclusionDetails' => [
    'excludedContentRatingTier' => ''
  ],
  'environmentDetails' => [
    'environment' => ''
  ],
  'exchangeDetails' => [
    'exchange' => ''
  ],
  'genderDetails' => [
    'gender' => ''
  ],
  'geoRegionDetails' => [
    'displayName' => '',
    'geoRegionType' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'householdIncomeDetails' => [
    'householdIncome' => ''
  ],
  'inheritance' => '',
  'inventorySourceDetails' => [
    'inventorySourceId' => ''
  ],
  'inventorySourceGroupDetails' => [
    'inventorySourceGroupId' => ''
  ],
  'keywordDetails' => [
    'keyword' => '',
    'negative' => null
  ],
  'languageDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'name' => '',
  'nativeContentPositionDetails' => [
    'contentPosition' => ''
  ],
  'negativeKeywordListDetails' => [
    'negativeKeywordListId' => ''
  ],
  'omidDetails' => [
    'omid' => ''
  ],
  'onScreenPositionDetails' => [
    'adType' => '',
    'onScreenPosition' => '',
    'targetingOptionId' => ''
  ],
  'operatingSystemDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'parentalStatusDetails' => [
    'parentalStatus' => ''
  ],
  'poiDetails' => [
    'displayName' => '',
    'latitude' => '',
    'longitude' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'proximityLocationListDetails' => [
    'proximityLocationListId' => '',
    'proximityRadius' => '',
    'proximityRadiusUnit' => ''
  ],
  'regionalLocationListDetails' => [
    'negative' => null,
    'regionalLocationListId' => ''
  ],
  'sensitiveCategoryExclusionDetails' => [
    'excludedSensitiveCategory' => ''
  ],
  'sessionPositionDetails' => [
    'sessionPosition' => ''
  ],
  'subExchangeDetails' => [
    'targetingOptionId' => ''
  ],
  'targetingType' => '',
  'thirdPartyVerifierDetails' => [
    'adloox' => [
        'excludedAdlooxCategories' => [
                
        ]
    ],
    'doubleVerify' => [
        'appStarRating' => [
                'avoidInsufficientStarRating' => null,
                'avoidedStarRating' => ''
        ],
        'avoidedAgeRatings' => [
                
        ],
        'brandSafetyCategories' => [
                'avoidUnknownBrandSafetyCategory' => null,
                'avoidedHighSeverityCategories' => [
                                
                ],
                'avoidedMediumSeverityCategories' => [
                                
                ]
        ],
        'customSegmentId' => '',
        'displayViewability' => [
                'iab' => '',
                'viewableDuring' => ''
        ],
        'fraudInvalidTraffic' => [
                'avoidInsufficientOption' => null,
                'avoidedFraudOption' => ''
        ],
        'videoViewability' => [
                'playerImpressionRate' => '',
                'videoIab' => '',
                'videoViewableRate' => ''
        ]
    ],
    'integralAdScience' => [
        'customSegmentId' => [
                
        ],
        'displayViewability' => '',
        'excludeUnrateable' => null,
        'excludedAdFraudRisk' => '',
        'excludedAdultRisk' => '',
        'excludedAlcoholRisk' => '',
        'excludedDrugsRisk' => '',
        'excludedGamblingRisk' => '',
        'excludedHateSpeechRisk' => '',
        'excludedIllegalDownloadsRisk' => '',
        'excludedOffensiveLanguageRisk' => '',
        'excludedViolenceRisk' => '',
        'traqScoreOption' => '',
        'videoViewability' => ''
    ]
  ],
  'urlDetails' => [
    'negative' => null,
    'url' => ''
  ],
  'userRewardedContentDetails' => [
    'targetingOptionId' => '',
    'userRewardedContent' => ''
  ],
  'videoPlayerSizeDetails' => [
    'videoPlayerSize' => ''
  ],
  'viewabilityDetails' => [
    'viewability' => ''
  ],
  'youtubeChannelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'youtubeVideoDetails' => [
    'negative' => null,
    'videoId' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'ageRangeDetails' => [
    'ageRange' => ''
  ],
  'appCategoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'appDetails' => [
    'appId' => '',
    'appPlatform' => '',
    'displayName' => '',
    'negative' => null
  ],
  'assignedTargetingOptionId' => '',
  'assignedTargetingOptionIdAlias' => '',
  'audienceGroupDetails' => [
    'excludedFirstAndThirdPartyAudienceGroup' => [
        'settings' => [
                [
                                'firstAndThirdPartyAudienceId' => '',
                                'recency' => ''
                ]
        ]
    ],
    'excludedGoogleAudienceGroup' => [
        'settings' => [
                [
                                'googleAudienceId' => ''
                ]
        ]
    ],
    'includedCombinedAudienceGroup' => [
        'settings' => [
                [
                                'combinedAudienceId' => ''
                ]
        ]
    ],
    'includedCustomListGroup' => [
        'settings' => [
                [
                                'customListId' => ''
                ]
        ]
    ],
    'includedFirstAndThirdPartyAudienceGroups' => [
        [
                
        ]
    ],
    'includedGoogleAudienceGroup' => [
        
    ]
  ],
  'audioContentTypeDetails' => [
    'audioContentType' => ''
  ],
  'authorizedSellerStatusDetails' => [
    'authorizedSellerStatus' => '',
    'targetingOptionId' => ''
  ],
  'browserDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'businessChainDetails' => [
    'displayName' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'carrierAndIspDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'categoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'channelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'contentDurationDetails' => [
    'contentDuration' => '',
    'targetingOptionId' => ''
  ],
  'contentGenreDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'contentInstreamPositionDetails' => [
    'adType' => '',
    'contentInstreamPosition' => ''
  ],
  'contentOutstreamPositionDetails' => [
    'adType' => '',
    'contentOutstreamPosition' => ''
  ],
  'contentStreamTypeDetails' => [
    'contentStreamType' => '',
    'targetingOptionId' => ''
  ],
  'dayAndTimeDetails' => [
    'dayOfWeek' => '',
    'endHour' => 0,
    'startHour' => 0,
    'timeZoneResolution' => ''
  ],
  'deviceMakeModelDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'deviceTypeDetails' => [
    'deviceType' => '',
    'youtubeAndPartnersBidMultiplier' => ''
  ],
  'digitalContentLabelExclusionDetails' => [
    'excludedContentRatingTier' => ''
  ],
  'environmentDetails' => [
    'environment' => ''
  ],
  'exchangeDetails' => [
    'exchange' => ''
  ],
  'genderDetails' => [
    'gender' => ''
  ],
  'geoRegionDetails' => [
    'displayName' => '',
    'geoRegionType' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'householdIncomeDetails' => [
    'householdIncome' => ''
  ],
  'inheritance' => '',
  'inventorySourceDetails' => [
    'inventorySourceId' => ''
  ],
  'inventorySourceGroupDetails' => [
    'inventorySourceGroupId' => ''
  ],
  'keywordDetails' => [
    'keyword' => '',
    'negative' => null
  ],
  'languageDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'name' => '',
  'nativeContentPositionDetails' => [
    'contentPosition' => ''
  ],
  'negativeKeywordListDetails' => [
    'negativeKeywordListId' => ''
  ],
  'omidDetails' => [
    'omid' => ''
  ],
  'onScreenPositionDetails' => [
    'adType' => '',
    'onScreenPosition' => '',
    'targetingOptionId' => ''
  ],
  'operatingSystemDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'parentalStatusDetails' => [
    'parentalStatus' => ''
  ],
  'poiDetails' => [
    'displayName' => '',
    'latitude' => '',
    'longitude' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'proximityLocationListDetails' => [
    'proximityLocationListId' => '',
    'proximityRadius' => '',
    'proximityRadiusUnit' => ''
  ],
  'regionalLocationListDetails' => [
    'negative' => null,
    'regionalLocationListId' => ''
  ],
  'sensitiveCategoryExclusionDetails' => [
    'excludedSensitiveCategory' => ''
  ],
  'sessionPositionDetails' => [
    'sessionPosition' => ''
  ],
  'subExchangeDetails' => [
    'targetingOptionId' => ''
  ],
  'targetingType' => '',
  'thirdPartyVerifierDetails' => [
    'adloox' => [
        'excludedAdlooxCategories' => [
                
        ]
    ],
    'doubleVerify' => [
        'appStarRating' => [
                'avoidInsufficientStarRating' => null,
                'avoidedStarRating' => ''
        ],
        'avoidedAgeRatings' => [
                
        ],
        'brandSafetyCategories' => [
                'avoidUnknownBrandSafetyCategory' => null,
                'avoidedHighSeverityCategories' => [
                                
                ],
                'avoidedMediumSeverityCategories' => [
                                
                ]
        ],
        'customSegmentId' => '',
        'displayViewability' => [
                'iab' => '',
                'viewableDuring' => ''
        ],
        'fraudInvalidTraffic' => [
                'avoidInsufficientOption' => null,
                'avoidedFraudOption' => ''
        ],
        'videoViewability' => [
                'playerImpressionRate' => '',
                'videoIab' => '',
                'videoViewableRate' => ''
        ]
    ],
    'integralAdScience' => [
        'customSegmentId' => [
                
        ],
        'displayViewability' => '',
        'excludeUnrateable' => null,
        'excludedAdFraudRisk' => '',
        'excludedAdultRisk' => '',
        'excludedAlcoholRisk' => '',
        'excludedDrugsRisk' => '',
        'excludedGamblingRisk' => '',
        'excludedHateSpeechRisk' => '',
        'excludedIllegalDownloadsRisk' => '',
        'excludedOffensiveLanguageRisk' => '',
        'excludedViolenceRisk' => '',
        'traqScoreOption' => '',
        'videoViewability' => ''
    ]
  ],
  'urlDetails' => [
    'negative' => null,
    'url' => ''
  ],
  'userRewardedContentDetails' => [
    'targetingOptionId' => '',
    'userRewardedContent' => ''
  ],
  'videoPlayerSizeDetails' => [
    'videoPlayerSize' => ''
  ],
  'viewabilityDetails' => [
    'viewability' => ''
  ],
  'youtubeChannelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'youtubeVideoDetails' => [
    'negative' => null,
    'videoId' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions');
$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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"

payload = {
    "ageRangeDetails": { "ageRange": "" },
    "appCategoryDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "appDetails": {
        "appId": "",
        "appPlatform": "",
        "displayName": "",
        "negative": False
    },
    "assignedTargetingOptionId": "",
    "assignedTargetingOptionIdAlias": "",
    "audienceGroupDetails": {
        "excludedFirstAndThirdPartyAudienceGroup": { "settings": [
                {
                    "firstAndThirdPartyAudienceId": "",
                    "recency": ""
                }
            ] },
        "excludedGoogleAudienceGroup": { "settings": [{ "googleAudienceId": "" }] },
        "includedCombinedAudienceGroup": { "settings": [{ "combinedAudienceId": "" }] },
        "includedCustomListGroup": { "settings": [{ "customListId": "" }] },
        "includedFirstAndThirdPartyAudienceGroups": [{}],
        "includedGoogleAudienceGroup": {}
    },
    "audioContentTypeDetails": { "audioContentType": "" },
    "authorizedSellerStatusDetails": {
        "authorizedSellerStatus": "",
        "targetingOptionId": ""
    },
    "browserDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "businessChainDetails": {
        "displayName": "",
        "proximityRadiusAmount": "",
        "proximityRadiusUnit": "",
        "targetingOptionId": ""
    },
    "carrierAndIspDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "categoryDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "channelDetails": {
        "channelId": "",
        "negative": False
    },
    "contentDurationDetails": {
        "contentDuration": "",
        "targetingOptionId": ""
    },
    "contentGenreDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "contentInstreamPositionDetails": {
        "adType": "",
        "contentInstreamPosition": ""
    },
    "contentOutstreamPositionDetails": {
        "adType": "",
        "contentOutstreamPosition": ""
    },
    "contentStreamTypeDetails": {
        "contentStreamType": "",
        "targetingOptionId": ""
    },
    "dayAndTimeDetails": {
        "dayOfWeek": "",
        "endHour": 0,
        "startHour": 0,
        "timeZoneResolution": ""
    },
    "deviceMakeModelDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "deviceTypeDetails": {
        "deviceType": "",
        "youtubeAndPartnersBidMultiplier": ""
    },
    "digitalContentLabelExclusionDetails": { "excludedContentRatingTier": "" },
    "environmentDetails": { "environment": "" },
    "exchangeDetails": { "exchange": "" },
    "genderDetails": { "gender": "" },
    "geoRegionDetails": {
        "displayName": "",
        "geoRegionType": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "householdIncomeDetails": { "householdIncome": "" },
    "inheritance": "",
    "inventorySourceDetails": { "inventorySourceId": "" },
    "inventorySourceGroupDetails": { "inventorySourceGroupId": "" },
    "keywordDetails": {
        "keyword": "",
        "negative": False
    },
    "languageDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "name": "",
    "nativeContentPositionDetails": { "contentPosition": "" },
    "negativeKeywordListDetails": { "negativeKeywordListId": "" },
    "omidDetails": { "omid": "" },
    "onScreenPositionDetails": {
        "adType": "",
        "onScreenPosition": "",
        "targetingOptionId": ""
    },
    "operatingSystemDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "parentalStatusDetails": { "parentalStatus": "" },
    "poiDetails": {
        "displayName": "",
        "latitude": "",
        "longitude": "",
        "proximityRadiusAmount": "",
        "proximityRadiusUnit": "",
        "targetingOptionId": ""
    },
    "proximityLocationListDetails": {
        "proximityLocationListId": "",
        "proximityRadius": "",
        "proximityRadiusUnit": ""
    },
    "regionalLocationListDetails": {
        "negative": False,
        "regionalLocationListId": ""
    },
    "sensitiveCategoryExclusionDetails": { "excludedSensitiveCategory": "" },
    "sessionPositionDetails": { "sessionPosition": "" },
    "subExchangeDetails": { "targetingOptionId": "" },
    "targetingType": "",
    "thirdPartyVerifierDetails": {
        "adloox": { "excludedAdlooxCategories": [] },
        "doubleVerify": {
            "appStarRating": {
                "avoidInsufficientStarRating": False,
                "avoidedStarRating": ""
            },
            "avoidedAgeRatings": [],
            "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": False,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
            },
            "customSegmentId": "",
            "displayViewability": {
                "iab": "",
                "viewableDuring": ""
            },
            "fraudInvalidTraffic": {
                "avoidInsufficientOption": False,
                "avoidedFraudOption": ""
            },
            "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
            }
        },
        "integralAdScience": {
            "customSegmentId": [],
            "displayViewability": "",
            "excludeUnrateable": False,
            "excludedAdFraudRisk": "",
            "excludedAdultRisk": "",
            "excludedAlcoholRisk": "",
            "excludedDrugsRisk": "",
            "excludedGamblingRisk": "",
            "excludedHateSpeechRisk": "",
            "excludedIllegalDownloadsRisk": "",
            "excludedOffensiveLanguageRisk": "",
            "excludedViolenceRisk": "",
            "traqScoreOption": "",
            "videoViewability": ""
        }
    },
    "urlDetails": {
        "negative": False,
        "url": ""
    },
    "userRewardedContentDetails": {
        "targetingOptionId": "",
        "userRewardedContent": ""
    },
    "videoPlayerSizeDetails": { "videoPlayerSize": "" },
    "viewabilityDetails": { "viewability": "" },
    "youtubeChannelDetails": {
        "channelId": "",
        "negative": False
    },
    "youtubeVideoDetails": {
        "negative": False,
        "videoId": ""
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"

payload <- "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")

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  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions') do |req|
  req.body = "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions";

    let payload = json!({
        "ageRangeDetails": json!({"ageRange": ""}),
        "appCategoryDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "appDetails": json!({
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
        }),
        "assignedTargetingOptionId": "",
        "assignedTargetingOptionIdAlias": "",
        "audienceGroupDetails": json!({
            "excludedFirstAndThirdPartyAudienceGroup": json!({"settings": (
                    json!({
                        "firstAndThirdPartyAudienceId": "",
                        "recency": ""
                    })
                )}),
            "excludedGoogleAudienceGroup": json!({"settings": (json!({"googleAudienceId": ""}))}),
            "includedCombinedAudienceGroup": json!({"settings": (json!({"combinedAudienceId": ""}))}),
            "includedCustomListGroup": json!({"settings": (json!({"customListId": ""}))}),
            "includedFirstAndThirdPartyAudienceGroups": (json!({})),
            "includedGoogleAudienceGroup": json!({})
        }),
        "audioContentTypeDetails": json!({"audioContentType": ""}),
        "authorizedSellerStatusDetails": json!({
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
        }),
        "browserDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "businessChainDetails": json!({
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
        }),
        "carrierAndIspDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "categoryDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "channelDetails": json!({
            "channelId": "",
            "negative": false
        }),
        "contentDurationDetails": json!({
            "contentDuration": "",
            "targetingOptionId": ""
        }),
        "contentGenreDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "contentInstreamPositionDetails": json!({
            "adType": "",
            "contentInstreamPosition": ""
        }),
        "contentOutstreamPositionDetails": json!({
            "adType": "",
            "contentOutstreamPosition": ""
        }),
        "contentStreamTypeDetails": json!({
            "contentStreamType": "",
            "targetingOptionId": ""
        }),
        "dayAndTimeDetails": json!({
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
        }),
        "deviceMakeModelDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "deviceTypeDetails": json!({
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
        }),
        "digitalContentLabelExclusionDetails": json!({"excludedContentRatingTier": ""}),
        "environmentDetails": json!({"environment": ""}),
        "exchangeDetails": json!({"exchange": ""}),
        "genderDetails": json!({"gender": ""}),
        "geoRegionDetails": json!({
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "householdIncomeDetails": json!({"householdIncome": ""}),
        "inheritance": "",
        "inventorySourceDetails": json!({"inventorySourceId": ""}),
        "inventorySourceGroupDetails": json!({"inventorySourceGroupId": ""}),
        "keywordDetails": json!({
            "keyword": "",
            "negative": false
        }),
        "languageDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "name": "",
        "nativeContentPositionDetails": json!({"contentPosition": ""}),
        "negativeKeywordListDetails": json!({"negativeKeywordListId": ""}),
        "omidDetails": json!({"omid": ""}),
        "onScreenPositionDetails": json!({
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
        }),
        "operatingSystemDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "parentalStatusDetails": json!({"parentalStatus": ""}),
        "poiDetails": json!({
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
        }),
        "proximityLocationListDetails": json!({
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
        }),
        "regionalLocationListDetails": json!({
            "negative": false,
            "regionalLocationListId": ""
        }),
        "sensitiveCategoryExclusionDetails": json!({"excludedSensitiveCategory": ""}),
        "sessionPositionDetails": json!({"sessionPosition": ""}),
        "subExchangeDetails": json!({"targetingOptionId": ""}),
        "targetingType": "",
        "thirdPartyVerifierDetails": json!({
            "adloox": json!({"excludedAdlooxCategories": ()}),
            "doubleVerify": json!({
                "appStarRating": json!({
                    "avoidInsufficientStarRating": false,
                    "avoidedStarRating": ""
                }),
                "avoidedAgeRatings": (),
                "brandSafetyCategories": json!({
                    "avoidUnknownBrandSafetyCategory": false,
                    "avoidedHighSeverityCategories": (),
                    "avoidedMediumSeverityCategories": ()
                }),
                "customSegmentId": "",
                "displayViewability": json!({
                    "iab": "",
                    "viewableDuring": ""
                }),
                "fraudInvalidTraffic": json!({
                    "avoidInsufficientOption": false,
                    "avoidedFraudOption": ""
                }),
                "videoViewability": json!({
                    "playerImpressionRate": "",
                    "videoIab": "",
                    "videoViewableRate": ""
                })
            }),
            "integralAdScience": json!({
                "customSegmentId": (),
                "displayViewability": "",
                "excludeUnrateable": false,
                "excludedAdFraudRisk": "",
                "excludedAdultRisk": "",
                "excludedAlcoholRisk": "",
                "excludedDrugsRisk": "",
                "excludedGamblingRisk": "",
                "excludedHateSpeechRisk": "",
                "excludedIllegalDownloadsRisk": "",
                "excludedOffensiveLanguageRisk": "",
                "excludedViolenceRisk": "",
                "traqScoreOption": "",
                "videoViewability": ""
            })
        }),
        "urlDetails": json!({
            "negative": false,
            "url": ""
        }),
        "userRewardedContentDetails": json!({
            "targetingOptionId": "",
            "userRewardedContent": ""
        }),
        "videoPlayerSizeDetails": json!({"videoPlayerSize": ""}),
        "viewabilityDetails": json!({"viewability": ""}),
        "youtubeChannelDetails": json!({
            "channelId": "",
            "negative": false
        }),
        "youtubeVideoDetails": json!({
            "negative": false,
            "videoId": ""
        })
    });

    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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions \
  --header 'content-type: application/json' \
  --data '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}'
echo '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "ageRangeDetails": {\n    "ageRange": ""\n  },\n  "appCategoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "appDetails": {\n    "appId": "",\n    "appPlatform": "",\n    "displayName": "",\n    "negative": false\n  },\n  "assignedTargetingOptionId": "",\n  "assignedTargetingOptionIdAlias": "",\n  "audienceGroupDetails": {\n    "excludedFirstAndThirdPartyAudienceGroup": {\n      "settings": [\n        {\n          "firstAndThirdPartyAudienceId": "",\n          "recency": ""\n        }\n      ]\n    },\n    "excludedGoogleAudienceGroup": {\n      "settings": [\n        {\n          "googleAudienceId": ""\n        }\n      ]\n    },\n    "includedCombinedAudienceGroup": {\n      "settings": [\n        {\n          "combinedAudienceId": ""\n        }\n      ]\n    },\n    "includedCustomListGroup": {\n      "settings": [\n        {\n          "customListId": ""\n        }\n      ]\n    },\n    "includedFirstAndThirdPartyAudienceGroups": [\n      {}\n    ],\n    "includedGoogleAudienceGroup": {}\n  },\n  "audioContentTypeDetails": {\n    "audioContentType": ""\n  },\n  "authorizedSellerStatusDetails": {\n    "authorizedSellerStatus": "",\n    "targetingOptionId": ""\n  },\n  "browserDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "businessChainDetails": {\n    "displayName": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "carrierAndIspDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "categoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "channelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "contentDurationDetails": {\n    "contentDuration": "",\n    "targetingOptionId": ""\n  },\n  "contentGenreDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "contentInstreamPositionDetails": {\n    "adType": "",\n    "contentInstreamPosition": ""\n  },\n  "contentOutstreamPositionDetails": {\n    "adType": "",\n    "contentOutstreamPosition": ""\n  },\n  "contentStreamTypeDetails": {\n    "contentStreamType": "",\n    "targetingOptionId": ""\n  },\n  "dayAndTimeDetails": {\n    "dayOfWeek": "",\n    "endHour": 0,\n    "startHour": 0,\n    "timeZoneResolution": ""\n  },\n  "deviceMakeModelDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "deviceTypeDetails": {\n    "deviceType": "",\n    "youtubeAndPartnersBidMultiplier": ""\n  },\n  "digitalContentLabelExclusionDetails": {\n    "excludedContentRatingTier": ""\n  },\n  "environmentDetails": {\n    "environment": ""\n  },\n  "exchangeDetails": {\n    "exchange": ""\n  },\n  "genderDetails": {\n    "gender": ""\n  },\n  "geoRegionDetails": {\n    "displayName": "",\n    "geoRegionType": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "householdIncomeDetails": {\n    "householdIncome": ""\n  },\n  "inheritance": "",\n  "inventorySourceDetails": {\n    "inventorySourceId": ""\n  },\n  "inventorySourceGroupDetails": {\n    "inventorySourceGroupId": ""\n  },\n  "keywordDetails": {\n    "keyword": "",\n    "negative": false\n  },\n  "languageDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "name": "",\n  "nativeContentPositionDetails": {\n    "contentPosition": ""\n  },\n  "negativeKeywordListDetails": {\n    "negativeKeywordListId": ""\n  },\n  "omidDetails": {\n    "omid": ""\n  },\n  "onScreenPositionDetails": {\n    "adType": "",\n    "onScreenPosition": "",\n    "targetingOptionId": ""\n  },\n  "operatingSystemDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "parentalStatusDetails": {\n    "parentalStatus": ""\n  },\n  "poiDetails": {\n    "displayName": "",\n    "latitude": "",\n    "longitude": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "proximityLocationListDetails": {\n    "proximityLocationListId": "",\n    "proximityRadius": "",\n    "proximityRadiusUnit": ""\n  },\n  "regionalLocationListDetails": {\n    "negative": false,\n    "regionalLocationListId": ""\n  },\n  "sensitiveCategoryExclusionDetails": {\n    "excludedSensitiveCategory": ""\n  },\n  "sessionPositionDetails": {\n    "sessionPosition": ""\n  },\n  "subExchangeDetails": {\n    "targetingOptionId": ""\n  },\n  "targetingType": "",\n  "thirdPartyVerifierDetails": {\n    "adloox": {\n      "excludedAdlooxCategories": []\n    },\n    "doubleVerify": {\n      "appStarRating": {\n        "avoidInsufficientStarRating": false,\n        "avoidedStarRating": ""\n      },\n      "avoidedAgeRatings": [],\n      "brandSafetyCategories": {\n        "avoidUnknownBrandSafetyCategory": false,\n        "avoidedHighSeverityCategories": [],\n        "avoidedMediumSeverityCategories": []\n      },\n      "customSegmentId": "",\n      "displayViewability": {\n        "iab": "",\n        "viewableDuring": ""\n      },\n      "fraudInvalidTraffic": {\n        "avoidInsufficientOption": false,\n        "avoidedFraudOption": ""\n      },\n      "videoViewability": {\n        "playerImpressionRate": "",\n        "videoIab": "",\n        "videoViewableRate": ""\n      }\n    },\n    "integralAdScience": {\n      "customSegmentId": [],\n      "displayViewability": "",\n      "excludeUnrateable": false,\n      "excludedAdFraudRisk": "",\n      "excludedAdultRisk": "",\n      "excludedAlcoholRisk": "",\n      "excludedDrugsRisk": "",\n      "excludedGamblingRisk": "",\n      "excludedHateSpeechRisk": "",\n      "excludedIllegalDownloadsRisk": "",\n      "excludedOffensiveLanguageRisk": "",\n      "excludedViolenceRisk": "",\n      "traqScoreOption": "",\n      "videoViewability": ""\n    }\n  },\n  "urlDetails": {\n    "negative": false,\n    "url": ""\n  },\n  "userRewardedContentDetails": {\n    "targetingOptionId": "",\n    "userRewardedContent": ""\n  },\n  "videoPlayerSizeDetails": {\n    "videoPlayerSize": ""\n  },\n  "viewabilityDetails": {\n    "viewability": ""\n  },\n  "youtubeChannelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "youtubeVideoDetails": {\n    "negative": false,\n    "videoId": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "ageRangeDetails": ["ageRange": ""],
  "appCategoryDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "appDetails": [
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  ],
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": [
    "excludedFirstAndThirdPartyAudienceGroup": ["settings": [
        [
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        ]
      ]],
    "excludedGoogleAudienceGroup": ["settings": [["googleAudienceId": ""]]],
    "includedCombinedAudienceGroup": ["settings": [["combinedAudienceId": ""]]],
    "includedCustomListGroup": ["settings": [["customListId": ""]]],
    "includedFirstAndThirdPartyAudienceGroups": [[]],
    "includedGoogleAudienceGroup": []
  ],
  "audioContentTypeDetails": ["audioContentType": ""],
  "authorizedSellerStatusDetails": [
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  ],
  "browserDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "businessChainDetails": [
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  ],
  "carrierAndIspDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "categoryDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "channelDetails": [
    "channelId": "",
    "negative": false
  ],
  "contentDurationDetails": [
    "contentDuration": "",
    "targetingOptionId": ""
  ],
  "contentGenreDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "contentInstreamPositionDetails": [
    "adType": "",
    "contentInstreamPosition": ""
  ],
  "contentOutstreamPositionDetails": [
    "adType": "",
    "contentOutstreamPosition": ""
  ],
  "contentStreamTypeDetails": [
    "contentStreamType": "",
    "targetingOptionId": ""
  ],
  "dayAndTimeDetails": [
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  ],
  "deviceMakeModelDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "deviceTypeDetails": [
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  ],
  "digitalContentLabelExclusionDetails": ["excludedContentRatingTier": ""],
  "environmentDetails": ["environment": ""],
  "exchangeDetails": ["exchange": ""],
  "genderDetails": ["gender": ""],
  "geoRegionDetails": [
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "householdIncomeDetails": ["householdIncome": ""],
  "inheritance": "",
  "inventorySourceDetails": ["inventorySourceId": ""],
  "inventorySourceGroupDetails": ["inventorySourceGroupId": ""],
  "keywordDetails": [
    "keyword": "",
    "negative": false
  ],
  "languageDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "name": "",
  "nativeContentPositionDetails": ["contentPosition": ""],
  "negativeKeywordListDetails": ["negativeKeywordListId": ""],
  "omidDetails": ["omid": ""],
  "onScreenPositionDetails": [
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  ],
  "operatingSystemDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "parentalStatusDetails": ["parentalStatus": ""],
  "poiDetails": [
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  ],
  "proximityLocationListDetails": [
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  ],
  "regionalLocationListDetails": [
    "negative": false,
    "regionalLocationListId": ""
  ],
  "sensitiveCategoryExclusionDetails": ["excludedSensitiveCategory": ""],
  "sessionPositionDetails": ["sessionPosition": ""],
  "subExchangeDetails": ["targetingOptionId": ""],
  "targetingType": "",
  "thirdPartyVerifierDetails": [
    "adloox": ["excludedAdlooxCategories": []],
    "doubleVerify": [
      "appStarRating": [
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      ],
      "avoidedAgeRatings": [],
      "brandSafetyCategories": [
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      ],
      "customSegmentId": "",
      "displayViewability": [
        "iab": "",
        "viewableDuring": ""
      ],
      "fraudInvalidTraffic": [
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      ],
      "videoViewability": [
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      ]
    ],
    "integralAdScience": [
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    ]
  ],
  "urlDetails": [
    "negative": false,
    "url": ""
  ],
  "userRewardedContentDetails": [
    "targetingOptionId": "",
    "userRewardedContent": ""
  ],
  "videoPlayerSizeDetails": ["videoPlayerSize": ""],
  "viewabilityDetails": ["viewability": ""],
  "youtubeChannelDetails": [
    "channelId": "",
    "negative": false
  ],
  "youtubeVideoDetails": [
    "negative": false,
    "videoId": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")! 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()
DELETE displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.delete
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
QUERY PARAMS

advertiserId
lineItemId
targetingType
assignedTargetingOptionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

	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/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"))
    .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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId",
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

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/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId";

    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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
http DELETE {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")! 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 displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.get
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
QUERY PARAMS

advertiserId
lineItemId
targetingType
assignedTargetingOptionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

	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/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"))
    .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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId",
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

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/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId";

    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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
http GET {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")! 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 displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.list
{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions
QUERY PARAMS

advertiserId
lineItemId
targetingType
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"

	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/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"))
    .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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")
  .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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions',
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions');

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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions",
  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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")

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/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions";

    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}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions
http GET {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/lineItems/:lineItemId/targetingTypes/:targetingType/assignedTargetingOptions")! 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 displayvideo.advertisers.list
{{baseUrl}}/v2/advertisers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers")
require "http/client"

url = "{{baseUrl}}/v2/advertisers"

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}}/v2/advertisers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers"

	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/v2/advertisers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers"))
    .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}}/v2/advertisers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers")
  .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}}/v2/advertisers');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/advertisers'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers';
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}}/v2/advertisers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers',
  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}}/v2/advertisers'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers');

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}}/v2/advertisers'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers';
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}}/v2/advertisers"]
                                                       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}}/v2/advertisers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers",
  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}}/v2/advertisers');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers")

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/v2/advertisers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers";

    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}}/v2/advertisers
http GET {{baseUrl}}/v2/advertisers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers")! 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 displayvideo.advertisers.listAssignedTargetingOptions
{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions"

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}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions"

	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/v2/advertisers/:advertiserId:listAssignedTargetingOptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions"))
    .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}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions")
  .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}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions';
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}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId:listAssignedTargetingOptions',
  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}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions');

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}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions';
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}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions",
  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}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId:listAssignedTargetingOptions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions")

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/v2/advertisers/:advertiserId:listAssignedTargetingOptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions";

    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}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions
http GET {{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId:listAssignedTargetingOptions")! 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 displayvideo.advertisers.locationLists.assignedLocations.bulkEdit
{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit
QUERY PARAMS

advertiserId
locationListId
BODY json

{
  "createdAssignedLocations": [
    {
      "assignedLocationId": "",
      "name": "",
      "targetingOptionId": ""
    }
  ],
  "deletedAssignedLocations": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit");

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  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit" {:content-type :json
                                                                                                                                  :form-params {:createdAssignedLocations [{:assignedLocationId ""
                                                                                                                                                                            :name ""
                                                                                                                                                                            :targetingOptionId ""}]
                                                                                                                                                :deletedAssignedLocations []}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit"),
    Content = new StringContent("{\n  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit"

	payload := strings.NewReader("{\n  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\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/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 165

{
  "createdAssignedLocations": [
    {
      "assignedLocationId": "",
      "name": "",
      "targetingOptionId": ""
    }
  ],
  "deletedAssignedLocations": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\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  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit")
  .header("content-type", "application/json")
  .body("{\n  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\n}")
  .asString();
const data = JSON.stringify({
  createdAssignedLocations: [
    {
      assignedLocationId: '',
      name: '',
      targetingOptionId: ''
    }
  ],
  deletedAssignedLocations: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit',
  headers: {'content-type': 'application/json'},
  data: {
    createdAssignedLocations: [{assignedLocationId: '', name: '', targetingOptionId: ''}],
    deletedAssignedLocations: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createdAssignedLocations":[{"assignedLocationId":"","name":"","targetingOptionId":""}],"deletedAssignedLocations":[]}'
};

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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "createdAssignedLocations": [\n    {\n      "assignedLocationId": "",\n      "name": "",\n      "targetingOptionId": ""\n    }\n  ],\n  "deletedAssignedLocations": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit")
  .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/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit',
  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({
  createdAssignedLocations: [{assignedLocationId: '', name: '', targetingOptionId: ''}],
  deletedAssignedLocations: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit',
  headers: {'content-type': 'application/json'},
  body: {
    createdAssignedLocations: [{assignedLocationId: '', name: '', targetingOptionId: ''}],
    deletedAssignedLocations: []
  },
  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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  createdAssignedLocations: [
    {
      assignedLocationId: '',
      name: '',
      targetingOptionId: ''
    }
  ],
  deletedAssignedLocations: []
});

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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit',
  headers: {'content-type': 'application/json'},
  data: {
    createdAssignedLocations: [{assignedLocationId: '', name: '', targetingOptionId: ''}],
    deletedAssignedLocations: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createdAssignedLocations":[{"assignedLocationId":"","name":"","targetingOptionId":""}],"deletedAssignedLocations":[]}'
};

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 = @{ @"createdAssignedLocations": @[ @{ @"assignedLocationId": @"", @"name": @"", @"targetingOptionId": @"" } ],
                              @"deletedAssignedLocations": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit"]
                                                       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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit",
  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([
    'createdAssignedLocations' => [
        [
                'assignedLocationId' => '',
                'name' => '',
                'targetingOptionId' => ''
        ]
    ],
    'deletedAssignedLocations' => [
        
    ]
  ]),
  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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit', [
  'body' => '{
  "createdAssignedLocations": [
    {
      "assignedLocationId": "",
      "name": "",
      "targetingOptionId": ""
    }
  ],
  "deletedAssignedLocations": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'createdAssignedLocations' => [
    [
        'assignedLocationId' => '',
        'name' => '',
        'targetingOptionId' => ''
    ]
  ],
  'deletedAssignedLocations' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'createdAssignedLocations' => [
    [
        'assignedLocationId' => '',
        'name' => '',
        'targetingOptionId' => ''
    ]
  ],
  'deletedAssignedLocations' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit');
$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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createdAssignedLocations": [
    {
      "assignedLocationId": "",
      "name": "",
      "targetingOptionId": ""
    }
  ],
  "deletedAssignedLocations": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createdAssignedLocations": [
    {
      "assignedLocationId": "",
      "name": "",
      "targetingOptionId": ""
    }
  ],
  "deletedAssignedLocations": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit"

payload = {
    "createdAssignedLocations": [
        {
            "assignedLocationId": "",
            "name": "",
            "targetingOptionId": ""
        }
    ],
    "deletedAssignedLocations": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit"

payload <- "{\n  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit")

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  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\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/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit') do |req|
  req.body = "{\n  \"createdAssignedLocations\": [\n    {\n      \"assignedLocationId\": \"\",\n      \"name\": \"\",\n      \"targetingOptionId\": \"\"\n    }\n  ],\n  \"deletedAssignedLocations\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit";

    let payload = json!({
        "createdAssignedLocations": (
            json!({
                "assignedLocationId": "",
                "name": "",
                "targetingOptionId": ""
            })
        ),
        "deletedAssignedLocations": ()
    });

    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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit \
  --header 'content-type: application/json' \
  --data '{
  "createdAssignedLocations": [
    {
      "assignedLocationId": "",
      "name": "",
      "targetingOptionId": ""
    }
  ],
  "deletedAssignedLocations": []
}'
echo '{
  "createdAssignedLocations": [
    {
      "assignedLocationId": "",
      "name": "",
      "targetingOptionId": ""
    }
  ],
  "deletedAssignedLocations": []
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "createdAssignedLocations": [\n    {\n      "assignedLocationId": "",\n      "name": "",\n      "targetingOptionId": ""\n    }\n  ],\n  "deletedAssignedLocations": []\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "createdAssignedLocations": [
    [
      "assignedLocationId": "",
      "name": "",
      "targetingOptionId": ""
    ]
  ],
  "deletedAssignedLocations": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations:bulkEdit")! 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()
POST displayvideo.advertisers.locationLists.assignedLocations.create
{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations
QUERY PARAMS

advertiserId
locationListId
BODY json

{
  "assignedLocationId": "",
  "name": "",
  "targetingOptionId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations");

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  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations" {:content-type :json
                                                                                                                         :form-params {:assignedLocationId ""
                                                                                                                                       :name ""
                                                                                                                                       :targetingOptionId ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"),
    Content = new StringContent("{\n  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"

	payload := strings.NewReader("{\n  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\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/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 71

{
  "assignedLocationId": "",
  "name": "",
  "targetingOptionId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\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  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")
  .header("content-type", "application/json")
  .body("{\n  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  assignedLocationId: '',
  name: '',
  targetingOptionId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations',
  headers: {'content-type': 'application/json'},
  data: {assignedLocationId: '', name: '', targetingOptionId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"assignedLocationId":"","name":"","targetingOptionId":""}'
};

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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "assignedLocationId": "",\n  "name": "",\n  "targetingOptionId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")
  .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/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations',
  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({assignedLocationId: '', name: '', targetingOptionId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations',
  headers: {'content-type': 'application/json'},
  body: {assignedLocationId: '', name: '', targetingOptionId: ''},
  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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  assignedLocationId: '',
  name: '',
  targetingOptionId: ''
});

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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations',
  headers: {'content-type': 'application/json'},
  data: {assignedLocationId: '', name: '', targetingOptionId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"assignedLocationId":"","name":"","targetingOptionId":""}'
};

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 = @{ @"assignedLocationId": @"",
                              @"name": @"",
                              @"targetingOptionId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"]
                                                       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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations",
  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([
    'assignedLocationId' => '',
    'name' => '',
    'targetingOptionId' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations', [
  'body' => '{
  "assignedLocationId": "",
  "name": "",
  "targetingOptionId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'assignedLocationId' => '',
  'name' => '',
  'targetingOptionId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'assignedLocationId' => '',
  'name' => '',
  'targetingOptionId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations');
$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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "assignedLocationId": "",
  "name": "",
  "targetingOptionId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "assignedLocationId": "",
  "name": "",
  "targetingOptionId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"

payload = {
    "assignedLocationId": "",
    "name": "",
    "targetingOptionId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"

payload <- "{\n  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")

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  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\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/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations') do |req|
  req.body = "{\n  \"assignedLocationId\": \"\",\n  \"name\": \"\",\n  \"targetingOptionId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations";

    let payload = json!({
        "assignedLocationId": "",
        "name": "",
        "targetingOptionId": ""
    });

    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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations \
  --header 'content-type: application/json' \
  --data '{
  "assignedLocationId": "",
  "name": "",
  "targetingOptionId": ""
}'
echo '{
  "assignedLocationId": "",
  "name": "",
  "targetingOptionId": ""
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "assignedLocationId": "",\n  "name": "",\n  "targetingOptionId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "assignedLocationId": "",
  "name": "",
  "targetingOptionId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")! 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()
DELETE displayvideo.advertisers.locationLists.assignedLocations.delete
{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId
QUERY PARAMS

advertiserId
locationListId
assignedLocationId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId"

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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId"

	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/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId"))
    .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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId")
  .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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId';
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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId',
  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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId');

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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId';
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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId"]
                                                       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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId",
  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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId")

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/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId";

    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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId
http DELETE {{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations/:assignedLocationId")! 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 displayvideo.advertisers.locationLists.assignedLocations.list
{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations
QUERY PARAMS

advertiserId
locationListId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"

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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"

	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/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"))
    .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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")
  .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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations';
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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations',
  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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations');

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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations';
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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"]
                                                       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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations",
  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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")

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/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations";

    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}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations
http GET {{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId/assignedLocations")! 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 displayvideo.advertisers.locationLists.create
{{baseUrl}}/v2/advertisers/:advertiserId/locationLists
QUERY PARAMS

advertiserId
BODY json

{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists");

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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists" {:content-type :json
                                                                                       :form-params {:advertiserId ""
                                                                                                     :displayName ""
                                                                                                     :locationListId ""
                                                                                                     :locationType ""
                                                                                                     :name ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\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}}/v2/advertisers/:advertiserId/locationLists"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\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}}/v2/advertisers/:advertiserId/locationLists");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\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/v2/advertisers/:advertiserId/locationLists HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 105

{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  displayName: '',
  locationListId: '',
  locationType: '',
  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}}/v2/advertisers/:advertiserId/locationLists');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    displayName: '',
    locationListId: '',
    locationType: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","displayName":"","locationListId":"","locationType":"","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}}/v2/advertisers/:advertiserId/locationLists',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "displayName": "",\n  "locationListId": "",\n  "locationType": "",\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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists")
  .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/v2/advertisers/:advertiserId/locationLists',
  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({
  advertiserId: '',
  displayName: '',
  locationListId: '',
  locationType: '',
  name: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    displayName: '',
    locationListId: '',
    locationType: '',
    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}}/v2/advertisers/:advertiserId/locationLists');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  displayName: '',
  locationListId: '',
  locationType: '',
  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}}/v2/advertisers/:advertiserId/locationLists',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    displayName: '',
    locationListId: '',
    locationType: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","displayName":"","locationListId":"","locationType":"","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 = @{ @"advertiserId": @"",
                              @"displayName": @"",
                              @"locationListId": @"",
                              @"locationType": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/locationLists"]
                                                       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}}/v2/advertisers/:advertiserId/locationLists" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists",
  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([
    'advertiserId' => '',
    'displayName' => '',
    'locationListId' => '',
    'locationType' => '',
    '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}}/v2/advertisers/:advertiserId/locationLists', [
  'body' => '{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'displayName' => '',
  'locationListId' => '',
  'locationType' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'displayName' => '',
  'locationListId' => '',
  'locationType' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists');
$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}}/v2/advertisers/:advertiserId/locationLists' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/locationLists", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists"

payload = {
    "advertiserId": "",
    "displayName": "",
    "locationListId": "",
    "locationType": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists"

payload <- "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\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}}/v2/advertisers/:advertiserId/locationLists")

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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\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/v2/advertisers/:advertiserId/locationLists') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\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}}/v2/advertisers/:advertiserId/locationLists";

    let payload = json!({
        "advertiserId": "",
        "displayName": "",
        "locationListId": "",
        "locationType": "",
        "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}}/v2/advertisers/:advertiserId/locationLists \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}'
echo '{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/locationLists \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "displayName": "",\n  "locationListId": "",\n  "locationType": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/locationLists
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists")! 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 displayvideo.advertisers.locationLists.list
{{baseUrl}}/v2/advertisers/:advertiserId/locationLists
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists"

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}}/v2/advertisers/:advertiserId/locationLists"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists"

	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/v2/advertisers/:advertiserId/locationLists HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists"))
    .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}}/v2/advertisers/:advertiserId/locationLists")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists")
  .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}}/v2/advertisers/:advertiserId/locationLists');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists';
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}}/v2/advertisers/:advertiserId/locationLists',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/locationLists',
  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}}/v2/advertisers/:advertiserId/locationLists'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists');

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}}/v2/advertisers/:advertiserId/locationLists'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists';
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}}/v2/advertisers/:advertiserId/locationLists"]
                                                       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}}/v2/advertisers/:advertiserId/locationLists" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists",
  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}}/v2/advertisers/:advertiserId/locationLists');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/locationLists")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists")

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/v2/advertisers/:advertiserId/locationLists') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists";

    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}}/v2/advertisers/:advertiserId/locationLists
http GET {{baseUrl}}/v2/advertisers/:advertiserId/locationLists
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/locationLists
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists")! 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 displayvideo.advertisers.locationLists.patch
{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId
QUERY PARAMS

advertiserId
locationListId
BODY json

{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId");

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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId" {:content-type :json
                                                                                                        :form-params {:advertiserId ""
                                                                                                                      :displayName ""
                                                                                                                      :locationListId ""
                                                                                                                      :locationType ""
                                                                                                                      :name ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\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}}/v2/advertisers/:advertiserId/locationLists/:locationListId"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\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}}/v2/advertisers/:advertiserId/locationLists/:locationListId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\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/v2/advertisers/:advertiserId/locationLists/:locationListId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 105

{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  displayName: '',
  locationListId: '',
  locationType: '',
  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}}/v2/advertisers/:advertiserId/locationLists/:locationListId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    displayName: '',
    locationListId: '',
    locationType: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","displayName":"","locationListId":"","locationType":"","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}}/v2/advertisers/:advertiserId/locationLists/:locationListId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "displayName": "",\n  "locationListId": "",\n  "locationType": "",\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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId")
  .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/v2/advertisers/:advertiserId/locationLists/:locationListId',
  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({
  advertiserId: '',
  displayName: '',
  locationListId: '',
  locationType: '',
  name: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    displayName: '',
    locationListId: '',
    locationType: '',
    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}}/v2/advertisers/:advertiserId/locationLists/:locationListId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  displayName: '',
  locationListId: '',
  locationType: '',
  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}}/v2/advertisers/:advertiserId/locationLists/:locationListId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    displayName: '',
    locationListId: '',
    locationType: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","displayName":"","locationListId":"","locationType":"","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 = @{ @"advertiserId": @"",
                              @"displayName": @"",
                              @"locationListId": @"",
                              @"locationType": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId"]
                                                       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}}/v2/advertisers/:advertiserId/locationLists/:locationListId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId",
  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([
    'advertiserId' => '',
    'displayName' => '',
    'locationListId' => '',
    'locationType' => '',
    '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}}/v2/advertisers/:advertiserId/locationLists/:locationListId', [
  'body' => '{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'displayName' => '',
  'locationListId' => '',
  'locationType' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'displayName' => '',
  'locationListId' => '',
  'locationType' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId');
$request->setRequestMethod('PATCH');
$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}}/v2/advertisers/:advertiserId/locationLists/:locationListId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/v2/advertisers/:advertiserId/locationLists/:locationListId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId"

payload = {
    "advertiserId": "",
    "displayName": "",
    "locationListId": "",
    "locationType": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId"

payload <- "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId")

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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\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/v2/advertisers/:advertiserId/locationLists/:locationListId') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"locationListId\": \"\",\n  \"locationType\": \"\",\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}}/v2/advertisers/:advertiserId/locationLists/:locationListId";

    let payload = json!({
        "advertiserId": "",
        "displayName": "",
        "locationListId": "",
        "locationType": "",
        "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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}'
echo '{
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
}' |  \
  http PATCH {{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "displayName": "",\n  "locationListId": "",\n  "locationType": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "displayName": "",
  "locationListId": "",
  "locationType": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/locationLists/:locationListId")! 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()
POST displayvideo.advertisers.manualTriggers.activate
{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate
QUERY PARAMS

advertiserId
triggerId
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate");

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, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate"),
    Content = new StringContent("{}")
    {
        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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate"

	payload := strings.NewReader("{}")

	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/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .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, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate")
  .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/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate',
  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({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate',
  headers: {'content-type': 'application/json'},
  body: {},
  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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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 = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate"]
                                                       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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate",
  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([
    
  ]),
  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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate');
$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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate"

payload <- "{}"

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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate")

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 = "{}"

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/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate";

    let payload = json!({});

    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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:activate")! 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()
POST displayvideo.advertisers.manualTriggers.create
{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers
QUERY PARAMS

advertiserId
BODY json

{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers");

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  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers" {:content-type :json
                                                                                        :form-params {:activationDurationMinutes ""
                                                                                                      :advertiserId ""
                                                                                                      :displayName ""
                                                                                                      :latestActivationTime ""
                                                                                                      :name ""
                                                                                                      :state ""
                                                                                                      :triggerId ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\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}}/v2/advertisers/:advertiserId/manualTriggers"),
    Content = new StringContent("{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\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}}/v2/advertisers/:advertiserId/manualTriggers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers"

	payload := strings.NewReader("{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\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/v2/advertisers/:advertiserId/manualTriggers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 158

{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\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  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers")
  .header("content-type", "application/json")
  .body("{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  activationDurationMinutes: '',
  advertiserId: '',
  displayName: '',
  latestActivationTime: '',
  name: '',
  state: '',
  triggerId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers',
  headers: {'content-type': 'application/json'},
  data: {
    activationDurationMinutes: '',
    advertiserId: '',
    displayName: '',
    latestActivationTime: '',
    name: '',
    state: '',
    triggerId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"activationDurationMinutes":"","advertiserId":"","displayName":"","latestActivationTime":"","name":"","state":"","triggerId":""}'
};

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}}/v2/advertisers/:advertiserId/manualTriggers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "activationDurationMinutes": "",\n  "advertiserId": "",\n  "displayName": "",\n  "latestActivationTime": "",\n  "name": "",\n  "state": "",\n  "triggerId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers")
  .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/v2/advertisers/:advertiserId/manualTriggers',
  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({
  activationDurationMinutes: '',
  advertiserId: '',
  displayName: '',
  latestActivationTime: '',
  name: '',
  state: '',
  triggerId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers',
  headers: {'content-type': 'application/json'},
  body: {
    activationDurationMinutes: '',
    advertiserId: '',
    displayName: '',
    latestActivationTime: '',
    name: '',
    state: '',
    triggerId: ''
  },
  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}}/v2/advertisers/:advertiserId/manualTriggers');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  activationDurationMinutes: '',
  advertiserId: '',
  displayName: '',
  latestActivationTime: '',
  name: '',
  state: '',
  triggerId: ''
});

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}}/v2/advertisers/:advertiserId/manualTriggers',
  headers: {'content-type': 'application/json'},
  data: {
    activationDurationMinutes: '',
    advertiserId: '',
    displayName: '',
    latestActivationTime: '',
    name: '',
    state: '',
    triggerId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"activationDurationMinutes":"","advertiserId":"","displayName":"","latestActivationTime":"","name":"","state":"","triggerId":""}'
};

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 = @{ @"activationDurationMinutes": @"",
                              @"advertiserId": @"",
                              @"displayName": @"",
                              @"latestActivationTime": @"",
                              @"name": @"",
                              @"state": @"",
                              @"triggerId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers"]
                                                       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}}/v2/advertisers/:advertiserId/manualTriggers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers",
  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([
    'activationDurationMinutes' => '',
    'advertiserId' => '',
    'displayName' => '',
    'latestActivationTime' => '',
    'name' => '',
    'state' => '',
    'triggerId' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/manualTriggers', [
  'body' => '{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'activationDurationMinutes' => '',
  'advertiserId' => '',
  'displayName' => '',
  'latestActivationTime' => '',
  'name' => '',
  'state' => '',
  'triggerId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'activationDurationMinutes' => '',
  'advertiserId' => '',
  'displayName' => '',
  'latestActivationTime' => '',
  'name' => '',
  'state' => '',
  'triggerId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers');
$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}}/v2/advertisers/:advertiserId/manualTriggers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/manualTriggers", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers"

payload = {
    "activationDurationMinutes": "",
    "advertiserId": "",
    "displayName": "",
    "latestActivationTime": "",
    "name": "",
    "state": "",
    "triggerId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers"

payload <- "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\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}}/v2/advertisers/:advertiserId/manualTriggers")

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  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\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/v2/advertisers/:advertiserId/manualTriggers') do |req|
  req.body = "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers";

    let payload = json!({
        "activationDurationMinutes": "",
        "advertiserId": "",
        "displayName": "",
        "latestActivationTime": "",
        "name": "",
        "state": "",
        "triggerId": ""
    });

    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}}/v2/advertisers/:advertiserId/manualTriggers \
  --header 'content-type: application/json' \
  --data '{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}'
echo '{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "activationDurationMinutes": "",\n  "advertiserId": "",\n  "displayName": "",\n  "latestActivationTime": "",\n  "name": "",\n  "state": "",\n  "triggerId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers")! 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()
POST displayvideo.advertisers.manualTriggers.deactivate
{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate
QUERY PARAMS

advertiserId
triggerId
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate");

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, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate"),
    Content = new StringContent("{}")
    {
        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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate"

	payload := strings.NewReader("{}")

	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/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .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, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate")
  .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/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate',
  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({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate',
  headers: {'content-type': 'application/json'},
  body: {},
  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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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 = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate"]
                                                       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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate",
  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([
    
  ]),
  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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate');
$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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate"

payload <- "{}"

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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate")

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 = "{}"

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/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate";

    let payload = json!({});

    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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId:deactivate")! 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 displayvideo.advertisers.manualTriggers.get
{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId
QUERY PARAMS

advertiserId
triggerId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"

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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"

	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/v2/advertisers/:advertiserId/manualTriggers/:triggerId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"))
    .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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId")
  .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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId';
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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/manualTriggers/:triggerId',
  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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId');

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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId';
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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"]
                                                       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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId",
  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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/manualTriggers/:triggerId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId")

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/v2/advertisers/:advertiserId/manualTriggers/:triggerId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId";

    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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId
http GET {{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId")! 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 displayvideo.advertisers.manualTriggers.list
{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers"

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}}/v2/advertisers/:advertiserId/manualTriggers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers"

	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/v2/advertisers/:advertiserId/manualTriggers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers"))
    .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}}/v2/advertisers/:advertiserId/manualTriggers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers")
  .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}}/v2/advertisers/:advertiserId/manualTriggers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers';
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}}/v2/advertisers/:advertiserId/manualTriggers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/manualTriggers',
  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}}/v2/advertisers/:advertiserId/manualTriggers'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers');

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}}/v2/advertisers/:advertiserId/manualTriggers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers';
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}}/v2/advertisers/:advertiserId/manualTriggers"]
                                                       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}}/v2/advertisers/:advertiserId/manualTriggers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers",
  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}}/v2/advertisers/:advertiserId/manualTriggers');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/manualTriggers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers")

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/v2/advertisers/:advertiserId/manualTriggers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers";

    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}}/v2/advertisers/:advertiserId/manualTriggers
http GET {{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers")! 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 displayvideo.advertisers.manualTriggers.patch
{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId
QUERY PARAMS

advertiserId
triggerId
BODY json

{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId");

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  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId" {:content-type :json
                                                                                                    :form-params {:activationDurationMinutes ""
                                                                                                                  :advertiserId ""
                                                                                                                  :displayName ""
                                                                                                                  :latestActivationTime ""
                                                                                                                  :name ""
                                                                                                                  :state ""
                                                                                                                  :triggerId ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"),
    Content = new StringContent("{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"

	payload := strings.NewReader("{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\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/v2/advertisers/:advertiserId/manualTriggers/:triggerId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 158

{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\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  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId")
  .header("content-type", "application/json")
  .body("{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  activationDurationMinutes: '',
  advertiserId: '',
  displayName: '',
  latestActivationTime: '',
  name: '',
  state: '',
  triggerId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId',
  headers: {'content-type': 'application/json'},
  data: {
    activationDurationMinutes: '',
    advertiserId: '',
    displayName: '',
    latestActivationTime: '',
    name: '',
    state: '',
    triggerId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"activationDurationMinutes":"","advertiserId":"","displayName":"","latestActivationTime":"","name":"","state":"","triggerId":""}'
};

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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "activationDurationMinutes": "",\n  "advertiserId": "",\n  "displayName": "",\n  "latestActivationTime": "",\n  "name": "",\n  "state": "",\n  "triggerId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId")
  .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/v2/advertisers/:advertiserId/manualTriggers/:triggerId',
  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({
  activationDurationMinutes: '',
  advertiserId: '',
  displayName: '',
  latestActivationTime: '',
  name: '',
  state: '',
  triggerId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId',
  headers: {'content-type': 'application/json'},
  body: {
    activationDurationMinutes: '',
    advertiserId: '',
    displayName: '',
    latestActivationTime: '',
    name: '',
    state: '',
    triggerId: ''
  },
  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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  activationDurationMinutes: '',
  advertiserId: '',
  displayName: '',
  latestActivationTime: '',
  name: '',
  state: '',
  triggerId: ''
});

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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId',
  headers: {'content-type': 'application/json'},
  data: {
    activationDurationMinutes: '',
    advertiserId: '',
    displayName: '',
    latestActivationTime: '',
    name: '',
    state: '',
    triggerId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"activationDurationMinutes":"","advertiserId":"","displayName":"","latestActivationTime":"","name":"","state":"","triggerId":""}'
};

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 = @{ @"activationDurationMinutes": @"",
                              @"advertiserId": @"",
                              @"displayName": @"",
                              @"latestActivationTime": @"",
                              @"name": @"",
                              @"state": @"",
                              @"triggerId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"]
                                                       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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId",
  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([
    'activationDurationMinutes' => '',
    'advertiserId' => '',
    'displayName' => '',
    'latestActivationTime' => '',
    'name' => '',
    'state' => '',
    'triggerId' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId', [
  'body' => '{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'activationDurationMinutes' => '',
  'advertiserId' => '',
  'displayName' => '',
  'latestActivationTime' => '',
  'name' => '',
  'state' => '',
  'triggerId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'activationDurationMinutes' => '',
  'advertiserId' => '',
  'displayName' => '',
  'latestActivationTime' => '',
  'name' => '',
  'state' => '',
  'triggerId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId');
$request->setRequestMethod('PATCH');
$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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/v2/advertisers/:advertiserId/manualTriggers/:triggerId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"

payload = {
    "activationDurationMinutes": "",
    "advertiserId": "",
    "displayName": "",
    "latestActivationTime": "",
    "name": "",
    "state": "",
    "triggerId": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId"

payload <- "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId")

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  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\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/v2/advertisers/:advertiserId/manualTriggers/:triggerId') do |req|
  req.body = "{\n  \"activationDurationMinutes\": \"\",\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"latestActivationTime\": \"\",\n  \"name\": \"\",\n  \"state\": \"\",\n  \"triggerId\": \"\"\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}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId";

    let payload = json!({
        "activationDurationMinutes": "",
        "advertiserId": "",
        "displayName": "",
        "latestActivationTime": "",
        "name": "",
        "state": "",
        "triggerId": ""
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId \
  --header 'content-type: application/json' \
  --data '{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}'
echo '{
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
}' |  \
  http PATCH {{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "activationDurationMinutes": "",\n  "advertiserId": "",\n  "displayName": "",\n  "latestActivationTime": "",\n  "name": "",\n  "state": "",\n  "triggerId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "activationDurationMinutes": "",
  "advertiserId": "",
  "displayName": "",
  "latestActivationTime": "",
  "name": "",
  "state": "",
  "triggerId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/manualTriggers/:triggerId")! 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()
POST displayvideo.advertisers.negativeKeywordLists.create
{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists
QUERY PARAMS

advertiserId
BODY json

{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists");

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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists" {:content-type :json
                                                                                              :form-params {:advertiserId ""
                                                                                                            :displayName ""
                                                                                                            :name ""
                                                                                                            :negativeKeywordListId ""
                                                                                                            :targetedLineItemCount ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\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}}/v2/advertisers/:advertiserId/negativeKeywordLists"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\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}}/v2/advertisers/:advertiserId/negativeKeywordLists");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\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/v2/advertisers/:advertiserId/negativeKeywordLists HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 121

{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  displayName: '',
  name: '',
  negativeKeywordListId: '',
  targetedLineItemCount: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    displayName: '',
    name: '',
    negativeKeywordListId: '',
    targetedLineItemCount: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","displayName":"","name":"","negativeKeywordListId":"","targetedLineItemCount":""}'
};

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}}/v2/advertisers/:advertiserId/negativeKeywordLists',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "displayName": "",\n  "name": "",\n  "negativeKeywordListId": "",\n  "targetedLineItemCount": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists")
  .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/v2/advertisers/:advertiserId/negativeKeywordLists',
  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({
  advertiserId: '',
  displayName: '',
  name: '',
  negativeKeywordListId: '',
  targetedLineItemCount: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    displayName: '',
    name: '',
    negativeKeywordListId: '',
    targetedLineItemCount: ''
  },
  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}}/v2/advertisers/:advertiserId/negativeKeywordLists');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  displayName: '',
  name: '',
  negativeKeywordListId: '',
  targetedLineItemCount: ''
});

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}}/v2/advertisers/:advertiserId/negativeKeywordLists',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    displayName: '',
    name: '',
    negativeKeywordListId: '',
    targetedLineItemCount: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","displayName":"","name":"","negativeKeywordListId":"","targetedLineItemCount":""}'
};

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 = @{ @"advertiserId": @"",
                              @"displayName": @"",
                              @"name": @"",
                              @"negativeKeywordListId": @"",
                              @"targetedLineItemCount": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists"]
                                                       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}}/v2/advertisers/:advertiserId/negativeKeywordLists" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists",
  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([
    'advertiserId' => '',
    'displayName' => '',
    'name' => '',
    'negativeKeywordListId' => '',
    'targetedLineItemCount' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/negativeKeywordLists', [
  'body' => '{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'displayName' => '',
  'name' => '',
  'negativeKeywordListId' => '',
  'targetedLineItemCount' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'displayName' => '',
  'name' => '',
  'negativeKeywordListId' => '',
  'targetedLineItemCount' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists');
$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}}/v2/advertisers/:advertiserId/negativeKeywordLists' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/negativeKeywordLists", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists"

payload = {
    "advertiserId": "",
    "displayName": "",
    "name": "",
    "negativeKeywordListId": "",
    "targetedLineItemCount": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists"

payload <- "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\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}}/v2/advertisers/:advertiserId/negativeKeywordLists")

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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\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/v2/advertisers/:advertiserId/negativeKeywordLists') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists";

    let payload = json!({
        "advertiserId": "",
        "displayName": "",
        "name": "",
        "negativeKeywordListId": "",
        "targetedLineItemCount": ""
    });

    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}}/v2/advertisers/:advertiserId/negativeKeywordLists \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}'
echo '{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "displayName": "",\n  "name": "",\n  "negativeKeywordListId": "",\n  "targetedLineItemCount": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists")! 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 displayvideo.advertisers.negativeKeywordLists.list
{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists"

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}}/v2/advertisers/:advertiserId/negativeKeywordLists"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists"

	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/v2/advertisers/:advertiserId/negativeKeywordLists HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists"))
    .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}}/v2/advertisers/:advertiserId/negativeKeywordLists")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists")
  .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}}/v2/advertisers/:advertiserId/negativeKeywordLists');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists';
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}}/v2/advertisers/:advertiserId/negativeKeywordLists',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/negativeKeywordLists',
  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}}/v2/advertisers/:advertiserId/negativeKeywordLists'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists');

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}}/v2/advertisers/:advertiserId/negativeKeywordLists'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists';
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}}/v2/advertisers/:advertiserId/negativeKeywordLists"]
                                                       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}}/v2/advertisers/:advertiserId/negativeKeywordLists" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists",
  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}}/v2/advertisers/:advertiserId/negativeKeywordLists');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/negativeKeywordLists")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists")

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/v2/advertisers/:advertiserId/negativeKeywordLists') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists";

    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}}/v2/advertisers/:advertiserId/negativeKeywordLists
http GET {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists")! 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 displayvideo.advertisers.negativeKeywordLists.negativeKeywords.bulkEdit
{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit
QUERY PARAMS

advertiserId
negativeKeywordListId
BODY json

{
  "createdNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ],
  "deletedNegativeKeywords": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit");

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  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit" {:content-type :json
                                                                                                                                               :form-params {:createdNegativeKeywords [{:keywordValue ""
                                                                                                                                                                                        :name ""}]
                                                                                                                                                             :deletedNegativeKeywords []}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit"),
    Content = new StringContent("{\n  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit"

	payload := strings.NewReader("{\n  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\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/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 126

{
  "createdNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ],
  "deletedNegativeKeywords": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\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  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit")
  .header("content-type", "application/json")
  .body("{\n  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\n}")
  .asString();
const data = JSON.stringify({
  createdNegativeKeywords: [
    {
      keywordValue: '',
      name: ''
    }
  ],
  deletedNegativeKeywords: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit',
  headers: {'content-type': 'application/json'},
  data: {
    createdNegativeKeywords: [{keywordValue: '', name: ''}],
    deletedNegativeKeywords: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createdNegativeKeywords":[{"keywordValue":"","name":""}],"deletedNegativeKeywords":[]}'
};

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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "createdNegativeKeywords": [\n    {\n      "keywordValue": "",\n      "name": ""\n    }\n  ],\n  "deletedNegativeKeywords": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit")
  .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/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit',
  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({
  createdNegativeKeywords: [{keywordValue: '', name: ''}],
  deletedNegativeKeywords: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit',
  headers: {'content-type': 'application/json'},
  body: {
    createdNegativeKeywords: [{keywordValue: '', name: ''}],
    deletedNegativeKeywords: []
  },
  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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  createdNegativeKeywords: [
    {
      keywordValue: '',
      name: ''
    }
  ],
  deletedNegativeKeywords: []
});

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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit',
  headers: {'content-type': 'application/json'},
  data: {
    createdNegativeKeywords: [{keywordValue: '', name: ''}],
    deletedNegativeKeywords: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createdNegativeKeywords":[{"keywordValue":"","name":""}],"deletedNegativeKeywords":[]}'
};

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 = @{ @"createdNegativeKeywords": @[ @{ @"keywordValue": @"", @"name": @"" } ],
                              @"deletedNegativeKeywords": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit"]
                                                       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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit",
  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([
    'createdNegativeKeywords' => [
        [
                'keywordValue' => '',
                'name' => ''
        ]
    ],
    'deletedNegativeKeywords' => [
        
    ]
  ]),
  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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit', [
  'body' => '{
  "createdNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ],
  "deletedNegativeKeywords": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'createdNegativeKeywords' => [
    [
        'keywordValue' => '',
        'name' => ''
    ]
  ],
  'deletedNegativeKeywords' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'createdNegativeKeywords' => [
    [
        'keywordValue' => '',
        'name' => ''
    ]
  ],
  'deletedNegativeKeywords' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit');
$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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createdNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ],
  "deletedNegativeKeywords": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createdNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ],
  "deletedNegativeKeywords": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit"

payload = {
    "createdNegativeKeywords": [
        {
            "keywordValue": "",
            "name": ""
        }
    ],
    "deletedNegativeKeywords": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit"

payload <- "{\n  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit")

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  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\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/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit') do |req|
  req.body = "{\n  \"createdNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedNegativeKeywords\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit";

    let payload = json!({
        "createdNegativeKeywords": (
            json!({
                "keywordValue": "",
                "name": ""
            })
        ),
        "deletedNegativeKeywords": ()
    });

    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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit \
  --header 'content-type: application/json' \
  --data '{
  "createdNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ],
  "deletedNegativeKeywords": []
}'
echo '{
  "createdNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ],
  "deletedNegativeKeywords": []
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "createdNegativeKeywords": [\n    {\n      "keywordValue": "",\n      "name": ""\n    }\n  ],\n  "deletedNegativeKeywords": []\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "createdNegativeKeywords": [
    [
      "keywordValue": "",
      "name": ""
    ]
  ],
  "deletedNegativeKeywords": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:bulkEdit")! 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()
DELETE displayvideo.advertisers.negativeKeywordLists.negativeKeywords.delete
{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue
QUERY PARAMS

advertiserId
negativeKeywordListId
keywordValue
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue"

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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue"

	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/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue"))
    .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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue")
  .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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue';
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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue',
  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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue');

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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue';
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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue"]
                                                       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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue",
  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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue")

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/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue";

    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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue
http DELETE {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords/:keywordValue")! 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 displayvideo.advertisers.negativeKeywordLists.negativeKeywords.list
{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords
QUERY PARAMS

advertiserId
negativeKeywordListId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords"

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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords"

	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/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords"))
    .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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords")
  .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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords';
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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords',
  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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords');

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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords';
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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords"]
                                                       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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords",
  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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords")

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/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords";

    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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords
http GET {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords")! 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 displayvideo.advertisers.negativeKeywordLists.negativeKeywords.replace
{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace
QUERY PARAMS

advertiserId
negativeKeywordListId
BODY json

{
  "newNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace");

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  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace" {:content-type :json
                                                                                                                                              :form-params {:newNegativeKeywords [{:keywordValue ""
                                                                                                                                                                                   :name ""}]}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace"),
    Content = new StringContent("{\n  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace"

	payload := strings.NewReader("{\n  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\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/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 89

{
  "newNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\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  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace")
  .header("content-type", "application/json")
  .body("{\n  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  newNegativeKeywords: [
    {
      keywordValue: '',
      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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace',
  headers: {'content-type': 'application/json'},
  data: {newNegativeKeywords: [{keywordValue: '', name: ''}]}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"newNegativeKeywords":[{"keywordValue":"","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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "newNegativeKeywords": [\n    {\n      "keywordValue": "",\n      "name": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace")
  .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/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace',
  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({newNegativeKeywords: [{keywordValue: '', name: ''}]}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace',
  headers: {'content-type': 'application/json'},
  body: {newNegativeKeywords: [{keywordValue: '', 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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  newNegativeKeywords: [
    {
      keywordValue: '',
      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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace',
  headers: {'content-type': 'application/json'},
  data: {newNegativeKeywords: [{keywordValue: '', name: ''}]}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"newNegativeKeywords":[{"keywordValue":"","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 = @{ @"newNegativeKeywords": @[ @{ @"keywordValue": @"", @"name": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace"]
                                                       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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace",
  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([
    'newNegativeKeywords' => [
        [
                'keywordValue' => '',
                '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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace', [
  'body' => '{
  "newNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'newNegativeKeywords' => [
    [
        'keywordValue' => '',
        'name' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'newNegativeKeywords' => [
    [
        'keywordValue' => '',
        'name' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace');
$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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "newNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "newNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace"

payload = { "newNegativeKeywords": [
        {
            "keywordValue": "",
            "name": ""
        }
    ] }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace"

payload <- "{\n  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace")

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  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\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/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace') do |req|
  req.body = "{\n  \"newNegativeKeywords\": [\n    {\n      \"keywordValue\": \"\",\n      \"name\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace";

    let payload = json!({"newNegativeKeywords": (
            json!({
                "keywordValue": "",
                "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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace \
  --header 'content-type: application/json' \
  --data '{
  "newNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ]
}'
echo '{
  "newNegativeKeywords": [
    {
      "keywordValue": "",
      "name": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "newNegativeKeywords": [\n    {\n      "keywordValue": "",\n      "name": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["newNegativeKeywords": [
    [
      "keywordValue": "",
      "name": ""
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId/negativeKeywords:replace")! 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()
PATCH displayvideo.advertisers.negativeKeywordLists.patch
{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId
QUERY PARAMS

advertiserId
negativeKeywordListId
BODY json

{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId");

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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId" {:content-type :json
                                                                                                                      :form-params {:advertiserId ""
                                                                                                                                    :displayName ""
                                                                                                                                    :name ""
                                                                                                                                    :negativeKeywordListId ""
                                                                                                                                    :targetedLineItemCount ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\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/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 121

{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  displayName: '',
  name: '',
  negativeKeywordListId: '',
  targetedLineItemCount: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    displayName: '',
    name: '',
    negativeKeywordListId: '',
    targetedLineItemCount: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","displayName":"","name":"","negativeKeywordListId":"","targetedLineItemCount":""}'
};

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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "displayName": "",\n  "name": "",\n  "negativeKeywordListId": "",\n  "targetedLineItemCount": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId")
  .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/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId',
  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({
  advertiserId: '',
  displayName: '',
  name: '',
  negativeKeywordListId: '',
  targetedLineItemCount: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    displayName: '',
    name: '',
    negativeKeywordListId: '',
    targetedLineItemCount: ''
  },
  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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  displayName: '',
  name: '',
  negativeKeywordListId: '',
  targetedLineItemCount: ''
});

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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    displayName: '',
    name: '',
    negativeKeywordListId: '',
    targetedLineItemCount: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","displayName":"","name":"","negativeKeywordListId":"","targetedLineItemCount":""}'
};

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 = @{ @"advertiserId": @"",
                              @"displayName": @"",
                              @"name": @"",
                              @"negativeKeywordListId": @"",
                              @"targetedLineItemCount": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId"]
                                                       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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId",
  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([
    'advertiserId' => '',
    'displayName' => '',
    'name' => '',
    'negativeKeywordListId' => '',
    'targetedLineItemCount' => ''
  ]),
  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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId', [
  'body' => '{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'displayName' => '',
  'name' => '',
  'negativeKeywordListId' => '',
  'targetedLineItemCount' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'displayName' => '',
  'name' => '',
  'negativeKeywordListId' => '',
  'targetedLineItemCount' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId');
$request->setRequestMethod('PATCH');
$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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId"

payload = {
    "advertiserId": "",
    "displayName": "",
    "name": "",
    "negativeKeywordListId": "",
    "targetedLineItemCount": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId"

payload <- "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId")

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  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\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/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativeKeywordListId\": \"\",\n  \"targetedLineItemCount\": \"\"\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}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId";

    let payload = json!({
        "advertiserId": "",
        "displayName": "",
        "name": "",
        "negativeKeywordListId": "",
        "targetedLineItemCount": ""
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}'
echo '{
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
}' |  \
  http PATCH {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "displayName": "",\n  "name": "",\n  "negativeKeywordListId": "",\n  "targetedLineItemCount": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "displayName": "",
  "name": "",
  "negativeKeywordListId": "",
  "targetedLineItemCount": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/negativeKeywordLists/:negativeKeywordListId")! 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()
PATCH displayvideo.advertisers.patch
{{baseUrl}}/v2/advertisers/:advertiserId
QUERY PARAMS

advertiserId
BODY json

{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId");

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  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/v2/advertisers/:advertiserId" {:content-type :json
                                                                          :form-params {:adServerConfig {:cmHybridConfig {:cmAccountId ""
                                                                                                                          :cmFloodlightConfigId ""
                                                                                                                          :cmFloodlightLinkingAuthorized false
                                                                                                                          :cmSyncableSiteIds []
                                                                                                                          :dv360ToCmCostReportingEnabled false
                                                                                                                          :dv360ToCmDataSharingEnabled false}
                                                                                                         :thirdPartyOnlyConfig {:pixelOrderIdReportingEnabled false}}
                                                                                        :advertiserId ""
                                                                                        :billingConfig {:billingProfileId ""}
                                                                                        :creativeConfig {:dynamicCreativeEnabled false
                                                                                                         :iasClientId ""
                                                                                                         :obaComplianceDisabled false
                                                                                                         :videoCreativeDataSharingAuthorized false}
                                                                                        :dataAccessConfig {:sdfConfig {:overridePartnerSdfConfig false
                                                                                                                       :sdfConfig {:adminEmail ""
                                                                                                                                   :version ""}}}
                                                                                        :displayName ""
                                                                                        :entityStatus ""
                                                                                        :generalConfig {:currencyCode ""
                                                                                                        :domainUrl ""
                                                                                                        :timeZone ""}
                                                                                        :integrationDetails {:details ""
                                                                                                             :integrationCode ""}
                                                                                        :name ""
                                                                                        :partnerId ""
                                                                                        :prismaEnabled false
                                                                                        :servingConfig {:exemptTvFromViewabilityTargeting false}
                                                                                        :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId"),
    Content = new StringContent("{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId"

	payload := strings.NewReader("{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\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/v2/advertisers/:advertiserId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1143

{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/advertisers/:advertiserId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\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  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/advertisers/:advertiserId")
  .header("content-type", "application/json")
  .body("{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  adServerConfig: {
    cmHybridConfig: {
      cmAccountId: '',
      cmFloodlightConfigId: '',
      cmFloodlightLinkingAuthorized: false,
      cmSyncableSiteIds: [],
      dv360ToCmCostReportingEnabled: false,
      dv360ToCmDataSharingEnabled: false
    },
    thirdPartyOnlyConfig: {
      pixelOrderIdReportingEnabled: false
    }
  },
  advertiserId: '',
  billingConfig: {
    billingProfileId: ''
  },
  creativeConfig: {
    dynamicCreativeEnabled: false,
    iasClientId: '',
    obaComplianceDisabled: false,
    videoCreativeDataSharingAuthorized: false
  },
  dataAccessConfig: {
    sdfConfig: {
      overridePartnerSdfConfig: false,
      sdfConfig: {
        adminEmail: '',
        version: ''
      }
    }
  },
  displayName: '',
  entityStatus: '',
  generalConfig: {
    currencyCode: '',
    domainUrl: '',
    timeZone: ''
  },
  integrationDetails: {
    details: '',
    integrationCode: ''
  },
  name: '',
  partnerId: '',
  prismaEnabled: false,
  servingConfig: {
    exemptTvFromViewabilityTargeting: false
  },
  updateTime: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/v2/advertisers/:advertiserId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId',
  headers: {'content-type': 'application/json'},
  data: {
    adServerConfig: {
      cmHybridConfig: {
        cmAccountId: '',
        cmFloodlightConfigId: '',
        cmFloodlightLinkingAuthorized: false,
        cmSyncableSiteIds: [],
        dv360ToCmCostReportingEnabled: false,
        dv360ToCmDataSharingEnabled: false
      },
      thirdPartyOnlyConfig: {pixelOrderIdReportingEnabled: false}
    },
    advertiserId: '',
    billingConfig: {billingProfileId: ''},
    creativeConfig: {
      dynamicCreativeEnabled: false,
      iasClientId: '',
      obaComplianceDisabled: false,
      videoCreativeDataSharingAuthorized: false
    },
    dataAccessConfig: {
      sdfConfig: {overridePartnerSdfConfig: false, sdfConfig: {adminEmail: '', version: ''}}
    },
    displayName: '',
    entityStatus: '',
    generalConfig: {currencyCode: '', domainUrl: '', timeZone: ''},
    integrationDetails: {details: '', integrationCode: ''},
    name: '',
    partnerId: '',
    prismaEnabled: false,
    servingConfig: {exemptTvFromViewabilityTargeting: false},
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"adServerConfig":{"cmHybridConfig":{"cmAccountId":"","cmFloodlightConfigId":"","cmFloodlightLinkingAuthorized":false,"cmSyncableSiteIds":[],"dv360ToCmCostReportingEnabled":false,"dv360ToCmDataSharingEnabled":false},"thirdPartyOnlyConfig":{"pixelOrderIdReportingEnabled":false}},"advertiserId":"","billingConfig":{"billingProfileId":""},"creativeConfig":{"dynamicCreativeEnabled":false,"iasClientId":"","obaComplianceDisabled":false,"videoCreativeDataSharingAuthorized":false},"dataAccessConfig":{"sdfConfig":{"overridePartnerSdfConfig":false,"sdfConfig":{"adminEmail":"","version":""}}},"displayName":"","entityStatus":"","generalConfig":{"currencyCode":"","domainUrl":"","timeZone":""},"integrationDetails":{"details":"","integrationCode":""},"name":"","partnerId":"","prismaEnabled":false,"servingConfig":{"exemptTvFromViewabilityTargeting":false},"updateTime":""}'
};

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}}/v2/advertisers/:advertiserId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "adServerConfig": {\n    "cmHybridConfig": {\n      "cmAccountId": "",\n      "cmFloodlightConfigId": "",\n      "cmFloodlightLinkingAuthorized": false,\n      "cmSyncableSiteIds": [],\n      "dv360ToCmCostReportingEnabled": false,\n      "dv360ToCmDataSharingEnabled": false\n    },\n    "thirdPartyOnlyConfig": {\n      "pixelOrderIdReportingEnabled": false\n    }\n  },\n  "advertiserId": "",\n  "billingConfig": {\n    "billingProfileId": ""\n  },\n  "creativeConfig": {\n    "dynamicCreativeEnabled": false,\n    "iasClientId": "",\n    "obaComplianceDisabled": false,\n    "videoCreativeDataSharingAuthorized": false\n  },\n  "dataAccessConfig": {\n    "sdfConfig": {\n      "overridePartnerSdfConfig": false,\n      "sdfConfig": {\n        "adminEmail": "",\n        "version": ""\n      }\n    }\n  },\n  "displayName": "",\n  "entityStatus": "",\n  "generalConfig": {\n    "currencyCode": "",\n    "domainUrl": "",\n    "timeZone": ""\n  },\n  "integrationDetails": {\n    "details": "",\n    "integrationCode": ""\n  },\n  "name": "",\n  "partnerId": "",\n  "prismaEnabled": false,\n  "servingConfig": {\n    "exemptTvFromViewabilityTargeting": false\n  },\n  "updateTime": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId")
  .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/v2/advertisers/:advertiserId',
  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({
  adServerConfig: {
    cmHybridConfig: {
      cmAccountId: '',
      cmFloodlightConfigId: '',
      cmFloodlightLinkingAuthorized: false,
      cmSyncableSiteIds: [],
      dv360ToCmCostReportingEnabled: false,
      dv360ToCmDataSharingEnabled: false
    },
    thirdPartyOnlyConfig: {pixelOrderIdReportingEnabled: false}
  },
  advertiserId: '',
  billingConfig: {billingProfileId: ''},
  creativeConfig: {
    dynamicCreativeEnabled: false,
    iasClientId: '',
    obaComplianceDisabled: false,
    videoCreativeDataSharingAuthorized: false
  },
  dataAccessConfig: {
    sdfConfig: {overridePartnerSdfConfig: false, sdfConfig: {adminEmail: '', version: ''}}
  },
  displayName: '',
  entityStatus: '',
  generalConfig: {currencyCode: '', domainUrl: '', timeZone: ''},
  integrationDetails: {details: '', integrationCode: ''},
  name: '',
  partnerId: '',
  prismaEnabled: false,
  servingConfig: {exemptTvFromViewabilityTargeting: false},
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId',
  headers: {'content-type': 'application/json'},
  body: {
    adServerConfig: {
      cmHybridConfig: {
        cmAccountId: '',
        cmFloodlightConfigId: '',
        cmFloodlightLinkingAuthorized: false,
        cmSyncableSiteIds: [],
        dv360ToCmCostReportingEnabled: false,
        dv360ToCmDataSharingEnabled: false
      },
      thirdPartyOnlyConfig: {pixelOrderIdReportingEnabled: false}
    },
    advertiserId: '',
    billingConfig: {billingProfileId: ''},
    creativeConfig: {
      dynamicCreativeEnabled: false,
      iasClientId: '',
      obaComplianceDisabled: false,
      videoCreativeDataSharingAuthorized: false
    },
    dataAccessConfig: {
      sdfConfig: {overridePartnerSdfConfig: false, sdfConfig: {adminEmail: '', version: ''}}
    },
    displayName: '',
    entityStatus: '',
    generalConfig: {currencyCode: '', domainUrl: '', timeZone: ''},
    integrationDetails: {details: '', integrationCode: ''},
    name: '',
    partnerId: '',
    prismaEnabled: false,
    servingConfig: {exemptTvFromViewabilityTargeting: false},
    updateTime: ''
  },
  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}}/v2/advertisers/:advertiserId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  adServerConfig: {
    cmHybridConfig: {
      cmAccountId: '',
      cmFloodlightConfigId: '',
      cmFloodlightLinkingAuthorized: false,
      cmSyncableSiteIds: [],
      dv360ToCmCostReportingEnabled: false,
      dv360ToCmDataSharingEnabled: false
    },
    thirdPartyOnlyConfig: {
      pixelOrderIdReportingEnabled: false
    }
  },
  advertiserId: '',
  billingConfig: {
    billingProfileId: ''
  },
  creativeConfig: {
    dynamicCreativeEnabled: false,
    iasClientId: '',
    obaComplianceDisabled: false,
    videoCreativeDataSharingAuthorized: false
  },
  dataAccessConfig: {
    sdfConfig: {
      overridePartnerSdfConfig: false,
      sdfConfig: {
        adminEmail: '',
        version: ''
      }
    }
  },
  displayName: '',
  entityStatus: '',
  generalConfig: {
    currencyCode: '',
    domainUrl: '',
    timeZone: ''
  },
  integrationDetails: {
    details: '',
    integrationCode: ''
  },
  name: '',
  partnerId: '',
  prismaEnabled: false,
  servingConfig: {
    exemptTvFromViewabilityTargeting: false
  },
  updateTime: ''
});

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}}/v2/advertisers/:advertiserId',
  headers: {'content-type': 'application/json'},
  data: {
    adServerConfig: {
      cmHybridConfig: {
        cmAccountId: '',
        cmFloodlightConfigId: '',
        cmFloodlightLinkingAuthorized: false,
        cmSyncableSiteIds: [],
        dv360ToCmCostReportingEnabled: false,
        dv360ToCmDataSharingEnabled: false
      },
      thirdPartyOnlyConfig: {pixelOrderIdReportingEnabled: false}
    },
    advertiserId: '',
    billingConfig: {billingProfileId: ''},
    creativeConfig: {
      dynamicCreativeEnabled: false,
      iasClientId: '',
      obaComplianceDisabled: false,
      videoCreativeDataSharingAuthorized: false
    },
    dataAccessConfig: {
      sdfConfig: {overridePartnerSdfConfig: false, sdfConfig: {adminEmail: '', version: ''}}
    },
    displayName: '',
    entityStatus: '',
    generalConfig: {currencyCode: '', domainUrl: '', timeZone: ''},
    integrationDetails: {details: '', integrationCode: ''},
    name: '',
    partnerId: '',
    prismaEnabled: false,
    servingConfig: {exemptTvFromViewabilityTargeting: false},
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"adServerConfig":{"cmHybridConfig":{"cmAccountId":"","cmFloodlightConfigId":"","cmFloodlightLinkingAuthorized":false,"cmSyncableSiteIds":[],"dv360ToCmCostReportingEnabled":false,"dv360ToCmDataSharingEnabled":false},"thirdPartyOnlyConfig":{"pixelOrderIdReportingEnabled":false}},"advertiserId":"","billingConfig":{"billingProfileId":""},"creativeConfig":{"dynamicCreativeEnabled":false,"iasClientId":"","obaComplianceDisabled":false,"videoCreativeDataSharingAuthorized":false},"dataAccessConfig":{"sdfConfig":{"overridePartnerSdfConfig":false,"sdfConfig":{"adminEmail":"","version":""}}},"displayName":"","entityStatus":"","generalConfig":{"currencyCode":"","domainUrl":"","timeZone":""},"integrationDetails":{"details":"","integrationCode":""},"name":"","partnerId":"","prismaEnabled":false,"servingConfig":{"exemptTvFromViewabilityTargeting":false},"updateTime":""}'
};

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 = @{ @"adServerConfig": @{ @"cmHybridConfig": @{ @"cmAccountId": @"", @"cmFloodlightConfigId": @"", @"cmFloodlightLinkingAuthorized": @NO, @"cmSyncableSiteIds": @[  ], @"dv360ToCmCostReportingEnabled": @NO, @"dv360ToCmDataSharingEnabled": @NO }, @"thirdPartyOnlyConfig": @{ @"pixelOrderIdReportingEnabled": @NO } },
                              @"advertiserId": @"",
                              @"billingConfig": @{ @"billingProfileId": @"" },
                              @"creativeConfig": @{ @"dynamicCreativeEnabled": @NO, @"iasClientId": @"", @"obaComplianceDisabled": @NO, @"videoCreativeDataSharingAuthorized": @NO },
                              @"dataAccessConfig": @{ @"sdfConfig": @{ @"overridePartnerSdfConfig": @NO, @"sdfConfig": @{ @"adminEmail": @"", @"version": @"" } } },
                              @"displayName": @"",
                              @"entityStatus": @"",
                              @"generalConfig": @{ @"currencyCode": @"", @"domainUrl": @"", @"timeZone": @"" },
                              @"integrationDetails": @{ @"details": @"", @"integrationCode": @"" },
                              @"name": @"",
                              @"partnerId": @"",
                              @"prismaEnabled": @NO,
                              @"servingConfig": @{ @"exemptTvFromViewabilityTargeting": @NO },
                              @"updateTime": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId"]
                                                       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}}/v2/advertisers/:advertiserId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId",
  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([
    'adServerConfig' => [
        'cmHybridConfig' => [
                'cmAccountId' => '',
                'cmFloodlightConfigId' => '',
                'cmFloodlightLinkingAuthorized' => null,
                'cmSyncableSiteIds' => [
                                
                ],
                'dv360ToCmCostReportingEnabled' => null,
                'dv360ToCmDataSharingEnabled' => null
        ],
        'thirdPartyOnlyConfig' => [
                'pixelOrderIdReportingEnabled' => null
        ]
    ],
    'advertiserId' => '',
    'billingConfig' => [
        'billingProfileId' => ''
    ],
    'creativeConfig' => [
        'dynamicCreativeEnabled' => null,
        'iasClientId' => '',
        'obaComplianceDisabled' => null,
        'videoCreativeDataSharingAuthorized' => null
    ],
    'dataAccessConfig' => [
        'sdfConfig' => [
                'overridePartnerSdfConfig' => null,
                'sdfConfig' => [
                                'adminEmail' => '',
                                'version' => ''
                ]
        ]
    ],
    'displayName' => '',
    'entityStatus' => '',
    'generalConfig' => [
        'currencyCode' => '',
        'domainUrl' => '',
        'timeZone' => ''
    ],
    'integrationDetails' => [
        'details' => '',
        'integrationCode' => ''
    ],
    'name' => '',
    'partnerId' => '',
    'prismaEnabled' => null,
    'servingConfig' => [
        'exemptTvFromViewabilityTargeting' => null
    ],
    'updateTime' => ''
  ]),
  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}}/v2/advertisers/:advertiserId', [
  'body' => '{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'adServerConfig' => [
    'cmHybridConfig' => [
        'cmAccountId' => '',
        'cmFloodlightConfigId' => '',
        'cmFloodlightLinkingAuthorized' => null,
        'cmSyncableSiteIds' => [
                
        ],
        'dv360ToCmCostReportingEnabled' => null,
        'dv360ToCmDataSharingEnabled' => null
    ],
    'thirdPartyOnlyConfig' => [
        'pixelOrderIdReportingEnabled' => null
    ]
  ],
  'advertiserId' => '',
  'billingConfig' => [
    'billingProfileId' => ''
  ],
  'creativeConfig' => [
    'dynamicCreativeEnabled' => null,
    'iasClientId' => '',
    'obaComplianceDisabled' => null,
    'videoCreativeDataSharingAuthorized' => null
  ],
  'dataAccessConfig' => [
    'sdfConfig' => [
        'overridePartnerSdfConfig' => null,
        'sdfConfig' => [
                'adminEmail' => '',
                'version' => ''
        ]
    ]
  ],
  'displayName' => '',
  'entityStatus' => '',
  'generalConfig' => [
    'currencyCode' => '',
    'domainUrl' => '',
    'timeZone' => ''
  ],
  'integrationDetails' => [
    'details' => '',
    'integrationCode' => ''
  ],
  'name' => '',
  'partnerId' => '',
  'prismaEnabled' => null,
  'servingConfig' => [
    'exemptTvFromViewabilityTargeting' => null
  ],
  'updateTime' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'adServerConfig' => [
    'cmHybridConfig' => [
        'cmAccountId' => '',
        'cmFloodlightConfigId' => '',
        'cmFloodlightLinkingAuthorized' => null,
        'cmSyncableSiteIds' => [
                
        ],
        'dv360ToCmCostReportingEnabled' => null,
        'dv360ToCmDataSharingEnabled' => null
    ],
    'thirdPartyOnlyConfig' => [
        'pixelOrderIdReportingEnabled' => null
    ]
  ],
  'advertiserId' => '',
  'billingConfig' => [
    'billingProfileId' => ''
  ],
  'creativeConfig' => [
    'dynamicCreativeEnabled' => null,
    'iasClientId' => '',
    'obaComplianceDisabled' => null,
    'videoCreativeDataSharingAuthorized' => null
  ],
  'dataAccessConfig' => [
    'sdfConfig' => [
        'overridePartnerSdfConfig' => null,
        'sdfConfig' => [
                'adminEmail' => '',
                'version' => ''
        ]
    ]
  ],
  'displayName' => '',
  'entityStatus' => '',
  'generalConfig' => [
    'currencyCode' => '',
    'domainUrl' => '',
    'timeZone' => ''
  ],
  'integrationDetails' => [
    'details' => '',
    'integrationCode' => ''
  ],
  'name' => '',
  'partnerId' => '',
  'prismaEnabled' => null,
  'servingConfig' => [
    'exemptTvFromViewabilityTargeting' => null
  ],
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId');
$request->setRequestMethod('PATCH');
$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}}/v2/advertisers/:advertiserId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/v2/advertisers/:advertiserId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId"

payload = {
    "adServerConfig": {
        "cmHybridConfig": {
            "cmAccountId": "",
            "cmFloodlightConfigId": "",
            "cmFloodlightLinkingAuthorized": False,
            "cmSyncableSiteIds": [],
            "dv360ToCmCostReportingEnabled": False,
            "dv360ToCmDataSharingEnabled": False
        },
        "thirdPartyOnlyConfig": { "pixelOrderIdReportingEnabled": False }
    },
    "advertiserId": "",
    "billingConfig": { "billingProfileId": "" },
    "creativeConfig": {
        "dynamicCreativeEnabled": False,
        "iasClientId": "",
        "obaComplianceDisabled": False,
        "videoCreativeDataSharingAuthorized": False
    },
    "dataAccessConfig": { "sdfConfig": {
            "overridePartnerSdfConfig": False,
            "sdfConfig": {
                "adminEmail": "",
                "version": ""
            }
        } },
    "displayName": "",
    "entityStatus": "",
    "generalConfig": {
        "currencyCode": "",
        "domainUrl": "",
        "timeZone": ""
    },
    "integrationDetails": {
        "details": "",
        "integrationCode": ""
    },
    "name": "",
    "partnerId": "",
    "prismaEnabled": False,
    "servingConfig": { "exemptTvFromViewabilityTargeting": False },
    "updateTime": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId"

payload <- "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId")

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  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\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/v2/advertisers/:advertiserId') do |req|
  req.body = "{\n  \"adServerConfig\": {\n    \"cmHybridConfig\": {\n      \"cmAccountId\": \"\",\n      \"cmFloodlightConfigId\": \"\",\n      \"cmFloodlightLinkingAuthorized\": false,\n      \"cmSyncableSiteIds\": [],\n      \"dv360ToCmCostReportingEnabled\": false,\n      \"dv360ToCmDataSharingEnabled\": false\n    },\n    \"thirdPartyOnlyConfig\": {\n      \"pixelOrderIdReportingEnabled\": false\n    }\n  },\n  \"advertiserId\": \"\",\n  \"billingConfig\": {\n    \"billingProfileId\": \"\"\n  },\n  \"creativeConfig\": {\n    \"dynamicCreativeEnabled\": false,\n    \"iasClientId\": \"\",\n    \"obaComplianceDisabled\": false,\n    \"videoCreativeDataSharingAuthorized\": false\n  },\n  \"dataAccessConfig\": {\n    \"sdfConfig\": {\n      \"overridePartnerSdfConfig\": false,\n      \"sdfConfig\": {\n        \"adminEmail\": \"\",\n        \"version\": \"\"\n      }\n    }\n  },\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"generalConfig\": {\n    \"currencyCode\": \"\",\n    \"domainUrl\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"integrationDetails\": {\n    \"details\": \"\",\n    \"integrationCode\": \"\"\n  },\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"prismaEnabled\": false,\n  \"servingConfig\": {\n    \"exemptTvFromViewabilityTargeting\": false\n  },\n  \"updateTime\": \"\"\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}}/v2/advertisers/:advertiserId";

    let payload = json!({
        "adServerConfig": json!({
            "cmHybridConfig": json!({
                "cmAccountId": "",
                "cmFloodlightConfigId": "",
                "cmFloodlightLinkingAuthorized": false,
                "cmSyncableSiteIds": (),
                "dv360ToCmCostReportingEnabled": false,
                "dv360ToCmDataSharingEnabled": false
            }),
            "thirdPartyOnlyConfig": json!({"pixelOrderIdReportingEnabled": false})
        }),
        "advertiserId": "",
        "billingConfig": json!({"billingProfileId": ""}),
        "creativeConfig": json!({
            "dynamicCreativeEnabled": false,
            "iasClientId": "",
            "obaComplianceDisabled": false,
            "videoCreativeDataSharingAuthorized": false
        }),
        "dataAccessConfig": json!({"sdfConfig": json!({
                "overridePartnerSdfConfig": false,
                "sdfConfig": json!({
                    "adminEmail": "",
                    "version": ""
                })
            })}),
        "displayName": "",
        "entityStatus": "",
        "generalConfig": json!({
            "currencyCode": "",
            "domainUrl": "",
            "timeZone": ""
        }),
        "integrationDetails": json!({
            "details": "",
            "integrationCode": ""
        }),
        "name": "",
        "partnerId": "",
        "prismaEnabled": false,
        "servingConfig": json!({"exemptTvFromViewabilityTargeting": false}),
        "updateTime": ""
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/advertisers/:advertiserId \
  --header 'content-type: application/json' \
  --data '{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}'
echo '{
  "adServerConfig": {
    "cmHybridConfig": {
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    },
    "thirdPartyOnlyConfig": {
      "pixelOrderIdReportingEnabled": false
    }
  },
  "advertiserId": "",
  "billingConfig": {
    "billingProfileId": ""
  },
  "creativeConfig": {
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  },
  "dataAccessConfig": {
    "sdfConfig": {
      "overridePartnerSdfConfig": false,
      "sdfConfig": {
        "adminEmail": "",
        "version": ""
      }
    }
  },
  "displayName": "",
  "entityStatus": "",
  "generalConfig": {
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  },
  "integrationDetails": {
    "details": "",
    "integrationCode": ""
  },
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": {
    "exemptTvFromViewabilityTargeting": false
  },
  "updateTime": ""
}' |  \
  http PATCH {{baseUrl}}/v2/advertisers/:advertiserId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "adServerConfig": {\n    "cmHybridConfig": {\n      "cmAccountId": "",\n      "cmFloodlightConfigId": "",\n      "cmFloodlightLinkingAuthorized": false,\n      "cmSyncableSiteIds": [],\n      "dv360ToCmCostReportingEnabled": false,\n      "dv360ToCmDataSharingEnabled": false\n    },\n    "thirdPartyOnlyConfig": {\n      "pixelOrderIdReportingEnabled": false\n    }\n  },\n  "advertiserId": "",\n  "billingConfig": {\n    "billingProfileId": ""\n  },\n  "creativeConfig": {\n    "dynamicCreativeEnabled": false,\n    "iasClientId": "",\n    "obaComplianceDisabled": false,\n    "videoCreativeDataSharingAuthorized": false\n  },\n  "dataAccessConfig": {\n    "sdfConfig": {\n      "overridePartnerSdfConfig": false,\n      "sdfConfig": {\n        "adminEmail": "",\n        "version": ""\n      }\n    }\n  },\n  "displayName": "",\n  "entityStatus": "",\n  "generalConfig": {\n    "currencyCode": "",\n    "domainUrl": "",\n    "timeZone": ""\n  },\n  "integrationDetails": {\n    "details": "",\n    "integrationCode": ""\n  },\n  "name": "",\n  "partnerId": "",\n  "prismaEnabled": false,\n  "servingConfig": {\n    "exemptTvFromViewabilityTargeting": false\n  },\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "adServerConfig": [
    "cmHybridConfig": [
      "cmAccountId": "",
      "cmFloodlightConfigId": "",
      "cmFloodlightLinkingAuthorized": false,
      "cmSyncableSiteIds": [],
      "dv360ToCmCostReportingEnabled": false,
      "dv360ToCmDataSharingEnabled": false
    ],
    "thirdPartyOnlyConfig": ["pixelOrderIdReportingEnabled": false]
  ],
  "advertiserId": "",
  "billingConfig": ["billingProfileId": ""],
  "creativeConfig": [
    "dynamicCreativeEnabled": false,
    "iasClientId": "",
    "obaComplianceDisabled": false,
    "videoCreativeDataSharingAuthorized": false
  ],
  "dataAccessConfig": ["sdfConfig": [
      "overridePartnerSdfConfig": false,
      "sdfConfig": [
        "adminEmail": "",
        "version": ""
      ]
    ]],
  "displayName": "",
  "entityStatus": "",
  "generalConfig": [
    "currencyCode": "",
    "domainUrl": "",
    "timeZone": ""
  ],
  "integrationDetails": [
    "details": "",
    "integrationCode": ""
  ],
  "name": "",
  "partnerId": "",
  "prismaEnabled": false,
  "servingConfig": ["exemptTvFromViewabilityTargeting": false],
  "updateTime": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId")! 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()
POST displayvideo.advertisers.targetingTypes.assignedTargetingOptions.create
{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions
QUERY PARAMS

advertiserId
targetingType
BODY json

{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions");

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  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions" {:content-type :json
                                                                                                                                :form-params {:ageRangeDetails {:ageRange ""}
                                                                                                                                              :appCategoryDetails {:displayName ""
                                                                                                                                                                   :negative false
                                                                                                                                                                   :targetingOptionId ""}
                                                                                                                                              :appDetails {:appId ""
                                                                                                                                                           :appPlatform ""
                                                                                                                                                           :displayName ""
                                                                                                                                                           :negative false}
                                                                                                                                              :assignedTargetingOptionId ""
                                                                                                                                              :assignedTargetingOptionIdAlias ""
                                                                                                                                              :audienceGroupDetails {:excludedFirstAndThirdPartyAudienceGroup {:settings [{:firstAndThirdPartyAudienceId ""
                                                                                                                                                                                                                           :recency ""}]}
                                                                                                                                                                     :excludedGoogleAudienceGroup {:settings [{:googleAudienceId ""}]}
                                                                                                                                                                     :includedCombinedAudienceGroup {:settings [{:combinedAudienceId ""}]}
                                                                                                                                                                     :includedCustomListGroup {:settings [{:customListId ""}]}
                                                                                                                                                                     :includedFirstAndThirdPartyAudienceGroups [{}]
                                                                                                                                                                     :includedGoogleAudienceGroup {}}
                                                                                                                                              :audioContentTypeDetails {:audioContentType ""}
                                                                                                                                              :authorizedSellerStatusDetails {:authorizedSellerStatus ""
                                                                                                                                                                              :targetingOptionId ""}
                                                                                                                                              :browserDetails {:displayName ""
                                                                                                                                                               :negative false
                                                                                                                                                               :targetingOptionId ""}
                                                                                                                                              :businessChainDetails {:displayName ""
                                                                                                                                                                     :proximityRadiusAmount ""
                                                                                                                                                                     :proximityRadiusUnit ""
                                                                                                                                                                     :targetingOptionId ""}
                                                                                                                                              :carrierAndIspDetails {:displayName ""
                                                                                                                                                                     :negative false
                                                                                                                                                                     :targetingOptionId ""}
                                                                                                                                              :categoryDetails {:displayName ""
                                                                                                                                                                :negative false
                                                                                                                                                                :targetingOptionId ""}
                                                                                                                                              :channelDetails {:channelId ""
                                                                                                                                                               :negative false}
                                                                                                                                              :contentDurationDetails {:contentDuration ""
                                                                                                                                                                       :targetingOptionId ""}
                                                                                                                                              :contentGenreDetails {:displayName ""
                                                                                                                                                                    :negative false
                                                                                                                                                                    :targetingOptionId ""}
                                                                                                                                              :contentInstreamPositionDetails {:adType ""
                                                                                                                                                                               :contentInstreamPosition ""}
                                                                                                                                              :contentOutstreamPositionDetails {:adType ""
                                                                                                                                                                                :contentOutstreamPosition ""}
                                                                                                                                              :contentStreamTypeDetails {:contentStreamType ""
                                                                                                                                                                         :targetingOptionId ""}
                                                                                                                                              :dayAndTimeDetails {:dayOfWeek ""
                                                                                                                                                                  :endHour 0
                                                                                                                                                                  :startHour 0
                                                                                                                                                                  :timeZoneResolution ""}
                                                                                                                                              :deviceMakeModelDetails {:displayName ""
                                                                                                                                                                       :negative false
                                                                                                                                                                       :targetingOptionId ""}
                                                                                                                                              :deviceTypeDetails {:deviceType ""
                                                                                                                                                                  :youtubeAndPartnersBidMultiplier ""}
                                                                                                                                              :digitalContentLabelExclusionDetails {:excludedContentRatingTier ""}
                                                                                                                                              :environmentDetails {:environment ""}
                                                                                                                                              :exchangeDetails {:exchange ""}
                                                                                                                                              :genderDetails {:gender ""}
                                                                                                                                              :geoRegionDetails {:displayName ""
                                                                                                                                                                 :geoRegionType ""
                                                                                                                                                                 :negative false
                                                                                                                                                                 :targetingOptionId ""}
                                                                                                                                              :householdIncomeDetails {:householdIncome ""}
                                                                                                                                              :inheritance ""
                                                                                                                                              :inventorySourceDetails {:inventorySourceId ""}
                                                                                                                                              :inventorySourceGroupDetails {:inventorySourceGroupId ""}
                                                                                                                                              :keywordDetails {:keyword ""
                                                                                                                                                               :negative false}
                                                                                                                                              :languageDetails {:displayName ""
                                                                                                                                                                :negative false
                                                                                                                                                                :targetingOptionId ""}
                                                                                                                                              :name ""
                                                                                                                                              :nativeContentPositionDetails {:contentPosition ""}
                                                                                                                                              :negativeKeywordListDetails {:negativeKeywordListId ""}
                                                                                                                                              :omidDetails {:omid ""}
                                                                                                                                              :onScreenPositionDetails {:adType ""
                                                                                                                                                                        :onScreenPosition ""
                                                                                                                                                                        :targetingOptionId ""}
                                                                                                                                              :operatingSystemDetails {:displayName ""
                                                                                                                                                                       :negative false
                                                                                                                                                                       :targetingOptionId ""}
                                                                                                                                              :parentalStatusDetails {:parentalStatus ""}
                                                                                                                                              :poiDetails {:displayName ""
                                                                                                                                                           :latitude ""
                                                                                                                                                           :longitude ""
                                                                                                                                                           :proximityRadiusAmount ""
                                                                                                                                                           :proximityRadiusUnit ""
                                                                                                                                                           :targetingOptionId ""}
                                                                                                                                              :proximityLocationListDetails {:proximityLocationListId ""
                                                                                                                                                                             :proximityRadius ""
                                                                                                                                                                             :proximityRadiusUnit ""}
                                                                                                                                              :regionalLocationListDetails {:negative false
                                                                                                                                                                            :regionalLocationListId ""}
                                                                                                                                              :sensitiveCategoryExclusionDetails {:excludedSensitiveCategory ""}
                                                                                                                                              :sessionPositionDetails {:sessionPosition ""}
                                                                                                                                              :subExchangeDetails {:targetingOptionId ""}
                                                                                                                                              :targetingType ""
                                                                                                                                              :thirdPartyVerifierDetails {:adloox {:excludedAdlooxCategories []}
                                                                                                                                                                          :doubleVerify {:appStarRating {:avoidInsufficientStarRating false
                                                                                                                                                                                                         :avoidedStarRating ""}
                                                                                                                                                                                         :avoidedAgeRatings []
                                                                                                                                                                                         :brandSafetyCategories {:avoidUnknownBrandSafetyCategory false
                                                                                                                                                                                                                 :avoidedHighSeverityCategories []
                                                                                                                                                                                                                 :avoidedMediumSeverityCategories []}
                                                                                                                                                                                         :customSegmentId ""
                                                                                                                                                                                         :displayViewability {:iab ""
                                                                                                                                                                                                              :viewableDuring ""}
                                                                                                                                                                                         :fraudInvalidTraffic {:avoidInsufficientOption false
                                                                                                                                                                                                               :avoidedFraudOption ""}
                                                                                                                                                                                         :videoViewability {:playerImpressionRate ""
                                                                                                                                                                                                            :videoIab ""
                                                                                                                                                                                                            :videoViewableRate ""}}
                                                                                                                                                                          :integralAdScience {:customSegmentId []
                                                                                                                                                                                              :displayViewability ""
                                                                                                                                                                                              :excludeUnrateable false
                                                                                                                                                                                              :excludedAdFraudRisk ""
                                                                                                                                                                                              :excludedAdultRisk ""
                                                                                                                                                                                              :excludedAlcoholRisk ""
                                                                                                                                                                                              :excludedDrugsRisk ""
                                                                                                                                                                                              :excludedGamblingRisk ""
                                                                                                                                                                                              :excludedHateSpeechRisk ""
                                                                                                                                                                                              :excludedIllegalDownloadsRisk ""
                                                                                                                                                                                              :excludedOffensiveLanguageRisk ""
                                                                                                                                                                                              :excludedViolenceRisk ""
                                                                                                                                                                                              :traqScoreOption ""
                                                                                                                                                                                              :videoViewability ""}}
                                                                                                                                              :urlDetails {:negative false
                                                                                                                                                           :url ""}
                                                                                                                                              :userRewardedContentDetails {:targetingOptionId ""
                                                                                                                                                                           :userRewardedContent ""}
                                                                                                                                              :videoPlayerSizeDetails {:videoPlayerSize ""}
                                                                                                                                              :viewabilityDetails {:viewability ""}
                                                                                                                                              :youtubeChannelDetails {:channelId ""
                                                                                                                                                                      :negative false}
                                                                                                                                              :youtubeVideoDetails {:negative false
                                                                                                                                                                    :videoId ""}}})
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"),
    Content = new StringContent("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"

	payload := strings.NewReader("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 6099

{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")
  .header("content-type", "application/json")
  .body("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  ageRangeDetails: {
    ageRange: ''
  },
  appCategoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  appDetails: {
    appId: '',
    appPlatform: '',
    displayName: '',
    negative: false
  },
  assignedTargetingOptionId: '',
  assignedTargetingOptionIdAlias: '',
  audienceGroupDetails: {
    excludedFirstAndThirdPartyAudienceGroup: {
      settings: [
        {
          firstAndThirdPartyAudienceId: '',
          recency: ''
        }
      ]
    },
    excludedGoogleAudienceGroup: {
      settings: [
        {
          googleAudienceId: ''
        }
      ]
    },
    includedCombinedAudienceGroup: {
      settings: [
        {
          combinedAudienceId: ''
        }
      ]
    },
    includedCustomListGroup: {
      settings: [
        {
          customListId: ''
        }
      ]
    },
    includedFirstAndThirdPartyAudienceGroups: [
      {}
    ],
    includedGoogleAudienceGroup: {}
  },
  audioContentTypeDetails: {
    audioContentType: ''
  },
  authorizedSellerStatusDetails: {
    authorizedSellerStatus: '',
    targetingOptionId: ''
  },
  browserDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  businessChainDetails: {
    displayName: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  carrierAndIspDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  categoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  channelDetails: {
    channelId: '',
    negative: false
  },
  contentDurationDetails: {
    contentDuration: '',
    targetingOptionId: ''
  },
  contentGenreDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  contentInstreamPositionDetails: {
    adType: '',
    contentInstreamPosition: ''
  },
  contentOutstreamPositionDetails: {
    adType: '',
    contentOutstreamPosition: ''
  },
  contentStreamTypeDetails: {
    contentStreamType: '',
    targetingOptionId: ''
  },
  dayAndTimeDetails: {
    dayOfWeek: '',
    endHour: 0,
    startHour: 0,
    timeZoneResolution: ''
  },
  deviceMakeModelDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  deviceTypeDetails: {
    deviceType: '',
    youtubeAndPartnersBidMultiplier: ''
  },
  digitalContentLabelExclusionDetails: {
    excludedContentRatingTier: ''
  },
  environmentDetails: {
    environment: ''
  },
  exchangeDetails: {
    exchange: ''
  },
  genderDetails: {
    gender: ''
  },
  geoRegionDetails: {
    displayName: '',
    geoRegionType: '',
    negative: false,
    targetingOptionId: ''
  },
  householdIncomeDetails: {
    householdIncome: ''
  },
  inheritance: '',
  inventorySourceDetails: {
    inventorySourceId: ''
  },
  inventorySourceGroupDetails: {
    inventorySourceGroupId: ''
  },
  keywordDetails: {
    keyword: '',
    negative: false
  },
  languageDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  name: '',
  nativeContentPositionDetails: {
    contentPosition: ''
  },
  negativeKeywordListDetails: {
    negativeKeywordListId: ''
  },
  omidDetails: {
    omid: ''
  },
  onScreenPositionDetails: {
    adType: '',
    onScreenPosition: '',
    targetingOptionId: ''
  },
  operatingSystemDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  parentalStatusDetails: {
    parentalStatus: ''
  },
  poiDetails: {
    displayName: '',
    latitude: '',
    longitude: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  proximityLocationListDetails: {
    proximityLocationListId: '',
    proximityRadius: '',
    proximityRadiusUnit: ''
  },
  regionalLocationListDetails: {
    negative: false,
    regionalLocationListId: ''
  },
  sensitiveCategoryExclusionDetails: {
    excludedSensitiveCategory: ''
  },
  sessionPositionDetails: {
    sessionPosition: ''
  },
  subExchangeDetails: {
    targetingOptionId: ''
  },
  targetingType: '',
  thirdPartyVerifierDetails: {
    adloox: {
      excludedAdlooxCategories: []
    },
    doubleVerify: {
      appStarRating: {
        avoidInsufficientStarRating: false,
        avoidedStarRating: ''
      },
      avoidedAgeRatings: [],
      brandSafetyCategories: {
        avoidUnknownBrandSafetyCategory: false,
        avoidedHighSeverityCategories: [],
        avoidedMediumSeverityCategories: []
      },
      customSegmentId: '',
      displayViewability: {
        iab: '',
        viewableDuring: ''
      },
      fraudInvalidTraffic: {
        avoidInsufficientOption: false,
        avoidedFraudOption: ''
      },
      videoViewability: {
        playerImpressionRate: '',
        videoIab: '',
        videoViewableRate: ''
      }
    },
    integralAdScience: {
      customSegmentId: [],
      displayViewability: '',
      excludeUnrateable: false,
      excludedAdFraudRisk: '',
      excludedAdultRisk: '',
      excludedAlcoholRisk: '',
      excludedDrugsRisk: '',
      excludedGamblingRisk: '',
      excludedHateSpeechRisk: '',
      excludedIllegalDownloadsRisk: '',
      excludedOffensiveLanguageRisk: '',
      excludedViolenceRisk: '',
      traqScoreOption: '',
      videoViewability: ''
    }
  },
  urlDetails: {
    negative: false,
    url: ''
  },
  userRewardedContentDetails: {
    targetingOptionId: '',
    userRewardedContent: ''
  },
  videoPlayerSizeDetails: {
    videoPlayerSize: ''
  },
  viewabilityDetails: {
    viewability: ''
  },
  youtubeChannelDetails: {
    channelId: '',
    negative: false
  },
  youtubeVideoDetails: {
    negative: false,
    videoId: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    ageRangeDetails: {ageRange: ''},
    appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
    assignedTargetingOptionId: '',
    assignedTargetingOptionIdAlias: '',
    audienceGroupDetails: {
      excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
      excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
      includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
      includedCustomListGroup: {settings: [{customListId: ''}]},
      includedFirstAndThirdPartyAudienceGroups: [{}],
      includedGoogleAudienceGroup: {}
    },
    audioContentTypeDetails: {audioContentType: ''},
    authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
    browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
    businessChainDetails: {
      displayName: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
    categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    channelDetails: {channelId: '', negative: false},
    contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
    contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
    contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
    contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
    contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
    dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
    deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
    deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
    digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
    environmentDetails: {environment: ''},
    exchangeDetails: {exchange: ''},
    genderDetails: {gender: ''},
    geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
    householdIncomeDetails: {householdIncome: ''},
    inheritance: '',
    inventorySourceDetails: {inventorySourceId: ''},
    inventorySourceGroupDetails: {inventorySourceGroupId: ''},
    keywordDetails: {keyword: '', negative: false},
    languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
    name: '',
    nativeContentPositionDetails: {contentPosition: ''},
    negativeKeywordListDetails: {negativeKeywordListId: ''},
    omidDetails: {omid: ''},
    onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
    operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
    parentalStatusDetails: {parentalStatus: ''},
    poiDetails: {
      displayName: '',
      latitude: '',
      longitude: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
    regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
    sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
    sessionPositionDetails: {sessionPosition: ''},
    subExchangeDetails: {targetingOptionId: ''},
    targetingType: '',
    thirdPartyVerifierDetails: {
      adloox: {excludedAdlooxCategories: []},
      doubleVerify: {
        appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
        avoidedAgeRatings: [],
        brandSafetyCategories: {
          avoidUnknownBrandSafetyCategory: false,
          avoidedHighSeverityCategories: [],
          avoidedMediumSeverityCategories: []
        },
        customSegmentId: '',
        displayViewability: {iab: '', viewableDuring: ''},
        fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
        videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
      },
      integralAdScience: {
        customSegmentId: [],
        displayViewability: '',
        excludeUnrateable: false,
        excludedAdFraudRisk: '',
        excludedAdultRisk: '',
        excludedAlcoholRisk: '',
        excludedDrugsRisk: '',
        excludedGamblingRisk: '',
        excludedHateSpeechRisk: '',
        excludedIllegalDownloadsRisk: '',
        excludedOffensiveLanguageRisk: '',
        excludedViolenceRisk: '',
        traqScoreOption: '',
        videoViewability: ''
      }
    },
    urlDetails: {negative: false, url: ''},
    userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
    videoPlayerSizeDetails: {videoPlayerSize: ''},
    viewabilityDetails: {viewability: ''},
    youtubeChannelDetails: {channelId: '', negative: false},
    youtubeVideoDetails: {negative: false, videoId: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}'
};

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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "ageRangeDetails": {\n    "ageRange": ""\n  },\n  "appCategoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "appDetails": {\n    "appId": "",\n    "appPlatform": "",\n    "displayName": "",\n    "negative": false\n  },\n  "assignedTargetingOptionId": "",\n  "assignedTargetingOptionIdAlias": "",\n  "audienceGroupDetails": {\n    "excludedFirstAndThirdPartyAudienceGroup": {\n      "settings": [\n        {\n          "firstAndThirdPartyAudienceId": "",\n          "recency": ""\n        }\n      ]\n    },\n    "excludedGoogleAudienceGroup": {\n      "settings": [\n        {\n          "googleAudienceId": ""\n        }\n      ]\n    },\n    "includedCombinedAudienceGroup": {\n      "settings": [\n        {\n          "combinedAudienceId": ""\n        }\n      ]\n    },\n    "includedCustomListGroup": {\n      "settings": [\n        {\n          "customListId": ""\n        }\n      ]\n    },\n    "includedFirstAndThirdPartyAudienceGroups": [\n      {}\n    ],\n    "includedGoogleAudienceGroup": {}\n  },\n  "audioContentTypeDetails": {\n    "audioContentType": ""\n  },\n  "authorizedSellerStatusDetails": {\n    "authorizedSellerStatus": "",\n    "targetingOptionId": ""\n  },\n  "browserDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "businessChainDetails": {\n    "displayName": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "carrierAndIspDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "categoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "channelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "contentDurationDetails": {\n    "contentDuration": "",\n    "targetingOptionId": ""\n  },\n  "contentGenreDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "contentInstreamPositionDetails": {\n    "adType": "",\n    "contentInstreamPosition": ""\n  },\n  "contentOutstreamPositionDetails": {\n    "adType": "",\n    "contentOutstreamPosition": ""\n  },\n  "contentStreamTypeDetails": {\n    "contentStreamType": "",\n    "targetingOptionId": ""\n  },\n  "dayAndTimeDetails": {\n    "dayOfWeek": "",\n    "endHour": 0,\n    "startHour": 0,\n    "timeZoneResolution": ""\n  },\n  "deviceMakeModelDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "deviceTypeDetails": {\n    "deviceType": "",\n    "youtubeAndPartnersBidMultiplier": ""\n  },\n  "digitalContentLabelExclusionDetails": {\n    "excludedContentRatingTier": ""\n  },\n  "environmentDetails": {\n    "environment": ""\n  },\n  "exchangeDetails": {\n    "exchange": ""\n  },\n  "genderDetails": {\n    "gender": ""\n  },\n  "geoRegionDetails": {\n    "displayName": "",\n    "geoRegionType": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "householdIncomeDetails": {\n    "householdIncome": ""\n  },\n  "inheritance": "",\n  "inventorySourceDetails": {\n    "inventorySourceId": ""\n  },\n  "inventorySourceGroupDetails": {\n    "inventorySourceGroupId": ""\n  },\n  "keywordDetails": {\n    "keyword": "",\n    "negative": false\n  },\n  "languageDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "name": "",\n  "nativeContentPositionDetails": {\n    "contentPosition": ""\n  },\n  "negativeKeywordListDetails": {\n    "negativeKeywordListId": ""\n  },\n  "omidDetails": {\n    "omid": ""\n  },\n  "onScreenPositionDetails": {\n    "adType": "",\n    "onScreenPosition": "",\n    "targetingOptionId": ""\n  },\n  "operatingSystemDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "parentalStatusDetails": {\n    "parentalStatus": ""\n  },\n  "poiDetails": {\n    "displayName": "",\n    "latitude": "",\n    "longitude": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "proximityLocationListDetails": {\n    "proximityLocationListId": "",\n    "proximityRadius": "",\n    "proximityRadiusUnit": ""\n  },\n  "regionalLocationListDetails": {\n    "negative": false,\n    "regionalLocationListId": ""\n  },\n  "sensitiveCategoryExclusionDetails": {\n    "excludedSensitiveCategory": ""\n  },\n  "sessionPositionDetails": {\n    "sessionPosition": ""\n  },\n  "subExchangeDetails": {\n    "targetingOptionId": ""\n  },\n  "targetingType": "",\n  "thirdPartyVerifierDetails": {\n    "adloox": {\n      "excludedAdlooxCategories": []\n    },\n    "doubleVerify": {\n      "appStarRating": {\n        "avoidInsufficientStarRating": false,\n        "avoidedStarRating": ""\n      },\n      "avoidedAgeRatings": [],\n      "brandSafetyCategories": {\n        "avoidUnknownBrandSafetyCategory": false,\n        "avoidedHighSeverityCategories": [],\n        "avoidedMediumSeverityCategories": []\n      },\n      "customSegmentId": "",\n      "displayViewability": {\n        "iab": "",\n        "viewableDuring": ""\n      },\n      "fraudInvalidTraffic": {\n        "avoidInsufficientOption": false,\n        "avoidedFraudOption": ""\n      },\n      "videoViewability": {\n        "playerImpressionRate": "",\n        "videoIab": "",\n        "videoViewableRate": ""\n      }\n    },\n    "integralAdScience": {\n      "customSegmentId": [],\n      "displayViewability": "",\n      "excludeUnrateable": false,\n      "excludedAdFraudRisk": "",\n      "excludedAdultRisk": "",\n      "excludedAlcoholRisk": "",\n      "excludedDrugsRisk": "",\n      "excludedGamblingRisk": "",\n      "excludedHateSpeechRisk": "",\n      "excludedIllegalDownloadsRisk": "",\n      "excludedOffensiveLanguageRisk": "",\n      "excludedViolenceRisk": "",\n      "traqScoreOption": "",\n      "videoViewability": ""\n    }\n  },\n  "urlDetails": {\n    "negative": false,\n    "url": ""\n  },\n  "userRewardedContentDetails": {\n    "targetingOptionId": "",\n    "userRewardedContent": ""\n  },\n  "videoPlayerSizeDetails": {\n    "videoPlayerSize": ""\n  },\n  "viewabilityDetails": {\n    "viewability": ""\n  },\n  "youtubeChannelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "youtubeVideoDetails": {\n    "negative": false,\n    "videoId": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")
  .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/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions',
  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({
  ageRangeDetails: {ageRange: ''},
  appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
  appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
  assignedTargetingOptionId: '',
  assignedTargetingOptionIdAlias: '',
  audienceGroupDetails: {
    excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
    excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
    includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
    includedCustomListGroup: {settings: [{customListId: ''}]},
    includedFirstAndThirdPartyAudienceGroups: [{}],
    includedGoogleAudienceGroup: {}
  },
  audioContentTypeDetails: {audioContentType: ''},
  authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
  browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
  businessChainDetails: {
    displayName: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
  categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
  channelDetails: {channelId: '', negative: false},
  contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
  contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
  contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
  contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
  contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
  dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
  deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
  deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
  digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
  environmentDetails: {environment: ''},
  exchangeDetails: {exchange: ''},
  genderDetails: {gender: ''},
  geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
  householdIncomeDetails: {householdIncome: ''},
  inheritance: '',
  inventorySourceDetails: {inventorySourceId: ''},
  inventorySourceGroupDetails: {inventorySourceGroupId: ''},
  keywordDetails: {keyword: '', negative: false},
  languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
  name: '',
  nativeContentPositionDetails: {contentPosition: ''},
  negativeKeywordListDetails: {negativeKeywordListId: ''},
  omidDetails: {omid: ''},
  onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
  operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
  parentalStatusDetails: {parentalStatus: ''},
  poiDetails: {
    displayName: '',
    latitude: '',
    longitude: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
  regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
  sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
  sessionPositionDetails: {sessionPosition: ''},
  subExchangeDetails: {targetingOptionId: ''},
  targetingType: '',
  thirdPartyVerifierDetails: {
    adloox: {excludedAdlooxCategories: []},
    doubleVerify: {
      appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
      avoidedAgeRatings: [],
      brandSafetyCategories: {
        avoidUnknownBrandSafetyCategory: false,
        avoidedHighSeverityCategories: [],
        avoidedMediumSeverityCategories: []
      },
      customSegmentId: '',
      displayViewability: {iab: '', viewableDuring: ''},
      fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
      videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
    },
    integralAdScience: {
      customSegmentId: [],
      displayViewability: '',
      excludeUnrateable: false,
      excludedAdFraudRisk: '',
      excludedAdultRisk: '',
      excludedAlcoholRisk: '',
      excludedDrugsRisk: '',
      excludedGamblingRisk: '',
      excludedHateSpeechRisk: '',
      excludedIllegalDownloadsRisk: '',
      excludedOffensiveLanguageRisk: '',
      excludedViolenceRisk: '',
      traqScoreOption: '',
      videoViewability: ''
    }
  },
  urlDetails: {negative: false, url: ''},
  userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
  videoPlayerSizeDetails: {videoPlayerSize: ''},
  viewabilityDetails: {viewability: ''},
  youtubeChannelDetails: {channelId: '', negative: false},
  youtubeVideoDetails: {negative: false, videoId: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  body: {
    ageRangeDetails: {ageRange: ''},
    appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
    assignedTargetingOptionId: '',
    assignedTargetingOptionIdAlias: '',
    audienceGroupDetails: {
      excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
      excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
      includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
      includedCustomListGroup: {settings: [{customListId: ''}]},
      includedFirstAndThirdPartyAudienceGroups: [{}],
      includedGoogleAudienceGroup: {}
    },
    audioContentTypeDetails: {audioContentType: ''},
    authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
    browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
    businessChainDetails: {
      displayName: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
    categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    channelDetails: {channelId: '', negative: false},
    contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
    contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
    contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
    contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
    contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
    dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
    deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
    deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
    digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
    environmentDetails: {environment: ''},
    exchangeDetails: {exchange: ''},
    genderDetails: {gender: ''},
    geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
    householdIncomeDetails: {householdIncome: ''},
    inheritance: '',
    inventorySourceDetails: {inventorySourceId: ''},
    inventorySourceGroupDetails: {inventorySourceGroupId: ''},
    keywordDetails: {keyword: '', negative: false},
    languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
    name: '',
    nativeContentPositionDetails: {contentPosition: ''},
    negativeKeywordListDetails: {negativeKeywordListId: ''},
    omidDetails: {omid: ''},
    onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
    operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
    parentalStatusDetails: {parentalStatus: ''},
    poiDetails: {
      displayName: '',
      latitude: '',
      longitude: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
    regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
    sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
    sessionPositionDetails: {sessionPosition: ''},
    subExchangeDetails: {targetingOptionId: ''},
    targetingType: '',
    thirdPartyVerifierDetails: {
      adloox: {excludedAdlooxCategories: []},
      doubleVerify: {
        appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
        avoidedAgeRatings: [],
        brandSafetyCategories: {
          avoidUnknownBrandSafetyCategory: false,
          avoidedHighSeverityCategories: [],
          avoidedMediumSeverityCategories: []
        },
        customSegmentId: '',
        displayViewability: {iab: '', viewableDuring: ''},
        fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
        videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
      },
      integralAdScience: {
        customSegmentId: [],
        displayViewability: '',
        excludeUnrateable: false,
        excludedAdFraudRisk: '',
        excludedAdultRisk: '',
        excludedAlcoholRisk: '',
        excludedDrugsRisk: '',
        excludedGamblingRisk: '',
        excludedHateSpeechRisk: '',
        excludedIllegalDownloadsRisk: '',
        excludedOffensiveLanguageRisk: '',
        excludedViolenceRisk: '',
        traqScoreOption: '',
        videoViewability: ''
      }
    },
    urlDetails: {negative: false, url: ''},
    userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
    videoPlayerSizeDetails: {videoPlayerSize: ''},
    viewabilityDetails: {viewability: ''},
    youtubeChannelDetails: {channelId: '', negative: false},
    youtubeVideoDetails: {negative: false, videoId: ''}
  },
  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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  ageRangeDetails: {
    ageRange: ''
  },
  appCategoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  appDetails: {
    appId: '',
    appPlatform: '',
    displayName: '',
    negative: false
  },
  assignedTargetingOptionId: '',
  assignedTargetingOptionIdAlias: '',
  audienceGroupDetails: {
    excludedFirstAndThirdPartyAudienceGroup: {
      settings: [
        {
          firstAndThirdPartyAudienceId: '',
          recency: ''
        }
      ]
    },
    excludedGoogleAudienceGroup: {
      settings: [
        {
          googleAudienceId: ''
        }
      ]
    },
    includedCombinedAudienceGroup: {
      settings: [
        {
          combinedAudienceId: ''
        }
      ]
    },
    includedCustomListGroup: {
      settings: [
        {
          customListId: ''
        }
      ]
    },
    includedFirstAndThirdPartyAudienceGroups: [
      {}
    ],
    includedGoogleAudienceGroup: {}
  },
  audioContentTypeDetails: {
    audioContentType: ''
  },
  authorizedSellerStatusDetails: {
    authorizedSellerStatus: '',
    targetingOptionId: ''
  },
  browserDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  businessChainDetails: {
    displayName: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  carrierAndIspDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  categoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  channelDetails: {
    channelId: '',
    negative: false
  },
  contentDurationDetails: {
    contentDuration: '',
    targetingOptionId: ''
  },
  contentGenreDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  contentInstreamPositionDetails: {
    adType: '',
    contentInstreamPosition: ''
  },
  contentOutstreamPositionDetails: {
    adType: '',
    contentOutstreamPosition: ''
  },
  contentStreamTypeDetails: {
    contentStreamType: '',
    targetingOptionId: ''
  },
  dayAndTimeDetails: {
    dayOfWeek: '',
    endHour: 0,
    startHour: 0,
    timeZoneResolution: ''
  },
  deviceMakeModelDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  deviceTypeDetails: {
    deviceType: '',
    youtubeAndPartnersBidMultiplier: ''
  },
  digitalContentLabelExclusionDetails: {
    excludedContentRatingTier: ''
  },
  environmentDetails: {
    environment: ''
  },
  exchangeDetails: {
    exchange: ''
  },
  genderDetails: {
    gender: ''
  },
  geoRegionDetails: {
    displayName: '',
    geoRegionType: '',
    negative: false,
    targetingOptionId: ''
  },
  householdIncomeDetails: {
    householdIncome: ''
  },
  inheritance: '',
  inventorySourceDetails: {
    inventorySourceId: ''
  },
  inventorySourceGroupDetails: {
    inventorySourceGroupId: ''
  },
  keywordDetails: {
    keyword: '',
    negative: false
  },
  languageDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  name: '',
  nativeContentPositionDetails: {
    contentPosition: ''
  },
  negativeKeywordListDetails: {
    negativeKeywordListId: ''
  },
  omidDetails: {
    omid: ''
  },
  onScreenPositionDetails: {
    adType: '',
    onScreenPosition: '',
    targetingOptionId: ''
  },
  operatingSystemDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  parentalStatusDetails: {
    parentalStatus: ''
  },
  poiDetails: {
    displayName: '',
    latitude: '',
    longitude: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  proximityLocationListDetails: {
    proximityLocationListId: '',
    proximityRadius: '',
    proximityRadiusUnit: ''
  },
  regionalLocationListDetails: {
    negative: false,
    regionalLocationListId: ''
  },
  sensitiveCategoryExclusionDetails: {
    excludedSensitiveCategory: ''
  },
  sessionPositionDetails: {
    sessionPosition: ''
  },
  subExchangeDetails: {
    targetingOptionId: ''
  },
  targetingType: '',
  thirdPartyVerifierDetails: {
    adloox: {
      excludedAdlooxCategories: []
    },
    doubleVerify: {
      appStarRating: {
        avoidInsufficientStarRating: false,
        avoidedStarRating: ''
      },
      avoidedAgeRatings: [],
      brandSafetyCategories: {
        avoidUnknownBrandSafetyCategory: false,
        avoidedHighSeverityCategories: [],
        avoidedMediumSeverityCategories: []
      },
      customSegmentId: '',
      displayViewability: {
        iab: '',
        viewableDuring: ''
      },
      fraudInvalidTraffic: {
        avoidInsufficientOption: false,
        avoidedFraudOption: ''
      },
      videoViewability: {
        playerImpressionRate: '',
        videoIab: '',
        videoViewableRate: ''
      }
    },
    integralAdScience: {
      customSegmentId: [],
      displayViewability: '',
      excludeUnrateable: false,
      excludedAdFraudRisk: '',
      excludedAdultRisk: '',
      excludedAlcoholRisk: '',
      excludedDrugsRisk: '',
      excludedGamblingRisk: '',
      excludedHateSpeechRisk: '',
      excludedIllegalDownloadsRisk: '',
      excludedOffensiveLanguageRisk: '',
      excludedViolenceRisk: '',
      traqScoreOption: '',
      videoViewability: ''
    }
  },
  urlDetails: {
    negative: false,
    url: ''
  },
  userRewardedContentDetails: {
    targetingOptionId: '',
    userRewardedContent: ''
  },
  videoPlayerSizeDetails: {
    videoPlayerSize: ''
  },
  viewabilityDetails: {
    viewability: ''
  },
  youtubeChannelDetails: {
    channelId: '',
    negative: false
  },
  youtubeVideoDetails: {
    negative: false,
    videoId: ''
  }
});

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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    ageRangeDetails: {ageRange: ''},
    appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
    assignedTargetingOptionId: '',
    assignedTargetingOptionIdAlias: '',
    audienceGroupDetails: {
      excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
      excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
      includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
      includedCustomListGroup: {settings: [{customListId: ''}]},
      includedFirstAndThirdPartyAudienceGroups: [{}],
      includedGoogleAudienceGroup: {}
    },
    audioContentTypeDetails: {audioContentType: ''},
    authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
    browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
    businessChainDetails: {
      displayName: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
    categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    channelDetails: {channelId: '', negative: false},
    contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
    contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
    contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
    contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
    contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
    dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
    deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
    deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
    digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
    environmentDetails: {environment: ''},
    exchangeDetails: {exchange: ''},
    genderDetails: {gender: ''},
    geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
    householdIncomeDetails: {householdIncome: ''},
    inheritance: '',
    inventorySourceDetails: {inventorySourceId: ''},
    inventorySourceGroupDetails: {inventorySourceGroupId: ''},
    keywordDetails: {keyword: '', negative: false},
    languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
    name: '',
    nativeContentPositionDetails: {contentPosition: ''},
    negativeKeywordListDetails: {negativeKeywordListId: ''},
    omidDetails: {omid: ''},
    onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
    operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
    parentalStatusDetails: {parentalStatus: ''},
    poiDetails: {
      displayName: '',
      latitude: '',
      longitude: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
    regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
    sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
    sessionPositionDetails: {sessionPosition: ''},
    subExchangeDetails: {targetingOptionId: ''},
    targetingType: '',
    thirdPartyVerifierDetails: {
      adloox: {excludedAdlooxCategories: []},
      doubleVerify: {
        appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
        avoidedAgeRatings: [],
        brandSafetyCategories: {
          avoidUnknownBrandSafetyCategory: false,
          avoidedHighSeverityCategories: [],
          avoidedMediumSeverityCategories: []
        },
        customSegmentId: '',
        displayViewability: {iab: '', viewableDuring: ''},
        fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
        videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
      },
      integralAdScience: {
        customSegmentId: [],
        displayViewability: '',
        excludeUnrateable: false,
        excludedAdFraudRisk: '',
        excludedAdultRisk: '',
        excludedAlcoholRisk: '',
        excludedDrugsRisk: '',
        excludedGamblingRisk: '',
        excludedHateSpeechRisk: '',
        excludedIllegalDownloadsRisk: '',
        excludedOffensiveLanguageRisk: '',
        excludedViolenceRisk: '',
        traqScoreOption: '',
        videoViewability: ''
      }
    },
    urlDetails: {negative: false, url: ''},
    userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
    videoPlayerSizeDetails: {videoPlayerSize: ''},
    viewabilityDetails: {viewability: ''},
    youtubeChannelDetails: {channelId: '', negative: false},
    youtubeVideoDetails: {negative: false, videoId: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}'
};

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 = @{ @"ageRangeDetails": @{ @"ageRange": @"" },
                              @"appCategoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"appDetails": @{ @"appId": @"", @"appPlatform": @"", @"displayName": @"", @"negative": @NO },
                              @"assignedTargetingOptionId": @"",
                              @"assignedTargetingOptionIdAlias": @"",
                              @"audienceGroupDetails": @{ @"excludedFirstAndThirdPartyAudienceGroup": @{ @"settings": @[ @{ @"firstAndThirdPartyAudienceId": @"", @"recency": @"" } ] }, @"excludedGoogleAudienceGroup": @{ @"settings": @[ @{ @"googleAudienceId": @"" } ] }, @"includedCombinedAudienceGroup": @{ @"settings": @[ @{ @"combinedAudienceId": @"" } ] }, @"includedCustomListGroup": @{ @"settings": @[ @{ @"customListId": @"" } ] }, @"includedFirstAndThirdPartyAudienceGroups": @[ @{  } ], @"includedGoogleAudienceGroup": @{  } },
                              @"audioContentTypeDetails": @{ @"audioContentType": @"" },
                              @"authorizedSellerStatusDetails": @{ @"authorizedSellerStatus": @"", @"targetingOptionId": @"" },
                              @"browserDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"businessChainDetails": @{ @"displayName": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" },
                              @"carrierAndIspDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"categoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"channelDetails": @{ @"channelId": @"", @"negative": @NO },
                              @"contentDurationDetails": @{ @"contentDuration": @"", @"targetingOptionId": @"" },
                              @"contentGenreDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"contentInstreamPositionDetails": @{ @"adType": @"", @"contentInstreamPosition": @"" },
                              @"contentOutstreamPositionDetails": @{ @"adType": @"", @"contentOutstreamPosition": @"" },
                              @"contentStreamTypeDetails": @{ @"contentStreamType": @"", @"targetingOptionId": @"" },
                              @"dayAndTimeDetails": @{ @"dayOfWeek": @"", @"endHour": @0, @"startHour": @0, @"timeZoneResolution": @"" },
                              @"deviceMakeModelDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"deviceTypeDetails": @{ @"deviceType": @"", @"youtubeAndPartnersBidMultiplier": @"" },
                              @"digitalContentLabelExclusionDetails": @{ @"excludedContentRatingTier": @"" },
                              @"environmentDetails": @{ @"environment": @"" },
                              @"exchangeDetails": @{ @"exchange": @"" },
                              @"genderDetails": @{ @"gender": @"" },
                              @"geoRegionDetails": @{ @"displayName": @"", @"geoRegionType": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"householdIncomeDetails": @{ @"householdIncome": @"" },
                              @"inheritance": @"",
                              @"inventorySourceDetails": @{ @"inventorySourceId": @"" },
                              @"inventorySourceGroupDetails": @{ @"inventorySourceGroupId": @"" },
                              @"keywordDetails": @{ @"keyword": @"", @"negative": @NO },
                              @"languageDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"name": @"",
                              @"nativeContentPositionDetails": @{ @"contentPosition": @"" },
                              @"negativeKeywordListDetails": @{ @"negativeKeywordListId": @"" },
                              @"omidDetails": @{ @"omid": @"" },
                              @"onScreenPositionDetails": @{ @"adType": @"", @"onScreenPosition": @"", @"targetingOptionId": @"" },
                              @"operatingSystemDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"parentalStatusDetails": @{ @"parentalStatus": @"" },
                              @"poiDetails": @{ @"displayName": @"", @"latitude": @"", @"longitude": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" },
                              @"proximityLocationListDetails": @{ @"proximityLocationListId": @"", @"proximityRadius": @"", @"proximityRadiusUnit": @"" },
                              @"regionalLocationListDetails": @{ @"negative": @NO, @"regionalLocationListId": @"" },
                              @"sensitiveCategoryExclusionDetails": @{ @"excludedSensitiveCategory": @"" },
                              @"sessionPositionDetails": @{ @"sessionPosition": @"" },
                              @"subExchangeDetails": @{ @"targetingOptionId": @"" },
                              @"targetingType": @"",
                              @"thirdPartyVerifierDetails": @{ @"adloox": @{ @"excludedAdlooxCategories": @[  ] }, @"doubleVerify": @{ @"appStarRating": @{ @"avoidInsufficientStarRating": @NO, @"avoidedStarRating": @"" }, @"avoidedAgeRatings": @[  ], @"brandSafetyCategories": @{ @"avoidUnknownBrandSafetyCategory": @NO, @"avoidedHighSeverityCategories": @[  ], @"avoidedMediumSeverityCategories": @[  ] }, @"customSegmentId": @"", @"displayViewability": @{ @"iab": @"", @"viewableDuring": @"" }, @"fraudInvalidTraffic": @{ @"avoidInsufficientOption": @NO, @"avoidedFraudOption": @"" }, @"videoViewability": @{ @"playerImpressionRate": @"", @"videoIab": @"", @"videoViewableRate": @"" } }, @"integralAdScience": @{ @"customSegmentId": @[  ], @"displayViewability": @"", @"excludeUnrateable": @NO, @"excludedAdFraudRisk": @"", @"excludedAdultRisk": @"", @"excludedAlcoholRisk": @"", @"excludedDrugsRisk": @"", @"excludedGamblingRisk": @"", @"excludedHateSpeechRisk": @"", @"excludedIllegalDownloadsRisk": @"", @"excludedOffensiveLanguageRisk": @"", @"excludedViolenceRisk": @"", @"traqScoreOption": @"", @"videoViewability": @"" } },
                              @"urlDetails": @{ @"negative": @NO, @"url": @"" },
                              @"userRewardedContentDetails": @{ @"targetingOptionId": @"", @"userRewardedContent": @"" },
                              @"videoPlayerSizeDetails": @{ @"videoPlayerSize": @"" },
                              @"viewabilityDetails": @{ @"viewability": @"" },
                              @"youtubeChannelDetails": @{ @"channelId": @"", @"negative": @NO },
                              @"youtubeVideoDetails": @{ @"negative": @NO, @"videoId": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions",
  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([
    'ageRangeDetails' => [
        'ageRange' => ''
    ],
    'appCategoryDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'appDetails' => [
        'appId' => '',
        'appPlatform' => '',
        'displayName' => '',
        'negative' => null
    ],
    'assignedTargetingOptionId' => '',
    'assignedTargetingOptionIdAlias' => '',
    'audienceGroupDetails' => [
        'excludedFirstAndThirdPartyAudienceGroup' => [
                'settings' => [
                                [
                                                                'firstAndThirdPartyAudienceId' => '',
                                                                'recency' => ''
                                ]
                ]
        ],
        'excludedGoogleAudienceGroup' => [
                'settings' => [
                                [
                                                                'googleAudienceId' => ''
                                ]
                ]
        ],
        'includedCombinedAudienceGroup' => [
                'settings' => [
                                [
                                                                'combinedAudienceId' => ''
                                ]
                ]
        ],
        'includedCustomListGroup' => [
                'settings' => [
                                [
                                                                'customListId' => ''
                                ]
                ]
        ],
        'includedFirstAndThirdPartyAudienceGroups' => [
                [
                                
                ]
        ],
        'includedGoogleAudienceGroup' => [
                
        ]
    ],
    'audioContentTypeDetails' => [
        'audioContentType' => ''
    ],
    'authorizedSellerStatusDetails' => [
        'authorizedSellerStatus' => '',
        'targetingOptionId' => ''
    ],
    'browserDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'businessChainDetails' => [
        'displayName' => '',
        'proximityRadiusAmount' => '',
        'proximityRadiusUnit' => '',
        'targetingOptionId' => ''
    ],
    'carrierAndIspDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'categoryDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'channelDetails' => [
        'channelId' => '',
        'negative' => null
    ],
    'contentDurationDetails' => [
        'contentDuration' => '',
        'targetingOptionId' => ''
    ],
    'contentGenreDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'contentInstreamPositionDetails' => [
        'adType' => '',
        'contentInstreamPosition' => ''
    ],
    'contentOutstreamPositionDetails' => [
        'adType' => '',
        'contentOutstreamPosition' => ''
    ],
    'contentStreamTypeDetails' => [
        'contentStreamType' => '',
        'targetingOptionId' => ''
    ],
    'dayAndTimeDetails' => [
        'dayOfWeek' => '',
        'endHour' => 0,
        'startHour' => 0,
        'timeZoneResolution' => ''
    ],
    'deviceMakeModelDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'deviceTypeDetails' => [
        'deviceType' => '',
        'youtubeAndPartnersBidMultiplier' => ''
    ],
    'digitalContentLabelExclusionDetails' => [
        'excludedContentRatingTier' => ''
    ],
    'environmentDetails' => [
        'environment' => ''
    ],
    'exchangeDetails' => [
        'exchange' => ''
    ],
    'genderDetails' => [
        'gender' => ''
    ],
    'geoRegionDetails' => [
        'displayName' => '',
        'geoRegionType' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'householdIncomeDetails' => [
        'householdIncome' => ''
    ],
    'inheritance' => '',
    'inventorySourceDetails' => [
        'inventorySourceId' => ''
    ],
    'inventorySourceGroupDetails' => [
        'inventorySourceGroupId' => ''
    ],
    'keywordDetails' => [
        'keyword' => '',
        'negative' => null
    ],
    'languageDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'name' => '',
    'nativeContentPositionDetails' => [
        'contentPosition' => ''
    ],
    'negativeKeywordListDetails' => [
        'negativeKeywordListId' => ''
    ],
    'omidDetails' => [
        'omid' => ''
    ],
    'onScreenPositionDetails' => [
        'adType' => '',
        'onScreenPosition' => '',
        'targetingOptionId' => ''
    ],
    'operatingSystemDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'parentalStatusDetails' => [
        'parentalStatus' => ''
    ],
    'poiDetails' => [
        'displayName' => '',
        'latitude' => '',
        'longitude' => '',
        'proximityRadiusAmount' => '',
        'proximityRadiusUnit' => '',
        'targetingOptionId' => ''
    ],
    'proximityLocationListDetails' => [
        'proximityLocationListId' => '',
        'proximityRadius' => '',
        'proximityRadiusUnit' => ''
    ],
    'regionalLocationListDetails' => [
        'negative' => null,
        'regionalLocationListId' => ''
    ],
    'sensitiveCategoryExclusionDetails' => [
        'excludedSensitiveCategory' => ''
    ],
    'sessionPositionDetails' => [
        'sessionPosition' => ''
    ],
    'subExchangeDetails' => [
        'targetingOptionId' => ''
    ],
    'targetingType' => '',
    'thirdPartyVerifierDetails' => [
        'adloox' => [
                'excludedAdlooxCategories' => [
                                
                ]
        ],
        'doubleVerify' => [
                'appStarRating' => [
                                'avoidInsufficientStarRating' => null,
                                'avoidedStarRating' => ''
                ],
                'avoidedAgeRatings' => [
                                
                ],
                'brandSafetyCategories' => [
                                'avoidUnknownBrandSafetyCategory' => null,
                                'avoidedHighSeverityCategories' => [
                                                                
                                ],
                                'avoidedMediumSeverityCategories' => [
                                                                
                                ]
                ],
                'customSegmentId' => '',
                'displayViewability' => [
                                'iab' => '',
                                'viewableDuring' => ''
                ],
                'fraudInvalidTraffic' => [
                                'avoidInsufficientOption' => null,
                                'avoidedFraudOption' => ''
                ],
                'videoViewability' => [
                                'playerImpressionRate' => '',
                                'videoIab' => '',
                                'videoViewableRate' => ''
                ]
        ],
        'integralAdScience' => [
                'customSegmentId' => [
                                
                ],
                'displayViewability' => '',
                'excludeUnrateable' => null,
                'excludedAdFraudRisk' => '',
                'excludedAdultRisk' => '',
                'excludedAlcoholRisk' => '',
                'excludedDrugsRisk' => '',
                'excludedGamblingRisk' => '',
                'excludedHateSpeechRisk' => '',
                'excludedIllegalDownloadsRisk' => '',
                'excludedOffensiveLanguageRisk' => '',
                'excludedViolenceRisk' => '',
                'traqScoreOption' => '',
                'videoViewability' => ''
        ]
    ],
    'urlDetails' => [
        'negative' => null,
        'url' => ''
    ],
    'userRewardedContentDetails' => [
        'targetingOptionId' => '',
        'userRewardedContent' => ''
    ],
    'videoPlayerSizeDetails' => [
        'videoPlayerSize' => ''
    ],
    'viewabilityDetails' => [
        'viewability' => ''
    ],
    'youtubeChannelDetails' => [
        'channelId' => '',
        'negative' => null
    ],
    'youtubeVideoDetails' => [
        'negative' => null,
        'videoId' => ''
    ]
  ]),
  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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions', [
  'body' => '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'ageRangeDetails' => [
    'ageRange' => ''
  ],
  'appCategoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'appDetails' => [
    'appId' => '',
    'appPlatform' => '',
    'displayName' => '',
    'negative' => null
  ],
  'assignedTargetingOptionId' => '',
  'assignedTargetingOptionIdAlias' => '',
  'audienceGroupDetails' => [
    'excludedFirstAndThirdPartyAudienceGroup' => [
        'settings' => [
                [
                                'firstAndThirdPartyAudienceId' => '',
                                'recency' => ''
                ]
        ]
    ],
    'excludedGoogleAudienceGroup' => [
        'settings' => [
                [
                                'googleAudienceId' => ''
                ]
        ]
    ],
    'includedCombinedAudienceGroup' => [
        'settings' => [
                [
                                'combinedAudienceId' => ''
                ]
        ]
    ],
    'includedCustomListGroup' => [
        'settings' => [
                [
                                'customListId' => ''
                ]
        ]
    ],
    'includedFirstAndThirdPartyAudienceGroups' => [
        [
                
        ]
    ],
    'includedGoogleAudienceGroup' => [
        
    ]
  ],
  'audioContentTypeDetails' => [
    'audioContentType' => ''
  ],
  'authorizedSellerStatusDetails' => [
    'authorizedSellerStatus' => '',
    'targetingOptionId' => ''
  ],
  'browserDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'businessChainDetails' => [
    'displayName' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'carrierAndIspDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'categoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'channelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'contentDurationDetails' => [
    'contentDuration' => '',
    'targetingOptionId' => ''
  ],
  'contentGenreDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'contentInstreamPositionDetails' => [
    'adType' => '',
    'contentInstreamPosition' => ''
  ],
  'contentOutstreamPositionDetails' => [
    'adType' => '',
    'contentOutstreamPosition' => ''
  ],
  'contentStreamTypeDetails' => [
    'contentStreamType' => '',
    'targetingOptionId' => ''
  ],
  'dayAndTimeDetails' => [
    'dayOfWeek' => '',
    'endHour' => 0,
    'startHour' => 0,
    'timeZoneResolution' => ''
  ],
  'deviceMakeModelDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'deviceTypeDetails' => [
    'deviceType' => '',
    'youtubeAndPartnersBidMultiplier' => ''
  ],
  'digitalContentLabelExclusionDetails' => [
    'excludedContentRatingTier' => ''
  ],
  'environmentDetails' => [
    'environment' => ''
  ],
  'exchangeDetails' => [
    'exchange' => ''
  ],
  'genderDetails' => [
    'gender' => ''
  ],
  'geoRegionDetails' => [
    'displayName' => '',
    'geoRegionType' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'householdIncomeDetails' => [
    'householdIncome' => ''
  ],
  'inheritance' => '',
  'inventorySourceDetails' => [
    'inventorySourceId' => ''
  ],
  'inventorySourceGroupDetails' => [
    'inventorySourceGroupId' => ''
  ],
  'keywordDetails' => [
    'keyword' => '',
    'negative' => null
  ],
  'languageDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'name' => '',
  'nativeContentPositionDetails' => [
    'contentPosition' => ''
  ],
  'negativeKeywordListDetails' => [
    'negativeKeywordListId' => ''
  ],
  'omidDetails' => [
    'omid' => ''
  ],
  'onScreenPositionDetails' => [
    'adType' => '',
    'onScreenPosition' => '',
    'targetingOptionId' => ''
  ],
  'operatingSystemDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'parentalStatusDetails' => [
    'parentalStatus' => ''
  ],
  'poiDetails' => [
    'displayName' => '',
    'latitude' => '',
    'longitude' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'proximityLocationListDetails' => [
    'proximityLocationListId' => '',
    'proximityRadius' => '',
    'proximityRadiusUnit' => ''
  ],
  'regionalLocationListDetails' => [
    'negative' => null,
    'regionalLocationListId' => ''
  ],
  'sensitiveCategoryExclusionDetails' => [
    'excludedSensitiveCategory' => ''
  ],
  'sessionPositionDetails' => [
    'sessionPosition' => ''
  ],
  'subExchangeDetails' => [
    'targetingOptionId' => ''
  ],
  'targetingType' => '',
  'thirdPartyVerifierDetails' => [
    'adloox' => [
        'excludedAdlooxCategories' => [
                
        ]
    ],
    'doubleVerify' => [
        'appStarRating' => [
                'avoidInsufficientStarRating' => null,
                'avoidedStarRating' => ''
        ],
        'avoidedAgeRatings' => [
                
        ],
        'brandSafetyCategories' => [
                'avoidUnknownBrandSafetyCategory' => null,
                'avoidedHighSeverityCategories' => [
                                
                ],
                'avoidedMediumSeverityCategories' => [
                                
                ]
        ],
        'customSegmentId' => '',
        'displayViewability' => [
                'iab' => '',
                'viewableDuring' => ''
        ],
        'fraudInvalidTraffic' => [
                'avoidInsufficientOption' => null,
                'avoidedFraudOption' => ''
        ],
        'videoViewability' => [
                'playerImpressionRate' => '',
                'videoIab' => '',
                'videoViewableRate' => ''
        ]
    ],
    'integralAdScience' => [
        'customSegmentId' => [
                
        ],
        'displayViewability' => '',
        'excludeUnrateable' => null,
        'excludedAdFraudRisk' => '',
        'excludedAdultRisk' => '',
        'excludedAlcoholRisk' => '',
        'excludedDrugsRisk' => '',
        'excludedGamblingRisk' => '',
        'excludedHateSpeechRisk' => '',
        'excludedIllegalDownloadsRisk' => '',
        'excludedOffensiveLanguageRisk' => '',
        'excludedViolenceRisk' => '',
        'traqScoreOption' => '',
        'videoViewability' => ''
    ]
  ],
  'urlDetails' => [
    'negative' => null,
    'url' => ''
  ],
  'userRewardedContentDetails' => [
    'targetingOptionId' => '',
    'userRewardedContent' => ''
  ],
  'videoPlayerSizeDetails' => [
    'videoPlayerSize' => ''
  ],
  'viewabilityDetails' => [
    'viewability' => ''
  ],
  'youtubeChannelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'youtubeVideoDetails' => [
    'negative' => null,
    'videoId' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'ageRangeDetails' => [
    'ageRange' => ''
  ],
  'appCategoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'appDetails' => [
    'appId' => '',
    'appPlatform' => '',
    'displayName' => '',
    'negative' => null
  ],
  'assignedTargetingOptionId' => '',
  'assignedTargetingOptionIdAlias' => '',
  'audienceGroupDetails' => [
    'excludedFirstAndThirdPartyAudienceGroup' => [
        'settings' => [
                [
                                'firstAndThirdPartyAudienceId' => '',
                                'recency' => ''
                ]
        ]
    ],
    'excludedGoogleAudienceGroup' => [
        'settings' => [
                [
                                'googleAudienceId' => ''
                ]
        ]
    ],
    'includedCombinedAudienceGroup' => [
        'settings' => [
                [
                                'combinedAudienceId' => ''
                ]
        ]
    ],
    'includedCustomListGroup' => [
        'settings' => [
                [
                                'customListId' => ''
                ]
        ]
    ],
    'includedFirstAndThirdPartyAudienceGroups' => [
        [
                
        ]
    ],
    'includedGoogleAudienceGroup' => [
        
    ]
  ],
  'audioContentTypeDetails' => [
    'audioContentType' => ''
  ],
  'authorizedSellerStatusDetails' => [
    'authorizedSellerStatus' => '',
    'targetingOptionId' => ''
  ],
  'browserDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'businessChainDetails' => [
    'displayName' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'carrierAndIspDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'categoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'channelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'contentDurationDetails' => [
    'contentDuration' => '',
    'targetingOptionId' => ''
  ],
  'contentGenreDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'contentInstreamPositionDetails' => [
    'adType' => '',
    'contentInstreamPosition' => ''
  ],
  'contentOutstreamPositionDetails' => [
    'adType' => '',
    'contentOutstreamPosition' => ''
  ],
  'contentStreamTypeDetails' => [
    'contentStreamType' => '',
    'targetingOptionId' => ''
  ],
  'dayAndTimeDetails' => [
    'dayOfWeek' => '',
    'endHour' => 0,
    'startHour' => 0,
    'timeZoneResolution' => ''
  ],
  'deviceMakeModelDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'deviceTypeDetails' => [
    'deviceType' => '',
    'youtubeAndPartnersBidMultiplier' => ''
  ],
  'digitalContentLabelExclusionDetails' => [
    'excludedContentRatingTier' => ''
  ],
  'environmentDetails' => [
    'environment' => ''
  ],
  'exchangeDetails' => [
    'exchange' => ''
  ],
  'genderDetails' => [
    'gender' => ''
  ],
  'geoRegionDetails' => [
    'displayName' => '',
    'geoRegionType' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'householdIncomeDetails' => [
    'householdIncome' => ''
  ],
  'inheritance' => '',
  'inventorySourceDetails' => [
    'inventorySourceId' => ''
  ],
  'inventorySourceGroupDetails' => [
    'inventorySourceGroupId' => ''
  ],
  'keywordDetails' => [
    'keyword' => '',
    'negative' => null
  ],
  'languageDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'name' => '',
  'nativeContentPositionDetails' => [
    'contentPosition' => ''
  ],
  'negativeKeywordListDetails' => [
    'negativeKeywordListId' => ''
  ],
  'omidDetails' => [
    'omid' => ''
  ],
  'onScreenPositionDetails' => [
    'adType' => '',
    'onScreenPosition' => '',
    'targetingOptionId' => ''
  ],
  'operatingSystemDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'parentalStatusDetails' => [
    'parentalStatus' => ''
  ],
  'poiDetails' => [
    'displayName' => '',
    'latitude' => '',
    'longitude' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'proximityLocationListDetails' => [
    'proximityLocationListId' => '',
    'proximityRadius' => '',
    'proximityRadiusUnit' => ''
  ],
  'regionalLocationListDetails' => [
    'negative' => null,
    'regionalLocationListId' => ''
  ],
  'sensitiveCategoryExclusionDetails' => [
    'excludedSensitiveCategory' => ''
  ],
  'sessionPositionDetails' => [
    'sessionPosition' => ''
  ],
  'subExchangeDetails' => [
    'targetingOptionId' => ''
  ],
  'targetingType' => '',
  'thirdPartyVerifierDetails' => [
    'adloox' => [
        'excludedAdlooxCategories' => [
                
        ]
    ],
    'doubleVerify' => [
        'appStarRating' => [
                'avoidInsufficientStarRating' => null,
                'avoidedStarRating' => ''
        ],
        'avoidedAgeRatings' => [
                
        ],
        'brandSafetyCategories' => [
                'avoidUnknownBrandSafetyCategory' => null,
                'avoidedHighSeverityCategories' => [
                                
                ],
                'avoidedMediumSeverityCategories' => [
                                
                ]
        ],
        'customSegmentId' => '',
        'displayViewability' => [
                'iab' => '',
                'viewableDuring' => ''
        ],
        'fraudInvalidTraffic' => [
                'avoidInsufficientOption' => null,
                'avoidedFraudOption' => ''
        ],
        'videoViewability' => [
                'playerImpressionRate' => '',
                'videoIab' => '',
                'videoViewableRate' => ''
        ]
    ],
    'integralAdScience' => [
        'customSegmentId' => [
                
        ],
        'displayViewability' => '',
        'excludeUnrateable' => null,
        'excludedAdFraudRisk' => '',
        'excludedAdultRisk' => '',
        'excludedAlcoholRisk' => '',
        'excludedDrugsRisk' => '',
        'excludedGamblingRisk' => '',
        'excludedHateSpeechRisk' => '',
        'excludedIllegalDownloadsRisk' => '',
        'excludedOffensiveLanguageRisk' => '',
        'excludedViolenceRisk' => '',
        'traqScoreOption' => '',
        'videoViewability' => ''
    ]
  ],
  'urlDetails' => [
    'negative' => null,
    'url' => ''
  ],
  'userRewardedContentDetails' => [
    'targetingOptionId' => '',
    'userRewardedContent' => ''
  ],
  'videoPlayerSizeDetails' => [
    'videoPlayerSize' => ''
  ],
  'viewabilityDetails' => [
    'viewability' => ''
  ],
  'youtubeChannelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'youtubeVideoDetails' => [
    'negative' => null,
    'videoId' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions');
$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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"

payload = {
    "ageRangeDetails": { "ageRange": "" },
    "appCategoryDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "appDetails": {
        "appId": "",
        "appPlatform": "",
        "displayName": "",
        "negative": False
    },
    "assignedTargetingOptionId": "",
    "assignedTargetingOptionIdAlias": "",
    "audienceGroupDetails": {
        "excludedFirstAndThirdPartyAudienceGroup": { "settings": [
                {
                    "firstAndThirdPartyAudienceId": "",
                    "recency": ""
                }
            ] },
        "excludedGoogleAudienceGroup": { "settings": [{ "googleAudienceId": "" }] },
        "includedCombinedAudienceGroup": { "settings": [{ "combinedAudienceId": "" }] },
        "includedCustomListGroup": { "settings": [{ "customListId": "" }] },
        "includedFirstAndThirdPartyAudienceGroups": [{}],
        "includedGoogleAudienceGroup": {}
    },
    "audioContentTypeDetails": { "audioContentType": "" },
    "authorizedSellerStatusDetails": {
        "authorizedSellerStatus": "",
        "targetingOptionId": ""
    },
    "browserDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "businessChainDetails": {
        "displayName": "",
        "proximityRadiusAmount": "",
        "proximityRadiusUnit": "",
        "targetingOptionId": ""
    },
    "carrierAndIspDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "categoryDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "channelDetails": {
        "channelId": "",
        "negative": False
    },
    "contentDurationDetails": {
        "contentDuration": "",
        "targetingOptionId": ""
    },
    "contentGenreDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "contentInstreamPositionDetails": {
        "adType": "",
        "contentInstreamPosition": ""
    },
    "contentOutstreamPositionDetails": {
        "adType": "",
        "contentOutstreamPosition": ""
    },
    "contentStreamTypeDetails": {
        "contentStreamType": "",
        "targetingOptionId": ""
    },
    "dayAndTimeDetails": {
        "dayOfWeek": "",
        "endHour": 0,
        "startHour": 0,
        "timeZoneResolution": ""
    },
    "deviceMakeModelDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "deviceTypeDetails": {
        "deviceType": "",
        "youtubeAndPartnersBidMultiplier": ""
    },
    "digitalContentLabelExclusionDetails": { "excludedContentRatingTier": "" },
    "environmentDetails": { "environment": "" },
    "exchangeDetails": { "exchange": "" },
    "genderDetails": { "gender": "" },
    "geoRegionDetails": {
        "displayName": "",
        "geoRegionType": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "householdIncomeDetails": { "householdIncome": "" },
    "inheritance": "",
    "inventorySourceDetails": { "inventorySourceId": "" },
    "inventorySourceGroupDetails": { "inventorySourceGroupId": "" },
    "keywordDetails": {
        "keyword": "",
        "negative": False
    },
    "languageDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "name": "",
    "nativeContentPositionDetails": { "contentPosition": "" },
    "negativeKeywordListDetails": { "negativeKeywordListId": "" },
    "omidDetails": { "omid": "" },
    "onScreenPositionDetails": {
        "adType": "",
        "onScreenPosition": "",
        "targetingOptionId": ""
    },
    "operatingSystemDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "parentalStatusDetails": { "parentalStatus": "" },
    "poiDetails": {
        "displayName": "",
        "latitude": "",
        "longitude": "",
        "proximityRadiusAmount": "",
        "proximityRadiusUnit": "",
        "targetingOptionId": ""
    },
    "proximityLocationListDetails": {
        "proximityLocationListId": "",
        "proximityRadius": "",
        "proximityRadiusUnit": ""
    },
    "regionalLocationListDetails": {
        "negative": False,
        "regionalLocationListId": ""
    },
    "sensitiveCategoryExclusionDetails": { "excludedSensitiveCategory": "" },
    "sessionPositionDetails": { "sessionPosition": "" },
    "subExchangeDetails": { "targetingOptionId": "" },
    "targetingType": "",
    "thirdPartyVerifierDetails": {
        "adloox": { "excludedAdlooxCategories": [] },
        "doubleVerify": {
            "appStarRating": {
                "avoidInsufficientStarRating": False,
                "avoidedStarRating": ""
            },
            "avoidedAgeRatings": [],
            "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": False,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
            },
            "customSegmentId": "",
            "displayViewability": {
                "iab": "",
                "viewableDuring": ""
            },
            "fraudInvalidTraffic": {
                "avoidInsufficientOption": False,
                "avoidedFraudOption": ""
            },
            "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
            }
        },
        "integralAdScience": {
            "customSegmentId": [],
            "displayViewability": "",
            "excludeUnrateable": False,
            "excludedAdFraudRisk": "",
            "excludedAdultRisk": "",
            "excludedAlcoholRisk": "",
            "excludedDrugsRisk": "",
            "excludedGamblingRisk": "",
            "excludedHateSpeechRisk": "",
            "excludedIllegalDownloadsRisk": "",
            "excludedOffensiveLanguageRisk": "",
            "excludedViolenceRisk": "",
            "traqScoreOption": "",
            "videoViewability": ""
        }
    },
    "urlDetails": {
        "negative": False,
        "url": ""
    },
    "userRewardedContentDetails": {
        "targetingOptionId": "",
        "userRewardedContent": ""
    },
    "videoPlayerSizeDetails": { "videoPlayerSize": "" },
    "viewabilityDetails": { "viewability": "" },
    "youtubeChannelDetails": {
        "channelId": "",
        "negative": False
    },
    "youtubeVideoDetails": {
        "negative": False,
        "videoId": ""
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"

payload <- "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")

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  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions') do |req|
  req.body = "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions";

    let payload = json!({
        "ageRangeDetails": json!({"ageRange": ""}),
        "appCategoryDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "appDetails": json!({
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
        }),
        "assignedTargetingOptionId": "",
        "assignedTargetingOptionIdAlias": "",
        "audienceGroupDetails": json!({
            "excludedFirstAndThirdPartyAudienceGroup": json!({"settings": (
                    json!({
                        "firstAndThirdPartyAudienceId": "",
                        "recency": ""
                    })
                )}),
            "excludedGoogleAudienceGroup": json!({"settings": (json!({"googleAudienceId": ""}))}),
            "includedCombinedAudienceGroup": json!({"settings": (json!({"combinedAudienceId": ""}))}),
            "includedCustomListGroup": json!({"settings": (json!({"customListId": ""}))}),
            "includedFirstAndThirdPartyAudienceGroups": (json!({})),
            "includedGoogleAudienceGroup": json!({})
        }),
        "audioContentTypeDetails": json!({"audioContentType": ""}),
        "authorizedSellerStatusDetails": json!({
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
        }),
        "browserDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "businessChainDetails": json!({
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
        }),
        "carrierAndIspDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "categoryDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "channelDetails": json!({
            "channelId": "",
            "negative": false
        }),
        "contentDurationDetails": json!({
            "contentDuration": "",
            "targetingOptionId": ""
        }),
        "contentGenreDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "contentInstreamPositionDetails": json!({
            "adType": "",
            "contentInstreamPosition": ""
        }),
        "contentOutstreamPositionDetails": json!({
            "adType": "",
            "contentOutstreamPosition": ""
        }),
        "contentStreamTypeDetails": json!({
            "contentStreamType": "",
            "targetingOptionId": ""
        }),
        "dayAndTimeDetails": json!({
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
        }),
        "deviceMakeModelDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "deviceTypeDetails": json!({
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
        }),
        "digitalContentLabelExclusionDetails": json!({"excludedContentRatingTier": ""}),
        "environmentDetails": json!({"environment": ""}),
        "exchangeDetails": json!({"exchange": ""}),
        "genderDetails": json!({"gender": ""}),
        "geoRegionDetails": json!({
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "householdIncomeDetails": json!({"householdIncome": ""}),
        "inheritance": "",
        "inventorySourceDetails": json!({"inventorySourceId": ""}),
        "inventorySourceGroupDetails": json!({"inventorySourceGroupId": ""}),
        "keywordDetails": json!({
            "keyword": "",
            "negative": false
        }),
        "languageDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "name": "",
        "nativeContentPositionDetails": json!({"contentPosition": ""}),
        "negativeKeywordListDetails": json!({"negativeKeywordListId": ""}),
        "omidDetails": json!({"omid": ""}),
        "onScreenPositionDetails": json!({
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
        }),
        "operatingSystemDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "parentalStatusDetails": json!({"parentalStatus": ""}),
        "poiDetails": json!({
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
        }),
        "proximityLocationListDetails": json!({
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
        }),
        "regionalLocationListDetails": json!({
            "negative": false,
            "regionalLocationListId": ""
        }),
        "sensitiveCategoryExclusionDetails": json!({"excludedSensitiveCategory": ""}),
        "sessionPositionDetails": json!({"sessionPosition": ""}),
        "subExchangeDetails": json!({"targetingOptionId": ""}),
        "targetingType": "",
        "thirdPartyVerifierDetails": json!({
            "adloox": json!({"excludedAdlooxCategories": ()}),
            "doubleVerify": json!({
                "appStarRating": json!({
                    "avoidInsufficientStarRating": false,
                    "avoidedStarRating": ""
                }),
                "avoidedAgeRatings": (),
                "brandSafetyCategories": json!({
                    "avoidUnknownBrandSafetyCategory": false,
                    "avoidedHighSeverityCategories": (),
                    "avoidedMediumSeverityCategories": ()
                }),
                "customSegmentId": "",
                "displayViewability": json!({
                    "iab": "",
                    "viewableDuring": ""
                }),
                "fraudInvalidTraffic": json!({
                    "avoidInsufficientOption": false,
                    "avoidedFraudOption": ""
                }),
                "videoViewability": json!({
                    "playerImpressionRate": "",
                    "videoIab": "",
                    "videoViewableRate": ""
                })
            }),
            "integralAdScience": json!({
                "customSegmentId": (),
                "displayViewability": "",
                "excludeUnrateable": false,
                "excludedAdFraudRisk": "",
                "excludedAdultRisk": "",
                "excludedAlcoholRisk": "",
                "excludedDrugsRisk": "",
                "excludedGamblingRisk": "",
                "excludedHateSpeechRisk": "",
                "excludedIllegalDownloadsRisk": "",
                "excludedOffensiveLanguageRisk": "",
                "excludedViolenceRisk": "",
                "traqScoreOption": "",
                "videoViewability": ""
            })
        }),
        "urlDetails": json!({
            "negative": false,
            "url": ""
        }),
        "userRewardedContentDetails": json!({
            "targetingOptionId": "",
            "userRewardedContent": ""
        }),
        "videoPlayerSizeDetails": json!({"videoPlayerSize": ""}),
        "viewabilityDetails": json!({"viewability": ""}),
        "youtubeChannelDetails": json!({
            "channelId": "",
            "negative": false
        }),
        "youtubeVideoDetails": json!({
            "negative": false,
            "videoId": ""
        })
    });

    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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions \
  --header 'content-type: application/json' \
  --data '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}'
echo '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}' |  \
  http POST {{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "ageRangeDetails": {\n    "ageRange": ""\n  },\n  "appCategoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "appDetails": {\n    "appId": "",\n    "appPlatform": "",\n    "displayName": "",\n    "negative": false\n  },\n  "assignedTargetingOptionId": "",\n  "assignedTargetingOptionIdAlias": "",\n  "audienceGroupDetails": {\n    "excludedFirstAndThirdPartyAudienceGroup": {\n      "settings": [\n        {\n          "firstAndThirdPartyAudienceId": "",\n          "recency": ""\n        }\n      ]\n    },\n    "excludedGoogleAudienceGroup": {\n      "settings": [\n        {\n          "googleAudienceId": ""\n        }\n      ]\n    },\n    "includedCombinedAudienceGroup": {\n      "settings": [\n        {\n          "combinedAudienceId": ""\n        }\n      ]\n    },\n    "includedCustomListGroup": {\n      "settings": [\n        {\n          "customListId": ""\n        }\n      ]\n    },\n    "includedFirstAndThirdPartyAudienceGroups": [\n      {}\n    ],\n    "includedGoogleAudienceGroup": {}\n  },\n  "audioContentTypeDetails": {\n    "audioContentType": ""\n  },\n  "authorizedSellerStatusDetails": {\n    "authorizedSellerStatus": "",\n    "targetingOptionId": ""\n  },\n  "browserDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "businessChainDetails": {\n    "displayName": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "carrierAndIspDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "categoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "channelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "contentDurationDetails": {\n    "contentDuration": "",\n    "targetingOptionId": ""\n  },\n  "contentGenreDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "contentInstreamPositionDetails": {\n    "adType": "",\n    "contentInstreamPosition": ""\n  },\n  "contentOutstreamPositionDetails": {\n    "adType": "",\n    "contentOutstreamPosition": ""\n  },\n  "contentStreamTypeDetails": {\n    "contentStreamType": "",\n    "targetingOptionId": ""\n  },\n  "dayAndTimeDetails": {\n    "dayOfWeek": "",\n    "endHour": 0,\n    "startHour": 0,\n    "timeZoneResolution": ""\n  },\n  "deviceMakeModelDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "deviceTypeDetails": {\n    "deviceType": "",\n    "youtubeAndPartnersBidMultiplier": ""\n  },\n  "digitalContentLabelExclusionDetails": {\n    "excludedContentRatingTier": ""\n  },\n  "environmentDetails": {\n    "environment": ""\n  },\n  "exchangeDetails": {\n    "exchange": ""\n  },\n  "genderDetails": {\n    "gender": ""\n  },\n  "geoRegionDetails": {\n    "displayName": "",\n    "geoRegionType": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "householdIncomeDetails": {\n    "householdIncome": ""\n  },\n  "inheritance": "",\n  "inventorySourceDetails": {\n    "inventorySourceId": ""\n  },\n  "inventorySourceGroupDetails": {\n    "inventorySourceGroupId": ""\n  },\n  "keywordDetails": {\n    "keyword": "",\n    "negative": false\n  },\n  "languageDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "name": "",\n  "nativeContentPositionDetails": {\n    "contentPosition": ""\n  },\n  "negativeKeywordListDetails": {\n    "negativeKeywordListId": ""\n  },\n  "omidDetails": {\n    "omid": ""\n  },\n  "onScreenPositionDetails": {\n    "adType": "",\n    "onScreenPosition": "",\n    "targetingOptionId": ""\n  },\n  "operatingSystemDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "parentalStatusDetails": {\n    "parentalStatus": ""\n  },\n  "poiDetails": {\n    "displayName": "",\n    "latitude": "",\n    "longitude": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "proximityLocationListDetails": {\n    "proximityLocationListId": "",\n    "proximityRadius": "",\n    "proximityRadiusUnit": ""\n  },\n  "regionalLocationListDetails": {\n    "negative": false,\n    "regionalLocationListId": ""\n  },\n  "sensitiveCategoryExclusionDetails": {\n    "excludedSensitiveCategory": ""\n  },\n  "sessionPositionDetails": {\n    "sessionPosition": ""\n  },\n  "subExchangeDetails": {\n    "targetingOptionId": ""\n  },\n  "targetingType": "",\n  "thirdPartyVerifierDetails": {\n    "adloox": {\n      "excludedAdlooxCategories": []\n    },\n    "doubleVerify": {\n      "appStarRating": {\n        "avoidInsufficientStarRating": false,\n        "avoidedStarRating": ""\n      },\n      "avoidedAgeRatings": [],\n      "brandSafetyCategories": {\n        "avoidUnknownBrandSafetyCategory": false,\n        "avoidedHighSeverityCategories": [],\n        "avoidedMediumSeverityCategories": []\n      },\n      "customSegmentId": "",\n      "displayViewability": {\n        "iab": "",\n        "viewableDuring": ""\n      },\n      "fraudInvalidTraffic": {\n        "avoidInsufficientOption": false,\n        "avoidedFraudOption": ""\n      },\n      "videoViewability": {\n        "playerImpressionRate": "",\n        "videoIab": "",\n        "videoViewableRate": ""\n      }\n    },\n    "integralAdScience": {\n      "customSegmentId": [],\n      "displayViewability": "",\n      "excludeUnrateable": false,\n      "excludedAdFraudRisk": "",\n      "excludedAdultRisk": "",\n      "excludedAlcoholRisk": "",\n      "excludedDrugsRisk": "",\n      "excludedGamblingRisk": "",\n      "excludedHateSpeechRisk": "",\n      "excludedIllegalDownloadsRisk": "",\n      "excludedOffensiveLanguageRisk": "",\n      "excludedViolenceRisk": "",\n      "traqScoreOption": "",\n      "videoViewability": ""\n    }\n  },\n  "urlDetails": {\n    "negative": false,\n    "url": ""\n  },\n  "userRewardedContentDetails": {\n    "targetingOptionId": "",\n    "userRewardedContent": ""\n  },\n  "videoPlayerSizeDetails": {\n    "videoPlayerSize": ""\n  },\n  "viewabilityDetails": {\n    "viewability": ""\n  },\n  "youtubeChannelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "youtubeVideoDetails": {\n    "negative": false,\n    "videoId": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "ageRangeDetails": ["ageRange": ""],
  "appCategoryDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "appDetails": [
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  ],
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": [
    "excludedFirstAndThirdPartyAudienceGroup": ["settings": [
        [
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        ]
      ]],
    "excludedGoogleAudienceGroup": ["settings": [["googleAudienceId": ""]]],
    "includedCombinedAudienceGroup": ["settings": [["combinedAudienceId": ""]]],
    "includedCustomListGroup": ["settings": [["customListId": ""]]],
    "includedFirstAndThirdPartyAudienceGroups": [[]],
    "includedGoogleAudienceGroup": []
  ],
  "audioContentTypeDetails": ["audioContentType": ""],
  "authorizedSellerStatusDetails": [
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  ],
  "browserDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "businessChainDetails": [
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  ],
  "carrierAndIspDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "categoryDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "channelDetails": [
    "channelId": "",
    "negative": false
  ],
  "contentDurationDetails": [
    "contentDuration": "",
    "targetingOptionId": ""
  ],
  "contentGenreDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "contentInstreamPositionDetails": [
    "adType": "",
    "contentInstreamPosition": ""
  ],
  "contentOutstreamPositionDetails": [
    "adType": "",
    "contentOutstreamPosition": ""
  ],
  "contentStreamTypeDetails": [
    "contentStreamType": "",
    "targetingOptionId": ""
  ],
  "dayAndTimeDetails": [
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  ],
  "deviceMakeModelDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "deviceTypeDetails": [
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  ],
  "digitalContentLabelExclusionDetails": ["excludedContentRatingTier": ""],
  "environmentDetails": ["environment": ""],
  "exchangeDetails": ["exchange": ""],
  "genderDetails": ["gender": ""],
  "geoRegionDetails": [
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "householdIncomeDetails": ["householdIncome": ""],
  "inheritance": "",
  "inventorySourceDetails": ["inventorySourceId": ""],
  "inventorySourceGroupDetails": ["inventorySourceGroupId": ""],
  "keywordDetails": [
    "keyword": "",
    "negative": false
  ],
  "languageDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "name": "",
  "nativeContentPositionDetails": ["contentPosition": ""],
  "negativeKeywordListDetails": ["negativeKeywordListId": ""],
  "omidDetails": ["omid": ""],
  "onScreenPositionDetails": [
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  ],
  "operatingSystemDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "parentalStatusDetails": ["parentalStatus": ""],
  "poiDetails": [
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  ],
  "proximityLocationListDetails": [
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  ],
  "regionalLocationListDetails": [
    "negative": false,
    "regionalLocationListId": ""
  ],
  "sensitiveCategoryExclusionDetails": ["excludedSensitiveCategory": ""],
  "sessionPositionDetails": ["sessionPosition": ""],
  "subExchangeDetails": ["targetingOptionId": ""],
  "targetingType": "",
  "thirdPartyVerifierDetails": [
    "adloox": ["excludedAdlooxCategories": []],
    "doubleVerify": [
      "appStarRating": [
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      ],
      "avoidedAgeRatings": [],
      "brandSafetyCategories": [
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      ],
      "customSegmentId": "",
      "displayViewability": [
        "iab": "",
        "viewableDuring": ""
      ],
      "fraudInvalidTraffic": [
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      ],
      "videoViewability": [
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      ]
    ],
    "integralAdScience": [
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    ]
  ],
  "urlDetails": [
    "negative": false,
    "url": ""
  ],
  "userRewardedContentDetails": [
    "targetingOptionId": "",
    "userRewardedContent": ""
  ],
  "videoPlayerSizeDetails": ["videoPlayerSize": ""],
  "viewabilityDetails": ["viewability": ""],
  "youtubeChannelDetails": [
    "channelId": "",
    "negative": false
  ],
  "youtubeVideoDetails": [
    "negative": false,
    "videoId": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")! 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()
DELETE displayvideo.advertisers.targetingTypes.assignedTargetingOptions.delete
{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
QUERY PARAMS

advertiserId
targetingType
assignedTargetingOptionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

	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/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"))
    .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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"]
                                                       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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId",
  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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

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/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId";

    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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
http DELETE {{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")! 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 displayvideo.advertisers.targetingTypes.assignedTargetingOptions.get
{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
QUERY PARAMS

advertiserId
targetingType
assignedTargetingOptionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

	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/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"))
    .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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"]
                                                       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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId",
  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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

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/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId";

    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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
http GET {{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")! 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 displayvideo.advertisers.targetingTypes.assignedTargetingOptions.list
{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions
QUERY PARAMS

advertiserId
targetingType
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"

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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"

	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/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"))
    .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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")
  .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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions',
  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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions');

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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions",
  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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")

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/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions";

    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}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions
http GET {{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/targetingTypes/:targetingType/assignedTargetingOptions")! 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 displayvideo.advertisers.youtubeAdGroupAds.get
{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId
QUERY PARAMS

advertiserId
youtubeAdGroupAdId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId"

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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId"

	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/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId"))
    .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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId")
  .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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId';
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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId',
  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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId');

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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId';
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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId"]
                                                       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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId",
  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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId")

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/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId";

    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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId
http GET {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds/:youtubeAdGroupAdId")! 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 displayvideo.advertisers.youtubeAdGroupAds.list
{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds"

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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds"

	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/v2/advertisers/:advertiserId/youtubeAdGroupAds HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds"))
    .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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds")
  .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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds';
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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroupAds',
  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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds');

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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds';
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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds"]
                                                       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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds",
  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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroupAds")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds")

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/v2/advertisers/:advertiserId/youtubeAdGroupAds') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds";

    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}}/v2/advertisers/:advertiserId/youtubeAdGroupAds
http GET {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroupAds")! 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 displayvideo.advertisers.youtubeAdGroups.bulkListAdGroupAssignedTargetingOptions
{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions"

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}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions"

	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/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions"))
    .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}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions")
  .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}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions',
  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}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions');

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}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions",
  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}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions")

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/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions";

    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}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions
http GET {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups:bulkListAdGroupAssignedTargetingOptions")! 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 displayvideo.advertisers.youtubeAdGroups.get
{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId
QUERY PARAMS

advertiserId
youtubeAdGroupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId"

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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId"

	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/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId"))
    .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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId")
  .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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId';
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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId',
  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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId');

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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId';
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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId"]
                                                       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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId",
  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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId")

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/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId";

    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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId
http GET {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId")! 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 displayvideo.advertisers.youtubeAdGroups.list
{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups
QUERY PARAMS

advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups"

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}}/v2/advertisers/:advertiserId/youtubeAdGroups"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups"

	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/v2/advertisers/:advertiserId/youtubeAdGroups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups"))
    .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}}/v2/advertisers/:advertiserId/youtubeAdGroups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups")
  .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}}/v2/advertisers/:advertiserId/youtubeAdGroups');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups';
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}}/v2/advertisers/:advertiserId/youtubeAdGroups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroups',
  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}}/v2/advertisers/:advertiserId/youtubeAdGroups'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups');

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}}/v2/advertisers/:advertiserId/youtubeAdGroups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups';
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}}/v2/advertisers/:advertiserId/youtubeAdGroups"]
                                                       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}}/v2/advertisers/:advertiserId/youtubeAdGroups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups",
  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}}/v2/advertisers/:advertiserId/youtubeAdGroups');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups")

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/v2/advertisers/:advertiserId/youtubeAdGroups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups";

    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}}/v2/advertisers/:advertiserId/youtubeAdGroups
http GET {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups")! 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 displayvideo.advertisers.youtubeAdGroups.targetingTypes.assignedTargetingOptions.get
{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
QUERY PARAMS

advertiserId
youtubeAdGroupId
targetingType
assignedTargetingOptionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

	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/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"))
    .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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"]
                                                       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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId",
  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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

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/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId";

    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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
http GET {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")! 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 displayvideo.advertisers.youtubeAdGroups.targetingTypes.assignedTargetingOptions.list
{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions
QUERY PARAMS

advertiserId
youtubeAdGroupId
targetingType
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions")
require "http/client"

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions"

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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions"

	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/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions"))
    .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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions")
  .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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions',
  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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions');

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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions';
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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions"]
                                                       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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions",
  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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions")

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/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions";

    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}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions
http GET {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/advertisers/:advertiserId/youtubeAdGroups/:youtubeAdGroupId/targetingTypes/:targetingType/assignedTargetingOptions")! 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 displayvideo.combinedAudiences.get
{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId
QUERY PARAMS

combinedAudienceId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId")
require "http/client"

url = "{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId"

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}}/v2/combinedAudiences/:combinedAudienceId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId"

	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/v2/combinedAudiences/:combinedAudienceId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId"))
    .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}}/v2/combinedAudiences/:combinedAudienceId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId")
  .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}}/v2/combinedAudiences/:combinedAudienceId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId';
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}}/v2/combinedAudiences/:combinedAudienceId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/combinedAudiences/:combinedAudienceId',
  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}}/v2/combinedAudiences/:combinedAudienceId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId');

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}}/v2/combinedAudiences/:combinedAudienceId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId';
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}}/v2/combinedAudiences/:combinedAudienceId"]
                                                       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}}/v2/combinedAudiences/:combinedAudienceId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId",
  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}}/v2/combinedAudiences/:combinedAudienceId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/combinedAudiences/:combinedAudienceId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId")

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/v2/combinedAudiences/:combinedAudienceId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId";

    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}}/v2/combinedAudiences/:combinedAudienceId
http GET {{baseUrl}}/v2/combinedAudiences/:combinedAudienceId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/combinedAudiences/:combinedAudienceId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/combinedAudiences/:combinedAudienceId")! 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 displayvideo.combinedAudiences.list
{{baseUrl}}/v2/combinedAudiences
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/combinedAudiences");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/combinedAudiences")
require "http/client"

url = "{{baseUrl}}/v2/combinedAudiences"

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}}/v2/combinedAudiences"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/combinedAudiences");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/combinedAudiences"

	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/v2/combinedAudiences HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/combinedAudiences")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/combinedAudiences"))
    .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}}/v2/combinedAudiences")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/combinedAudiences")
  .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}}/v2/combinedAudiences');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/combinedAudiences'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/combinedAudiences';
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}}/v2/combinedAudiences',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/combinedAudiences")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/combinedAudiences',
  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}}/v2/combinedAudiences'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/combinedAudiences');

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}}/v2/combinedAudiences'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/combinedAudiences';
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}}/v2/combinedAudiences"]
                                                       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}}/v2/combinedAudiences" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/combinedAudiences",
  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}}/v2/combinedAudiences');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/combinedAudiences');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/combinedAudiences');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/combinedAudiences' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/combinedAudiences' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/combinedAudiences")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/combinedAudiences"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/combinedAudiences"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/combinedAudiences")

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/v2/combinedAudiences') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/combinedAudiences";

    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}}/v2/combinedAudiences
http GET {{baseUrl}}/v2/combinedAudiences
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/combinedAudiences
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/combinedAudiences")! 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 displayvideo.customBiddingAlgorithms.create
{{baseUrl}}/v2/customBiddingAlgorithms
BODY json

{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/customBiddingAlgorithms");

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  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/customBiddingAlgorithms" {:content-type :json
                                                                       :form-params {:advertiserId ""
                                                                                     :customBiddingAlgorithmId ""
                                                                                     :customBiddingAlgorithmType ""
                                                                                     :displayName ""
                                                                                     :entityStatus ""
                                                                                     :modelDetails [{:advertiserId ""
                                                                                                     :readinessState ""
                                                                                                     :suspensionState ""}]
                                                                                     :name ""
                                                                                     :partnerId ""
                                                                                     :sharedAdvertiserIds []}})
require "http/client"

url = "{{baseUrl}}/v2/customBiddingAlgorithms"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\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}}/v2/customBiddingAlgorithms"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\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}}/v2/customBiddingAlgorithms");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/customBiddingAlgorithms"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\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/v2/customBiddingAlgorithms HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 318

{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/customBiddingAlgorithms")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/customBiddingAlgorithms"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\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  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/customBiddingAlgorithms")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/customBiddingAlgorithms")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  customBiddingAlgorithmId: '',
  customBiddingAlgorithmType: '',
  displayName: '',
  entityStatus: '',
  modelDetails: [
    {
      advertiserId: '',
      readinessState: '',
      suspensionState: ''
    }
  ],
  name: '',
  partnerId: '',
  sharedAdvertiserIds: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/customBiddingAlgorithms');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/customBiddingAlgorithms',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    customBiddingAlgorithmId: '',
    customBiddingAlgorithmType: '',
    displayName: '',
    entityStatus: '',
    modelDetails: [{advertiserId: '', readinessState: '', suspensionState: ''}],
    name: '',
    partnerId: '',
    sharedAdvertiserIds: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/customBiddingAlgorithms';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","customBiddingAlgorithmId":"","customBiddingAlgorithmType":"","displayName":"","entityStatus":"","modelDetails":[{"advertiserId":"","readinessState":"","suspensionState":""}],"name":"","partnerId":"","sharedAdvertiserIds":[]}'
};

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}}/v2/customBiddingAlgorithms',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "customBiddingAlgorithmId": "",\n  "customBiddingAlgorithmType": "",\n  "displayName": "",\n  "entityStatus": "",\n  "modelDetails": [\n    {\n      "advertiserId": "",\n      "readinessState": "",\n      "suspensionState": ""\n    }\n  ],\n  "name": "",\n  "partnerId": "",\n  "sharedAdvertiserIds": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/customBiddingAlgorithms")
  .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/v2/customBiddingAlgorithms',
  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({
  advertiserId: '',
  customBiddingAlgorithmId: '',
  customBiddingAlgorithmType: '',
  displayName: '',
  entityStatus: '',
  modelDetails: [{advertiserId: '', readinessState: '', suspensionState: ''}],
  name: '',
  partnerId: '',
  sharedAdvertiserIds: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/customBiddingAlgorithms',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    customBiddingAlgorithmId: '',
    customBiddingAlgorithmType: '',
    displayName: '',
    entityStatus: '',
    modelDetails: [{advertiserId: '', readinessState: '', suspensionState: ''}],
    name: '',
    partnerId: '',
    sharedAdvertiserIds: []
  },
  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}}/v2/customBiddingAlgorithms');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  customBiddingAlgorithmId: '',
  customBiddingAlgorithmType: '',
  displayName: '',
  entityStatus: '',
  modelDetails: [
    {
      advertiserId: '',
      readinessState: '',
      suspensionState: ''
    }
  ],
  name: '',
  partnerId: '',
  sharedAdvertiserIds: []
});

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}}/v2/customBiddingAlgorithms',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    customBiddingAlgorithmId: '',
    customBiddingAlgorithmType: '',
    displayName: '',
    entityStatus: '',
    modelDetails: [{advertiserId: '', readinessState: '', suspensionState: ''}],
    name: '',
    partnerId: '',
    sharedAdvertiserIds: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/customBiddingAlgorithms';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","customBiddingAlgorithmId":"","customBiddingAlgorithmType":"","displayName":"","entityStatus":"","modelDetails":[{"advertiserId":"","readinessState":"","suspensionState":""}],"name":"","partnerId":"","sharedAdvertiserIds":[]}'
};

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 = @{ @"advertiserId": @"",
                              @"customBiddingAlgorithmId": @"",
                              @"customBiddingAlgorithmType": @"",
                              @"displayName": @"",
                              @"entityStatus": @"",
                              @"modelDetails": @[ @{ @"advertiserId": @"", @"readinessState": @"", @"suspensionState": @"" } ],
                              @"name": @"",
                              @"partnerId": @"",
                              @"sharedAdvertiserIds": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/customBiddingAlgorithms"]
                                                       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}}/v2/customBiddingAlgorithms" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/customBiddingAlgorithms",
  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([
    'advertiserId' => '',
    'customBiddingAlgorithmId' => '',
    'customBiddingAlgorithmType' => '',
    'displayName' => '',
    'entityStatus' => '',
    'modelDetails' => [
        [
                'advertiserId' => '',
                'readinessState' => '',
                'suspensionState' => ''
        ]
    ],
    'name' => '',
    'partnerId' => '',
    'sharedAdvertiserIds' => [
        
    ]
  ]),
  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}}/v2/customBiddingAlgorithms', [
  'body' => '{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/customBiddingAlgorithms');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'customBiddingAlgorithmId' => '',
  'customBiddingAlgorithmType' => '',
  'displayName' => '',
  'entityStatus' => '',
  'modelDetails' => [
    [
        'advertiserId' => '',
        'readinessState' => '',
        'suspensionState' => ''
    ]
  ],
  'name' => '',
  'partnerId' => '',
  'sharedAdvertiserIds' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'customBiddingAlgorithmId' => '',
  'customBiddingAlgorithmType' => '',
  'displayName' => '',
  'entityStatus' => '',
  'modelDetails' => [
    [
        'advertiserId' => '',
        'readinessState' => '',
        'suspensionState' => ''
    ]
  ],
  'name' => '',
  'partnerId' => '',
  'sharedAdvertiserIds' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/customBiddingAlgorithms');
$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}}/v2/customBiddingAlgorithms' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/customBiddingAlgorithms' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/customBiddingAlgorithms", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/customBiddingAlgorithms"

payload = {
    "advertiserId": "",
    "customBiddingAlgorithmId": "",
    "customBiddingAlgorithmType": "",
    "displayName": "",
    "entityStatus": "",
    "modelDetails": [
        {
            "advertiserId": "",
            "readinessState": "",
            "suspensionState": ""
        }
    ],
    "name": "",
    "partnerId": "",
    "sharedAdvertiserIds": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/customBiddingAlgorithms"

payload <- "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\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}}/v2/customBiddingAlgorithms")

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  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\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/v2/customBiddingAlgorithms') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/customBiddingAlgorithms";

    let payload = json!({
        "advertiserId": "",
        "customBiddingAlgorithmId": "",
        "customBiddingAlgorithmType": "",
        "displayName": "",
        "entityStatus": "",
        "modelDetails": (
            json!({
                "advertiserId": "",
                "readinessState": "",
                "suspensionState": ""
            })
        ),
        "name": "",
        "partnerId": "",
        "sharedAdvertiserIds": ()
    });

    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}}/v2/customBiddingAlgorithms \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}'
echo '{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}' |  \
  http POST {{baseUrl}}/v2/customBiddingAlgorithms \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "customBiddingAlgorithmId": "",\n  "customBiddingAlgorithmType": "",\n  "displayName": "",\n  "entityStatus": "",\n  "modelDetails": [\n    {\n      "advertiserId": "",\n      "readinessState": "",\n      "suspensionState": ""\n    }\n  ],\n  "name": "",\n  "partnerId": "",\n  "sharedAdvertiserIds": []\n}' \
  --output-document \
  - {{baseUrl}}/v2/customBiddingAlgorithms
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    [
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    ]
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/customBiddingAlgorithms")! 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 displayvideo.customBiddingAlgorithms.get
{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId
QUERY PARAMS

customBiddingAlgorithmId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")
require "http/client"

url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"

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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"

	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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"))
    .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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")
  .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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId';
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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/customBiddingAlgorithms/:customBiddingAlgorithmId',
  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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId');

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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId';
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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"]
                                                       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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId",
  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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")

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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId";

    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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId
http GET {{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")! 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 displayvideo.customBiddingAlgorithms.list
{{baseUrl}}/v2/customBiddingAlgorithms
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/customBiddingAlgorithms");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/customBiddingAlgorithms")
require "http/client"

url = "{{baseUrl}}/v2/customBiddingAlgorithms"

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}}/v2/customBiddingAlgorithms"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/customBiddingAlgorithms");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/customBiddingAlgorithms"

	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/v2/customBiddingAlgorithms HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/customBiddingAlgorithms")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/customBiddingAlgorithms"))
    .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}}/v2/customBiddingAlgorithms")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/customBiddingAlgorithms")
  .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}}/v2/customBiddingAlgorithms');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/customBiddingAlgorithms'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/customBiddingAlgorithms';
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}}/v2/customBiddingAlgorithms',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/customBiddingAlgorithms")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/customBiddingAlgorithms',
  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}}/v2/customBiddingAlgorithms'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/customBiddingAlgorithms');

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}}/v2/customBiddingAlgorithms'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/customBiddingAlgorithms';
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}}/v2/customBiddingAlgorithms"]
                                                       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}}/v2/customBiddingAlgorithms" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/customBiddingAlgorithms",
  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}}/v2/customBiddingAlgorithms');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/customBiddingAlgorithms');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/customBiddingAlgorithms');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/customBiddingAlgorithms' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/customBiddingAlgorithms' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/customBiddingAlgorithms")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/customBiddingAlgorithms"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/customBiddingAlgorithms"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/customBiddingAlgorithms")

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/v2/customBiddingAlgorithms') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/customBiddingAlgorithms";

    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}}/v2/customBiddingAlgorithms
http GET {{baseUrl}}/v2/customBiddingAlgorithms
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/customBiddingAlgorithms
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/customBiddingAlgorithms")! 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 displayvideo.customBiddingAlgorithms.patch
{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId
QUERY PARAMS

customBiddingAlgorithmId
BODY json

{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId");

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  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId" {:content-type :json
                                                                                                  :form-params {:advertiserId ""
                                                                                                                :customBiddingAlgorithmId ""
                                                                                                                :customBiddingAlgorithmType ""
                                                                                                                :displayName ""
                                                                                                                :entityStatus ""
                                                                                                                :modelDetails [{:advertiserId ""
                                                                                                                                :readinessState ""
                                                                                                                                :suspensionState ""}]
                                                                                                                :name ""
                                                                                                                :partnerId ""
                                                                                                                :sharedAdvertiserIds []}})
require "http/client"

url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 318

{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\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  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  customBiddingAlgorithmId: '',
  customBiddingAlgorithmType: '',
  displayName: '',
  entityStatus: '',
  modelDetails: [
    {
      advertiserId: '',
      readinessState: '',
      suspensionState: ''
    }
  ],
  name: '',
  partnerId: '',
  sharedAdvertiserIds: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    customBiddingAlgorithmId: '',
    customBiddingAlgorithmType: '',
    displayName: '',
    entityStatus: '',
    modelDetails: [{advertiserId: '', readinessState: '', suspensionState: ''}],
    name: '',
    partnerId: '',
    sharedAdvertiserIds: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","customBiddingAlgorithmId":"","customBiddingAlgorithmType":"","displayName":"","entityStatus":"","modelDetails":[{"advertiserId":"","readinessState":"","suspensionState":""}],"name":"","partnerId":"","sharedAdvertiserIds":[]}'
};

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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "customBiddingAlgorithmId": "",\n  "customBiddingAlgorithmType": "",\n  "displayName": "",\n  "entityStatus": "",\n  "modelDetails": [\n    {\n      "advertiserId": "",\n      "readinessState": "",\n      "suspensionState": ""\n    }\n  ],\n  "name": "",\n  "partnerId": "",\n  "sharedAdvertiserIds": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")
  .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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId',
  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({
  advertiserId: '',
  customBiddingAlgorithmId: '',
  customBiddingAlgorithmType: '',
  displayName: '',
  entityStatus: '',
  modelDetails: [{advertiserId: '', readinessState: '', suspensionState: ''}],
  name: '',
  partnerId: '',
  sharedAdvertiserIds: []
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    customBiddingAlgorithmId: '',
    customBiddingAlgorithmType: '',
    displayName: '',
    entityStatus: '',
    modelDetails: [{advertiserId: '', readinessState: '', suspensionState: ''}],
    name: '',
    partnerId: '',
    sharedAdvertiserIds: []
  },
  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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  customBiddingAlgorithmId: '',
  customBiddingAlgorithmType: '',
  displayName: '',
  entityStatus: '',
  modelDetails: [
    {
      advertiserId: '',
      readinessState: '',
      suspensionState: ''
    }
  ],
  name: '',
  partnerId: '',
  sharedAdvertiserIds: []
});

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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    customBiddingAlgorithmId: '',
    customBiddingAlgorithmType: '',
    displayName: '',
    entityStatus: '',
    modelDetails: [{advertiserId: '', readinessState: '', suspensionState: ''}],
    name: '',
    partnerId: '',
    sharedAdvertiserIds: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","customBiddingAlgorithmId":"","customBiddingAlgorithmType":"","displayName":"","entityStatus":"","modelDetails":[{"advertiserId":"","readinessState":"","suspensionState":""}],"name":"","partnerId":"","sharedAdvertiserIds":[]}'
};

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 = @{ @"advertiserId": @"",
                              @"customBiddingAlgorithmId": @"",
                              @"customBiddingAlgorithmType": @"",
                              @"displayName": @"",
                              @"entityStatus": @"",
                              @"modelDetails": @[ @{ @"advertiserId": @"", @"readinessState": @"", @"suspensionState": @"" } ],
                              @"name": @"",
                              @"partnerId": @"",
                              @"sharedAdvertiserIds": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"]
                                                       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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId",
  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([
    'advertiserId' => '',
    'customBiddingAlgorithmId' => '',
    'customBiddingAlgorithmType' => '',
    'displayName' => '',
    'entityStatus' => '',
    'modelDetails' => [
        [
                'advertiserId' => '',
                'readinessState' => '',
                'suspensionState' => ''
        ]
    ],
    'name' => '',
    'partnerId' => '',
    'sharedAdvertiserIds' => [
        
    ]
  ]),
  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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId', [
  'body' => '{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'customBiddingAlgorithmId' => '',
  'customBiddingAlgorithmType' => '',
  'displayName' => '',
  'entityStatus' => '',
  'modelDetails' => [
    [
        'advertiserId' => '',
        'readinessState' => '',
        'suspensionState' => ''
    ]
  ],
  'name' => '',
  'partnerId' => '',
  'sharedAdvertiserIds' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'customBiddingAlgorithmId' => '',
  'customBiddingAlgorithmType' => '',
  'displayName' => '',
  'entityStatus' => '',
  'modelDetails' => [
    [
        'advertiserId' => '',
        'readinessState' => '',
        'suspensionState' => ''
    ]
  ],
  'name' => '',
  'partnerId' => '',
  'sharedAdvertiserIds' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId');
$request->setRequestMethod('PATCH');
$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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/v2/customBiddingAlgorithms/:customBiddingAlgorithmId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"

payload = {
    "advertiserId": "",
    "customBiddingAlgorithmId": "",
    "customBiddingAlgorithmType": "",
    "displayName": "",
    "entityStatus": "",
    "modelDetails": [
        {
            "advertiserId": "",
            "readinessState": "",
            "suspensionState": ""
        }
    ],
    "name": "",
    "partnerId": "",
    "sharedAdvertiserIds": []
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId"

payload <- "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")

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  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingAlgorithmType\": \"\",\n  \"displayName\": \"\",\n  \"entityStatus\": \"\",\n  \"modelDetails\": [\n    {\n      \"advertiserId\": \"\",\n      \"readinessState\": \"\",\n      \"suspensionState\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"partnerId\": \"\",\n  \"sharedAdvertiserIds\": []\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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId";

    let payload = json!({
        "advertiserId": "",
        "customBiddingAlgorithmId": "",
        "customBiddingAlgorithmType": "",
        "displayName": "",
        "entityStatus": "",
        "modelDetails": (
            json!({
                "advertiserId": "",
                "readinessState": "",
                "suspensionState": ""
            })
        ),
        "name": "",
        "partnerId": "",
        "sharedAdvertiserIds": ()
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}'
echo '{
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    {
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    }
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
}' |  \
  http PATCH {{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "customBiddingAlgorithmId": "",\n  "customBiddingAlgorithmType": "",\n  "displayName": "",\n  "entityStatus": "",\n  "modelDetails": [\n    {\n      "advertiserId": "",\n      "readinessState": "",\n      "suspensionState": ""\n    }\n  ],\n  "name": "",\n  "partnerId": "",\n  "sharedAdvertiserIds": []\n}' \
  --output-document \
  - {{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "customBiddingAlgorithmId": "",
  "customBiddingAlgorithmType": "",
  "displayName": "",
  "entityStatus": "",
  "modelDetails": [
    [
      "advertiserId": "",
      "readinessState": "",
      "suspensionState": ""
    ]
  ],
  "name": "",
  "partnerId": "",
  "sharedAdvertiserIds": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId")! 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()
POST displayvideo.customBiddingAlgorithms.scripts.create
{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts
QUERY PARAMS

customBiddingAlgorithmId
BODY json

{
  "active": false,
  "createTime": "",
  "customBiddingAlgorithmId": "",
  "customBiddingScriptId": "",
  "errors": [
    {
      "column": "",
      "errorCode": "",
      "errorMessage": "",
      "line": ""
    }
  ],
  "name": "",
  "script": {
    "resourceName": ""
  },
  "state": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts");

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  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts" {:content-type :json
                                                                                                         :form-params {:active false
                                                                                                                       :createTime ""
                                                                                                                       :customBiddingAlgorithmId ""
                                                                                                                       :customBiddingScriptId ""
                                                                                                                       :errors [{:column ""
                                                                                                                                 :errorCode ""
                                                                                                                                 :errorMessage ""
                                                                                                                                 :line ""}]
                                                                                                                       :name ""
                                                                                                                       :script {:resourceName ""}
                                                                                                                       :state ""}})
require "http/client"

url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"),
    Content = new StringContent("{\n  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"

	payload := strings.NewReader("{\n  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 294

{
  "active": false,
  "createTime": "",
  "customBiddingAlgorithmId": "",
  "customBiddingScriptId": "",
  "errors": [
    {
      "column": "",
      "errorCode": "",
      "errorMessage": "",
      "line": ""
    }
  ],
  "name": "",
  "script": {
    "resourceName": ""
  },
  "state": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\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  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")
  .header("content-type", "application/json")
  .body("{\n  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  active: false,
  createTime: '',
  customBiddingAlgorithmId: '',
  customBiddingScriptId: '',
  errors: [
    {
      column: '',
      errorCode: '',
      errorMessage: '',
      line: ''
    }
  ],
  name: '',
  script: {
    resourceName: ''
  },
  state: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts',
  headers: {'content-type': 'application/json'},
  data: {
    active: false,
    createTime: '',
    customBiddingAlgorithmId: '',
    customBiddingScriptId: '',
    errors: [{column: '', errorCode: '', errorMessage: '', line: ''}],
    name: '',
    script: {resourceName: ''},
    state: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"active":false,"createTime":"","customBiddingAlgorithmId":"","customBiddingScriptId":"","errors":[{"column":"","errorCode":"","errorMessage":"","line":""}],"name":"","script":{"resourceName":""},"state":""}'
};

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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "active": false,\n  "createTime": "",\n  "customBiddingAlgorithmId": "",\n  "customBiddingScriptId": "",\n  "errors": [\n    {\n      "column": "",\n      "errorCode": "",\n      "errorMessage": "",\n      "line": ""\n    }\n  ],\n  "name": "",\n  "script": {\n    "resourceName": ""\n  },\n  "state": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")
  .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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts',
  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({
  active: false,
  createTime: '',
  customBiddingAlgorithmId: '',
  customBiddingScriptId: '',
  errors: [{column: '', errorCode: '', errorMessage: '', line: ''}],
  name: '',
  script: {resourceName: ''},
  state: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts',
  headers: {'content-type': 'application/json'},
  body: {
    active: false,
    createTime: '',
    customBiddingAlgorithmId: '',
    customBiddingScriptId: '',
    errors: [{column: '', errorCode: '', errorMessage: '', line: ''}],
    name: '',
    script: {resourceName: ''},
    state: ''
  },
  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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  active: false,
  createTime: '',
  customBiddingAlgorithmId: '',
  customBiddingScriptId: '',
  errors: [
    {
      column: '',
      errorCode: '',
      errorMessage: '',
      line: ''
    }
  ],
  name: '',
  script: {
    resourceName: ''
  },
  state: ''
});

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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts',
  headers: {'content-type': 'application/json'},
  data: {
    active: false,
    createTime: '',
    customBiddingAlgorithmId: '',
    customBiddingScriptId: '',
    errors: [{column: '', errorCode: '', errorMessage: '', line: ''}],
    name: '',
    script: {resourceName: ''},
    state: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"active":false,"createTime":"","customBiddingAlgorithmId":"","customBiddingScriptId":"","errors":[{"column":"","errorCode":"","errorMessage":"","line":""}],"name":"","script":{"resourceName":""},"state":""}'
};

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 = @{ @"active": @NO,
                              @"createTime": @"",
                              @"customBiddingAlgorithmId": @"",
                              @"customBiddingScriptId": @"",
                              @"errors": @[ @{ @"column": @"", @"errorCode": @"", @"errorMessage": @"", @"line": @"" } ],
                              @"name": @"",
                              @"script": @{ @"resourceName": @"" },
                              @"state": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"]
                                                       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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts",
  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([
    'active' => null,
    'createTime' => '',
    'customBiddingAlgorithmId' => '',
    'customBiddingScriptId' => '',
    'errors' => [
        [
                'column' => '',
                'errorCode' => '',
                'errorMessage' => '',
                'line' => ''
        ]
    ],
    'name' => '',
    'script' => [
        'resourceName' => ''
    ],
    'state' => ''
  ]),
  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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts', [
  'body' => '{
  "active": false,
  "createTime": "",
  "customBiddingAlgorithmId": "",
  "customBiddingScriptId": "",
  "errors": [
    {
      "column": "",
      "errorCode": "",
      "errorMessage": "",
      "line": ""
    }
  ],
  "name": "",
  "script": {
    "resourceName": ""
  },
  "state": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'active' => null,
  'createTime' => '',
  'customBiddingAlgorithmId' => '',
  'customBiddingScriptId' => '',
  'errors' => [
    [
        'column' => '',
        'errorCode' => '',
        'errorMessage' => '',
        'line' => ''
    ]
  ],
  'name' => '',
  'script' => [
    'resourceName' => ''
  ],
  'state' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'active' => null,
  'createTime' => '',
  'customBiddingAlgorithmId' => '',
  'customBiddingScriptId' => '',
  'errors' => [
    [
        'column' => '',
        'errorCode' => '',
        'errorMessage' => '',
        'line' => ''
    ]
  ],
  'name' => '',
  'script' => [
    'resourceName' => ''
  ],
  'state' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts');
$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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "active": false,
  "createTime": "",
  "customBiddingAlgorithmId": "",
  "customBiddingScriptId": "",
  "errors": [
    {
      "column": "",
      "errorCode": "",
      "errorMessage": "",
      "line": ""
    }
  ],
  "name": "",
  "script": {
    "resourceName": ""
  },
  "state": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "active": false,
  "createTime": "",
  "customBiddingAlgorithmId": "",
  "customBiddingScriptId": "",
  "errors": [
    {
      "column": "",
      "errorCode": "",
      "errorMessage": "",
      "line": ""
    }
  ],
  "name": "",
  "script": {
    "resourceName": ""
  },
  "state": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"

payload = {
    "active": False,
    "createTime": "",
    "customBiddingAlgorithmId": "",
    "customBiddingScriptId": "",
    "errors": [
        {
            "column": "",
            "errorCode": "",
            "errorMessage": "",
            "line": ""
        }
    ],
    "name": "",
    "script": { "resourceName": "" },
    "state": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"

payload <- "{\n  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")

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  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts') do |req|
  req.body = "{\n  \"active\": false,\n  \"createTime\": \"\",\n  \"customBiddingAlgorithmId\": \"\",\n  \"customBiddingScriptId\": \"\",\n  \"errors\": [\n    {\n      \"column\": \"\",\n      \"errorCode\": \"\",\n      \"errorMessage\": \"\",\n      \"line\": \"\"\n    }\n  ],\n  \"name\": \"\",\n  \"script\": {\n    \"resourceName\": \"\"\n  },\n  \"state\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts";

    let payload = json!({
        "active": false,
        "createTime": "",
        "customBiddingAlgorithmId": "",
        "customBiddingScriptId": "",
        "errors": (
            json!({
                "column": "",
                "errorCode": "",
                "errorMessage": "",
                "line": ""
            })
        ),
        "name": "",
        "script": json!({"resourceName": ""}),
        "state": ""
    });

    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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts \
  --header 'content-type: application/json' \
  --data '{
  "active": false,
  "createTime": "",
  "customBiddingAlgorithmId": "",
  "customBiddingScriptId": "",
  "errors": [
    {
      "column": "",
      "errorCode": "",
      "errorMessage": "",
      "line": ""
    }
  ],
  "name": "",
  "script": {
    "resourceName": ""
  },
  "state": ""
}'
echo '{
  "active": false,
  "createTime": "",
  "customBiddingAlgorithmId": "",
  "customBiddingScriptId": "",
  "errors": [
    {
      "column": "",
      "errorCode": "",
      "errorMessage": "",
      "line": ""
    }
  ],
  "name": "",
  "script": {
    "resourceName": ""
  },
  "state": ""
}' |  \
  http POST {{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "active": false,\n  "createTime": "",\n  "customBiddingAlgorithmId": "",\n  "customBiddingScriptId": "",\n  "errors": [\n    {\n      "column": "",\n      "errorCode": "",\n      "errorMessage": "",\n      "line": ""\n    }\n  ],\n  "name": "",\n  "script": {\n    "resourceName": ""\n  },\n  "state": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "active": false,
  "createTime": "",
  "customBiddingAlgorithmId": "",
  "customBiddingScriptId": "",
  "errors": [
    [
      "column": "",
      "errorCode": "",
      "errorMessage": "",
      "line": ""
    ]
  ],
  "name": "",
  "script": ["resourceName": ""],
  "state": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")! 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 displayvideo.customBiddingAlgorithms.scripts.get
{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId
QUERY PARAMS

customBiddingAlgorithmId
customBiddingScriptId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId")
require "http/client"

url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId"

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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId"

	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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId"))
    .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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId")
  .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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId';
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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId',
  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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId');

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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId';
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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId"]
                                                       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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId",
  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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId")

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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId";

    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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId
http GET {{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts/:customBiddingScriptId")! 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 displayvideo.customBiddingAlgorithms.scripts.list
{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts
QUERY PARAMS

customBiddingAlgorithmId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")
require "http/client"

url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"

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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"

	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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"))
    .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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")
  .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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts';
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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts',
  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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts');

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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts';
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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"]
                                                       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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts",
  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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")

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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts";

    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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts
http GET {{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId/scripts")! 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 displayvideo.customBiddingAlgorithms.uploadScript
{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript
QUERY PARAMS

customBiddingAlgorithmId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript")
require "http/client"

url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript"

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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript"

	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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript"))
    .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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript")
  .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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript';
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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript',
  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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript');

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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript';
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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript"]
                                                       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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript",
  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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript")

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/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript";

    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}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript
http GET {{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/customBiddingAlgorithms/:customBiddingAlgorithmId:uploadScript")! 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 displayvideo.customLists.get
{{baseUrl}}/v2/customLists/:customListId
QUERY PARAMS

customListId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/customLists/:customListId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/customLists/:customListId")
require "http/client"

url = "{{baseUrl}}/v2/customLists/:customListId"

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}}/v2/customLists/:customListId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/customLists/:customListId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/customLists/:customListId"

	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/v2/customLists/:customListId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/customLists/:customListId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/customLists/:customListId"))
    .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}}/v2/customLists/:customListId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/customLists/:customListId")
  .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}}/v2/customLists/:customListId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/customLists/:customListId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/customLists/:customListId';
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}}/v2/customLists/:customListId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/customLists/:customListId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/customLists/:customListId',
  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}}/v2/customLists/:customListId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/customLists/:customListId');

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}}/v2/customLists/:customListId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/customLists/:customListId';
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}}/v2/customLists/:customListId"]
                                                       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}}/v2/customLists/:customListId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/customLists/:customListId",
  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}}/v2/customLists/:customListId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/customLists/:customListId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/customLists/:customListId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/customLists/:customListId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/customLists/:customListId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/customLists/:customListId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/customLists/:customListId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/customLists/:customListId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/customLists/:customListId")

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/v2/customLists/:customListId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/customLists/:customListId";

    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}}/v2/customLists/:customListId
http GET {{baseUrl}}/v2/customLists/:customListId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/customLists/:customListId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/customLists/:customListId")! 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 displayvideo.customLists.list
{{baseUrl}}/v2/customLists
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/customLists");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/customLists")
require "http/client"

url = "{{baseUrl}}/v2/customLists"

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}}/v2/customLists"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/customLists");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/customLists"

	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/v2/customLists HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/customLists")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/customLists"))
    .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}}/v2/customLists")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/customLists")
  .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}}/v2/customLists');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/customLists'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/customLists';
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}}/v2/customLists',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/customLists")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/customLists',
  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}}/v2/customLists'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/customLists');

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}}/v2/customLists'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/customLists';
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}}/v2/customLists"]
                                                       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}}/v2/customLists" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/customLists",
  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}}/v2/customLists');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/customLists');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/customLists');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/customLists' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/customLists' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/customLists")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/customLists"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/customLists"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/customLists")

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/v2/customLists') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/customLists";

    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}}/v2/customLists
http GET {{baseUrl}}/v2/customLists
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/customLists
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/customLists")! 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 displayvideo.firstAndThirdPartyAudiences.create
{{baseUrl}}/v2/firstAndThirdPartyAudiences
BODY json

{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/firstAndThirdPartyAudiences");

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  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/firstAndThirdPartyAudiences" {:content-type :json
                                                                           :form-params {:activeDisplayAudienceSize ""
                                                                                         :appId ""
                                                                                         :audienceSource ""
                                                                                         :audienceType ""
                                                                                         :contactInfoList {:contactInfos [{:countryCode ""
                                                                                                                           :hashedEmails []
                                                                                                                           :hashedFirstName ""
                                                                                                                           :hashedLastName ""
                                                                                                                           :hashedPhoneNumbers []
                                                                                                                           :zipCodes []}]}
                                                                                         :description ""
                                                                                         :displayAudienceSize ""
                                                                                         :displayDesktopAudienceSize ""
                                                                                         :displayMobileAppAudienceSize ""
                                                                                         :displayMobileWebAudienceSize ""
                                                                                         :displayName ""
                                                                                         :firstAndThirdPartyAudienceId ""
                                                                                         :firstAndThirdPartyAudienceType ""
                                                                                         :gmailAudienceSize ""
                                                                                         :membershipDurationDays ""
                                                                                         :mobileDeviceIdList {:mobileDeviceIds []}
                                                                                         :name ""
                                                                                         :youtubeAudienceSize ""}})
require "http/client"

url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\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}}/v2/firstAndThirdPartyAudiences"),
    Content = new StringContent("{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\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}}/v2/firstAndThirdPartyAudiences");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/firstAndThirdPartyAudiences"

	payload := strings.NewReader("{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\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/v2/firstAndThirdPartyAudiences HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 763

{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/firstAndThirdPartyAudiences")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/firstAndThirdPartyAudiences"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\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  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/firstAndThirdPartyAudiences")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/firstAndThirdPartyAudiences")
  .header("content-type", "application/json")
  .body("{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  activeDisplayAudienceSize: '',
  appId: '',
  audienceSource: '',
  audienceType: '',
  contactInfoList: {
    contactInfos: [
      {
        countryCode: '',
        hashedEmails: [],
        hashedFirstName: '',
        hashedLastName: '',
        hashedPhoneNumbers: [],
        zipCodes: []
      }
    ]
  },
  description: '',
  displayAudienceSize: '',
  displayDesktopAudienceSize: '',
  displayMobileAppAudienceSize: '',
  displayMobileWebAudienceSize: '',
  displayName: '',
  firstAndThirdPartyAudienceId: '',
  firstAndThirdPartyAudienceType: '',
  gmailAudienceSize: '',
  membershipDurationDays: '',
  mobileDeviceIdList: {
    mobileDeviceIds: []
  },
  name: '',
  youtubeAudienceSize: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/firstAndThirdPartyAudiences');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/firstAndThirdPartyAudiences',
  headers: {'content-type': 'application/json'},
  data: {
    activeDisplayAudienceSize: '',
    appId: '',
    audienceSource: '',
    audienceType: '',
    contactInfoList: {
      contactInfos: [
        {
          countryCode: '',
          hashedEmails: [],
          hashedFirstName: '',
          hashedLastName: '',
          hashedPhoneNumbers: [],
          zipCodes: []
        }
      ]
    },
    description: '',
    displayAudienceSize: '',
    displayDesktopAudienceSize: '',
    displayMobileAppAudienceSize: '',
    displayMobileWebAudienceSize: '',
    displayName: '',
    firstAndThirdPartyAudienceId: '',
    firstAndThirdPartyAudienceType: '',
    gmailAudienceSize: '',
    membershipDurationDays: '',
    mobileDeviceIdList: {mobileDeviceIds: []},
    name: '',
    youtubeAudienceSize: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/firstAndThirdPartyAudiences';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"activeDisplayAudienceSize":"","appId":"","audienceSource":"","audienceType":"","contactInfoList":{"contactInfos":[{"countryCode":"","hashedEmails":[],"hashedFirstName":"","hashedLastName":"","hashedPhoneNumbers":[],"zipCodes":[]}]},"description":"","displayAudienceSize":"","displayDesktopAudienceSize":"","displayMobileAppAudienceSize":"","displayMobileWebAudienceSize":"","displayName":"","firstAndThirdPartyAudienceId":"","firstAndThirdPartyAudienceType":"","gmailAudienceSize":"","membershipDurationDays":"","mobileDeviceIdList":{"mobileDeviceIds":[]},"name":"","youtubeAudienceSize":""}'
};

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}}/v2/firstAndThirdPartyAudiences',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "activeDisplayAudienceSize": "",\n  "appId": "",\n  "audienceSource": "",\n  "audienceType": "",\n  "contactInfoList": {\n    "contactInfos": [\n      {\n        "countryCode": "",\n        "hashedEmails": [],\n        "hashedFirstName": "",\n        "hashedLastName": "",\n        "hashedPhoneNumbers": [],\n        "zipCodes": []\n      }\n    ]\n  },\n  "description": "",\n  "displayAudienceSize": "",\n  "displayDesktopAudienceSize": "",\n  "displayMobileAppAudienceSize": "",\n  "displayMobileWebAudienceSize": "",\n  "displayName": "",\n  "firstAndThirdPartyAudienceId": "",\n  "firstAndThirdPartyAudienceType": "",\n  "gmailAudienceSize": "",\n  "membershipDurationDays": "",\n  "mobileDeviceIdList": {\n    "mobileDeviceIds": []\n  },\n  "name": "",\n  "youtubeAudienceSize": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/firstAndThirdPartyAudiences")
  .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/v2/firstAndThirdPartyAudiences',
  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({
  activeDisplayAudienceSize: '',
  appId: '',
  audienceSource: '',
  audienceType: '',
  contactInfoList: {
    contactInfos: [
      {
        countryCode: '',
        hashedEmails: [],
        hashedFirstName: '',
        hashedLastName: '',
        hashedPhoneNumbers: [],
        zipCodes: []
      }
    ]
  },
  description: '',
  displayAudienceSize: '',
  displayDesktopAudienceSize: '',
  displayMobileAppAudienceSize: '',
  displayMobileWebAudienceSize: '',
  displayName: '',
  firstAndThirdPartyAudienceId: '',
  firstAndThirdPartyAudienceType: '',
  gmailAudienceSize: '',
  membershipDurationDays: '',
  mobileDeviceIdList: {mobileDeviceIds: []},
  name: '',
  youtubeAudienceSize: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/firstAndThirdPartyAudiences',
  headers: {'content-type': 'application/json'},
  body: {
    activeDisplayAudienceSize: '',
    appId: '',
    audienceSource: '',
    audienceType: '',
    contactInfoList: {
      contactInfos: [
        {
          countryCode: '',
          hashedEmails: [],
          hashedFirstName: '',
          hashedLastName: '',
          hashedPhoneNumbers: [],
          zipCodes: []
        }
      ]
    },
    description: '',
    displayAudienceSize: '',
    displayDesktopAudienceSize: '',
    displayMobileAppAudienceSize: '',
    displayMobileWebAudienceSize: '',
    displayName: '',
    firstAndThirdPartyAudienceId: '',
    firstAndThirdPartyAudienceType: '',
    gmailAudienceSize: '',
    membershipDurationDays: '',
    mobileDeviceIdList: {mobileDeviceIds: []},
    name: '',
    youtubeAudienceSize: ''
  },
  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}}/v2/firstAndThirdPartyAudiences');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  activeDisplayAudienceSize: '',
  appId: '',
  audienceSource: '',
  audienceType: '',
  contactInfoList: {
    contactInfos: [
      {
        countryCode: '',
        hashedEmails: [],
        hashedFirstName: '',
        hashedLastName: '',
        hashedPhoneNumbers: [],
        zipCodes: []
      }
    ]
  },
  description: '',
  displayAudienceSize: '',
  displayDesktopAudienceSize: '',
  displayMobileAppAudienceSize: '',
  displayMobileWebAudienceSize: '',
  displayName: '',
  firstAndThirdPartyAudienceId: '',
  firstAndThirdPartyAudienceType: '',
  gmailAudienceSize: '',
  membershipDurationDays: '',
  mobileDeviceIdList: {
    mobileDeviceIds: []
  },
  name: '',
  youtubeAudienceSize: ''
});

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}}/v2/firstAndThirdPartyAudiences',
  headers: {'content-type': 'application/json'},
  data: {
    activeDisplayAudienceSize: '',
    appId: '',
    audienceSource: '',
    audienceType: '',
    contactInfoList: {
      contactInfos: [
        {
          countryCode: '',
          hashedEmails: [],
          hashedFirstName: '',
          hashedLastName: '',
          hashedPhoneNumbers: [],
          zipCodes: []
        }
      ]
    },
    description: '',
    displayAudienceSize: '',
    displayDesktopAudienceSize: '',
    displayMobileAppAudienceSize: '',
    displayMobileWebAudienceSize: '',
    displayName: '',
    firstAndThirdPartyAudienceId: '',
    firstAndThirdPartyAudienceType: '',
    gmailAudienceSize: '',
    membershipDurationDays: '',
    mobileDeviceIdList: {mobileDeviceIds: []},
    name: '',
    youtubeAudienceSize: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/firstAndThirdPartyAudiences';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"activeDisplayAudienceSize":"","appId":"","audienceSource":"","audienceType":"","contactInfoList":{"contactInfos":[{"countryCode":"","hashedEmails":[],"hashedFirstName":"","hashedLastName":"","hashedPhoneNumbers":[],"zipCodes":[]}]},"description":"","displayAudienceSize":"","displayDesktopAudienceSize":"","displayMobileAppAudienceSize":"","displayMobileWebAudienceSize":"","displayName":"","firstAndThirdPartyAudienceId":"","firstAndThirdPartyAudienceType":"","gmailAudienceSize":"","membershipDurationDays":"","mobileDeviceIdList":{"mobileDeviceIds":[]},"name":"","youtubeAudienceSize":""}'
};

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 = @{ @"activeDisplayAudienceSize": @"",
                              @"appId": @"",
                              @"audienceSource": @"",
                              @"audienceType": @"",
                              @"contactInfoList": @{ @"contactInfos": @[ @{ @"countryCode": @"", @"hashedEmails": @[  ], @"hashedFirstName": @"", @"hashedLastName": @"", @"hashedPhoneNumbers": @[  ], @"zipCodes": @[  ] } ] },
                              @"description": @"",
                              @"displayAudienceSize": @"",
                              @"displayDesktopAudienceSize": @"",
                              @"displayMobileAppAudienceSize": @"",
                              @"displayMobileWebAudienceSize": @"",
                              @"displayName": @"",
                              @"firstAndThirdPartyAudienceId": @"",
                              @"firstAndThirdPartyAudienceType": @"",
                              @"gmailAudienceSize": @"",
                              @"membershipDurationDays": @"",
                              @"mobileDeviceIdList": @{ @"mobileDeviceIds": @[  ] },
                              @"name": @"",
                              @"youtubeAudienceSize": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/firstAndThirdPartyAudiences"]
                                                       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}}/v2/firstAndThirdPartyAudiences" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/firstAndThirdPartyAudiences",
  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([
    'activeDisplayAudienceSize' => '',
    'appId' => '',
    'audienceSource' => '',
    'audienceType' => '',
    'contactInfoList' => [
        'contactInfos' => [
                [
                                'countryCode' => '',
                                'hashedEmails' => [
                                                                
                                ],
                                'hashedFirstName' => '',
                                'hashedLastName' => '',
                                'hashedPhoneNumbers' => [
                                                                
                                ],
                                'zipCodes' => [
                                                                
                                ]
                ]
        ]
    ],
    'description' => '',
    'displayAudienceSize' => '',
    'displayDesktopAudienceSize' => '',
    'displayMobileAppAudienceSize' => '',
    'displayMobileWebAudienceSize' => '',
    'displayName' => '',
    'firstAndThirdPartyAudienceId' => '',
    'firstAndThirdPartyAudienceType' => '',
    'gmailAudienceSize' => '',
    'membershipDurationDays' => '',
    'mobileDeviceIdList' => [
        'mobileDeviceIds' => [
                
        ]
    ],
    'name' => '',
    'youtubeAudienceSize' => ''
  ]),
  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}}/v2/firstAndThirdPartyAudiences', [
  'body' => '{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/firstAndThirdPartyAudiences');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'activeDisplayAudienceSize' => '',
  'appId' => '',
  'audienceSource' => '',
  'audienceType' => '',
  'contactInfoList' => [
    'contactInfos' => [
        [
                'countryCode' => '',
                'hashedEmails' => [
                                
                ],
                'hashedFirstName' => '',
                'hashedLastName' => '',
                'hashedPhoneNumbers' => [
                                
                ],
                'zipCodes' => [
                                
                ]
        ]
    ]
  ],
  'description' => '',
  'displayAudienceSize' => '',
  'displayDesktopAudienceSize' => '',
  'displayMobileAppAudienceSize' => '',
  'displayMobileWebAudienceSize' => '',
  'displayName' => '',
  'firstAndThirdPartyAudienceId' => '',
  'firstAndThirdPartyAudienceType' => '',
  'gmailAudienceSize' => '',
  'membershipDurationDays' => '',
  'mobileDeviceIdList' => [
    'mobileDeviceIds' => [
        
    ]
  ],
  'name' => '',
  'youtubeAudienceSize' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'activeDisplayAudienceSize' => '',
  'appId' => '',
  'audienceSource' => '',
  'audienceType' => '',
  'contactInfoList' => [
    'contactInfos' => [
        [
                'countryCode' => '',
                'hashedEmails' => [
                                
                ],
                'hashedFirstName' => '',
                'hashedLastName' => '',
                'hashedPhoneNumbers' => [
                                
                ],
                'zipCodes' => [
                                
                ]
        ]
    ]
  ],
  'description' => '',
  'displayAudienceSize' => '',
  'displayDesktopAudienceSize' => '',
  'displayMobileAppAudienceSize' => '',
  'displayMobileWebAudienceSize' => '',
  'displayName' => '',
  'firstAndThirdPartyAudienceId' => '',
  'firstAndThirdPartyAudienceType' => '',
  'gmailAudienceSize' => '',
  'membershipDurationDays' => '',
  'mobileDeviceIdList' => [
    'mobileDeviceIds' => [
        
    ]
  ],
  'name' => '',
  'youtubeAudienceSize' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/firstAndThirdPartyAudiences');
$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}}/v2/firstAndThirdPartyAudiences' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/firstAndThirdPartyAudiences' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/firstAndThirdPartyAudiences", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences"

payload = {
    "activeDisplayAudienceSize": "",
    "appId": "",
    "audienceSource": "",
    "audienceType": "",
    "contactInfoList": { "contactInfos": [
            {
                "countryCode": "",
                "hashedEmails": [],
                "hashedFirstName": "",
                "hashedLastName": "",
                "hashedPhoneNumbers": [],
                "zipCodes": []
            }
        ] },
    "description": "",
    "displayAudienceSize": "",
    "displayDesktopAudienceSize": "",
    "displayMobileAppAudienceSize": "",
    "displayMobileWebAudienceSize": "",
    "displayName": "",
    "firstAndThirdPartyAudienceId": "",
    "firstAndThirdPartyAudienceType": "",
    "gmailAudienceSize": "",
    "membershipDurationDays": "",
    "mobileDeviceIdList": { "mobileDeviceIds": [] },
    "name": "",
    "youtubeAudienceSize": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/firstAndThirdPartyAudiences"

payload <- "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\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}}/v2/firstAndThirdPartyAudiences")

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  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\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/v2/firstAndThirdPartyAudiences') do |req|
  req.body = "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences";

    let payload = json!({
        "activeDisplayAudienceSize": "",
        "appId": "",
        "audienceSource": "",
        "audienceType": "",
        "contactInfoList": json!({"contactInfos": (
                json!({
                    "countryCode": "",
                    "hashedEmails": (),
                    "hashedFirstName": "",
                    "hashedLastName": "",
                    "hashedPhoneNumbers": (),
                    "zipCodes": ()
                })
            )}),
        "description": "",
        "displayAudienceSize": "",
        "displayDesktopAudienceSize": "",
        "displayMobileAppAudienceSize": "",
        "displayMobileWebAudienceSize": "",
        "displayName": "",
        "firstAndThirdPartyAudienceId": "",
        "firstAndThirdPartyAudienceType": "",
        "gmailAudienceSize": "",
        "membershipDurationDays": "",
        "mobileDeviceIdList": json!({"mobileDeviceIds": ()}),
        "name": "",
        "youtubeAudienceSize": ""
    });

    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}}/v2/firstAndThirdPartyAudiences \
  --header 'content-type: application/json' \
  --data '{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}'
echo '{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}' |  \
  http POST {{baseUrl}}/v2/firstAndThirdPartyAudiences \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "activeDisplayAudienceSize": "",\n  "appId": "",\n  "audienceSource": "",\n  "audienceType": "",\n  "contactInfoList": {\n    "contactInfos": [\n      {\n        "countryCode": "",\n        "hashedEmails": [],\n        "hashedFirstName": "",\n        "hashedLastName": "",\n        "hashedPhoneNumbers": [],\n        "zipCodes": []\n      }\n    ]\n  },\n  "description": "",\n  "displayAudienceSize": "",\n  "displayDesktopAudienceSize": "",\n  "displayMobileAppAudienceSize": "",\n  "displayMobileWebAudienceSize": "",\n  "displayName": "",\n  "firstAndThirdPartyAudienceId": "",\n  "firstAndThirdPartyAudienceType": "",\n  "gmailAudienceSize": "",\n  "membershipDurationDays": "",\n  "mobileDeviceIdList": {\n    "mobileDeviceIds": []\n  },\n  "name": "",\n  "youtubeAudienceSize": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/firstAndThirdPartyAudiences
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": ["contactInfos": [
      [
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      ]
    ]],
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": ["mobileDeviceIds": []],
  "name": "",
  "youtubeAudienceSize": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/firstAndThirdPartyAudiences")! 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()
POST displayvideo.firstAndThirdPartyAudiences.editCustomerMatchMembers
{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers
QUERY PARAMS

firstAndThirdPartyAudienceId
BODY json

{
  "addedContactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "addedMobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "advertiserId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers");

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  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers" {:content-type :json
                                                                                                                                  :form-params {:addedContactInfoList {:contactInfos [{:countryCode ""
                                                                                                                                                                                       :hashedEmails []
                                                                                                                                                                                       :hashedFirstName ""
                                                                                                                                                                                       :hashedLastName ""
                                                                                                                                                                                       :hashedPhoneNumbers []
                                                                                                                                                                                       :zipCodes []}]}
                                                                                                                                                :addedMobileDeviceIdList {:mobileDeviceIds []}
                                                                                                                                                :advertiserId ""}})
require "http/client"

url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers"),
    Content = new StringContent("{\n  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers"

	payload := strings.NewReader("{\n  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\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/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 336

{
  "addedContactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "addedMobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "advertiserId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\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  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers")
  .header("content-type", "application/json")
  .body("{\n  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  addedContactInfoList: {
    contactInfos: [
      {
        countryCode: '',
        hashedEmails: [],
        hashedFirstName: '',
        hashedLastName: '',
        hashedPhoneNumbers: [],
        zipCodes: []
      }
    ]
  },
  addedMobileDeviceIdList: {
    mobileDeviceIds: []
  },
  advertiserId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers',
  headers: {'content-type': 'application/json'},
  data: {
    addedContactInfoList: {
      contactInfos: [
        {
          countryCode: '',
          hashedEmails: [],
          hashedFirstName: '',
          hashedLastName: '',
          hashedPhoneNumbers: [],
          zipCodes: []
        }
      ]
    },
    addedMobileDeviceIdList: {mobileDeviceIds: []},
    advertiserId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"addedContactInfoList":{"contactInfos":[{"countryCode":"","hashedEmails":[],"hashedFirstName":"","hashedLastName":"","hashedPhoneNumbers":[],"zipCodes":[]}]},"addedMobileDeviceIdList":{"mobileDeviceIds":[]},"advertiserId":""}'
};

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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "addedContactInfoList": {\n    "contactInfos": [\n      {\n        "countryCode": "",\n        "hashedEmails": [],\n        "hashedFirstName": "",\n        "hashedLastName": "",\n        "hashedPhoneNumbers": [],\n        "zipCodes": []\n      }\n    ]\n  },\n  "addedMobileDeviceIdList": {\n    "mobileDeviceIds": []\n  },\n  "advertiserId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers")
  .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/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers',
  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({
  addedContactInfoList: {
    contactInfos: [
      {
        countryCode: '',
        hashedEmails: [],
        hashedFirstName: '',
        hashedLastName: '',
        hashedPhoneNumbers: [],
        zipCodes: []
      }
    ]
  },
  addedMobileDeviceIdList: {mobileDeviceIds: []},
  advertiserId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers',
  headers: {'content-type': 'application/json'},
  body: {
    addedContactInfoList: {
      contactInfos: [
        {
          countryCode: '',
          hashedEmails: [],
          hashedFirstName: '',
          hashedLastName: '',
          hashedPhoneNumbers: [],
          zipCodes: []
        }
      ]
    },
    addedMobileDeviceIdList: {mobileDeviceIds: []},
    advertiserId: ''
  },
  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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  addedContactInfoList: {
    contactInfos: [
      {
        countryCode: '',
        hashedEmails: [],
        hashedFirstName: '',
        hashedLastName: '',
        hashedPhoneNumbers: [],
        zipCodes: []
      }
    ]
  },
  addedMobileDeviceIdList: {
    mobileDeviceIds: []
  },
  advertiserId: ''
});

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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers',
  headers: {'content-type': 'application/json'},
  data: {
    addedContactInfoList: {
      contactInfos: [
        {
          countryCode: '',
          hashedEmails: [],
          hashedFirstName: '',
          hashedLastName: '',
          hashedPhoneNumbers: [],
          zipCodes: []
        }
      ]
    },
    addedMobileDeviceIdList: {mobileDeviceIds: []},
    advertiserId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"addedContactInfoList":{"contactInfos":[{"countryCode":"","hashedEmails":[],"hashedFirstName":"","hashedLastName":"","hashedPhoneNumbers":[],"zipCodes":[]}]},"addedMobileDeviceIdList":{"mobileDeviceIds":[]},"advertiserId":""}'
};

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 = @{ @"addedContactInfoList": @{ @"contactInfos": @[ @{ @"countryCode": @"", @"hashedEmails": @[  ], @"hashedFirstName": @"", @"hashedLastName": @"", @"hashedPhoneNumbers": @[  ], @"zipCodes": @[  ] } ] },
                              @"addedMobileDeviceIdList": @{ @"mobileDeviceIds": @[  ] },
                              @"advertiserId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers"]
                                                       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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers",
  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([
    'addedContactInfoList' => [
        'contactInfos' => [
                [
                                'countryCode' => '',
                                'hashedEmails' => [
                                                                
                                ],
                                'hashedFirstName' => '',
                                'hashedLastName' => '',
                                'hashedPhoneNumbers' => [
                                                                
                                ],
                                'zipCodes' => [
                                                                
                                ]
                ]
        ]
    ],
    'addedMobileDeviceIdList' => [
        'mobileDeviceIds' => [
                
        ]
    ],
    'advertiserId' => ''
  ]),
  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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers', [
  'body' => '{
  "addedContactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "addedMobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "advertiserId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'addedContactInfoList' => [
    'contactInfos' => [
        [
                'countryCode' => '',
                'hashedEmails' => [
                                
                ],
                'hashedFirstName' => '',
                'hashedLastName' => '',
                'hashedPhoneNumbers' => [
                                
                ],
                'zipCodes' => [
                                
                ]
        ]
    ]
  ],
  'addedMobileDeviceIdList' => [
    'mobileDeviceIds' => [
        
    ]
  ],
  'advertiserId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'addedContactInfoList' => [
    'contactInfos' => [
        [
                'countryCode' => '',
                'hashedEmails' => [
                                
                ],
                'hashedFirstName' => '',
                'hashedLastName' => '',
                'hashedPhoneNumbers' => [
                                
                ],
                'zipCodes' => [
                                
                ]
        ]
    ]
  ],
  'addedMobileDeviceIdList' => [
    'mobileDeviceIds' => [
        
    ]
  ],
  'advertiserId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers');
$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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "addedContactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "addedMobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "advertiserId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "addedContactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "addedMobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "advertiserId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers"

payload = {
    "addedContactInfoList": { "contactInfos": [
            {
                "countryCode": "",
                "hashedEmails": [],
                "hashedFirstName": "",
                "hashedLastName": "",
                "hashedPhoneNumbers": [],
                "zipCodes": []
            }
        ] },
    "addedMobileDeviceIdList": { "mobileDeviceIds": [] },
    "advertiserId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers"

payload <- "{\n  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers")

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  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\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/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers') do |req|
  req.body = "{\n  \"addedContactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"addedMobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"advertiserId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers";

    let payload = json!({
        "addedContactInfoList": json!({"contactInfos": (
                json!({
                    "countryCode": "",
                    "hashedEmails": (),
                    "hashedFirstName": "",
                    "hashedLastName": "",
                    "hashedPhoneNumbers": (),
                    "zipCodes": ()
                })
            )}),
        "addedMobileDeviceIdList": json!({"mobileDeviceIds": ()}),
        "advertiserId": ""
    });

    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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers \
  --header 'content-type: application/json' \
  --data '{
  "addedContactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "addedMobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "advertiserId": ""
}'
echo '{
  "addedContactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "addedMobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "advertiserId": ""
}' |  \
  http POST {{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "addedContactInfoList": {\n    "contactInfos": [\n      {\n        "countryCode": "",\n        "hashedEmails": [],\n        "hashedFirstName": "",\n        "hashedLastName": "",\n        "hashedPhoneNumbers": [],\n        "zipCodes": []\n      }\n    ]\n  },\n  "addedMobileDeviceIdList": {\n    "mobileDeviceIds": []\n  },\n  "advertiserId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "addedContactInfoList": ["contactInfos": [
      [
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      ]
    ]],
  "addedMobileDeviceIdList": ["mobileDeviceIds": []],
  "advertiserId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId:editCustomerMatchMembers")! 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 displayvideo.firstAndThirdPartyAudiences.get
{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId
QUERY PARAMS

firstAndThirdPartyAudienceId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")
require "http/client"

url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"

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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"

	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/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"))
    .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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")
  .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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId';
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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId',
  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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId');

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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId';
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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"]
                                                       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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId",
  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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")

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/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId";

    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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId
http GET {{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")! 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 displayvideo.firstAndThirdPartyAudiences.list
{{baseUrl}}/v2/firstAndThirdPartyAudiences
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/firstAndThirdPartyAudiences");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/firstAndThirdPartyAudiences")
require "http/client"

url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences"

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}}/v2/firstAndThirdPartyAudiences"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/firstAndThirdPartyAudiences");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/firstAndThirdPartyAudiences"

	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/v2/firstAndThirdPartyAudiences HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/firstAndThirdPartyAudiences")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/firstAndThirdPartyAudiences"))
    .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}}/v2/firstAndThirdPartyAudiences")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/firstAndThirdPartyAudiences")
  .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}}/v2/firstAndThirdPartyAudiences');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/firstAndThirdPartyAudiences'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/firstAndThirdPartyAudiences';
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}}/v2/firstAndThirdPartyAudiences',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/firstAndThirdPartyAudiences")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/firstAndThirdPartyAudiences',
  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}}/v2/firstAndThirdPartyAudiences'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/firstAndThirdPartyAudiences');

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}}/v2/firstAndThirdPartyAudiences'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/firstAndThirdPartyAudiences';
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}}/v2/firstAndThirdPartyAudiences"]
                                                       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}}/v2/firstAndThirdPartyAudiences" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/firstAndThirdPartyAudiences",
  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}}/v2/firstAndThirdPartyAudiences');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/firstAndThirdPartyAudiences');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/firstAndThirdPartyAudiences');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/firstAndThirdPartyAudiences' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/firstAndThirdPartyAudiences' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/firstAndThirdPartyAudiences")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/firstAndThirdPartyAudiences"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/firstAndThirdPartyAudiences")

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/v2/firstAndThirdPartyAudiences') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences";

    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}}/v2/firstAndThirdPartyAudiences
http GET {{baseUrl}}/v2/firstAndThirdPartyAudiences
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/firstAndThirdPartyAudiences
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/firstAndThirdPartyAudiences")! 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 displayvideo.firstAndThirdPartyAudiences.patch
{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId
QUERY PARAMS

firstAndThirdPartyAudienceId
BODY json

{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId");

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  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId" {:content-type :json
                                                                                                          :form-params {:activeDisplayAudienceSize ""
                                                                                                                        :appId ""
                                                                                                                        :audienceSource ""
                                                                                                                        :audienceType ""
                                                                                                                        :contactInfoList {:contactInfos [{:countryCode ""
                                                                                                                                                          :hashedEmails []
                                                                                                                                                          :hashedFirstName ""
                                                                                                                                                          :hashedLastName ""
                                                                                                                                                          :hashedPhoneNumbers []
                                                                                                                                                          :zipCodes []}]}
                                                                                                                        :description ""
                                                                                                                        :displayAudienceSize ""
                                                                                                                        :displayDesktopAudienceSize ""
                                                                                                                        :displayMobileAppAudienceSize ""
                                                                                                                        :displayMobileWebAudienceSize ""
                                                                                                                        :displayName ""
                                                                                                                        :firstAndThirdPartyAudienceId ""
                                                                                                                        :firstAndThirdPartyAudienceType ""
                                                                                                                        :gmailAudienceSize ""
                                                                                                                        :membershipDurationDays ""
                                                                                                                        :mobileDeviceIdList {:mobileDeviceIds []}
                                                                                                                        :name ""
                                                                                                                        :youtubeAudienceSize ""}})
require "http/client"

url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"),
    Content = new StringContent("{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"

	payload := strings.NewReader("{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\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/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 763

{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\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  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")
  .header("content-type", "application/json")
  .body("{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  activeDisplayAudienceSize: '',
  appId: '',
  audienceSource: '',
  audienceType: '',
  contactInfoList: {
    contactInfos: [
      {
        countryCode: '',
        hashedEmails: [],
        hashedFirstName: '',
        hashedLastName: '',
        hashedPhoneNumbers: [],
        zipCodes: []
      }
    ]
  },
  description: '',
  displayAudienceSize: '',
  displayDesktopAudienceSize: '',
  displayMobileAppAudienceSize: '',
  displayMobileWebAudienceSize: '',
  displayName: '',
  firstAndThirdPartyAudienceId: '',
  firstAndThirdPartyAudienceType: '',
  gmailAudienceSize: '',
  membershipDurationDays: '',
  mobileDeviceIdList: {
    mobileDeviceIds: []
  },
  name: '',
  youtubeAudienceSize: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId',
  headers: {'content-type': 'application/json'},
  data: {
    activeDisplayAudienceSize: '',
    appId: '',
    audienceSource: '',
    audienceType: '',
    contactInfoList: {
      contactInfos: [
        {
          countryCode: '',
          hashedEmails: [],
          hashedFirstName: '',
          hashedLastName: '',
          hashedPhoneNumbers: [],
          zipCodes: []
        }
      ]
    },
    description: '',
    displayAudienceSize: '',
    displayDesktopAudienceSize: '',
    displayMobileAppAudienceSize: '',
    displayMobileWebAudienceSize: '',
    displayName: '',
    firstAndThirdPartyAudienceId: '',
    firstAndThirdPartyAudienceType: '',
    gmailAudienceSize: '',
    membershipDurationDays: '',
    mobileDeviceIdList: {mobileDeviceIds: []},
    name: '',
    youtubeAudienceSize: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"activeDisplayAudienceSize":"","appId":"","audienceSource":"","audienceType":"","contactInfoList":{"contactInfos":[{"countryCode":"","hashedEmails":[],"hashedFirstName":"","hashedLastName":"","hashedPhoneNumbers":[],"zipCodes":[]}]},"description":"","displayAudienceSize":"","displayDesktopAudienceSize":"","displayMobileAppAudienceSize":"","displayMobileWebAudienceSize":"","displayName":"","firstAndThirdPartyAudienceId":"","firstAndThirdPartyAudienceType":"","gmailAudienceSize":"","membershipDurationDays":"","mobileDeviceIdList":{"mobileDeviceIds":[]},"name":"","youtubeAudienceSize":""}'
};

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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "activeDisplayAudienceSize": "",\n  "appId": "",\n  "audienceSource": "",\n  "audienceType": "",\n  "contactInfoList": {\n    "contactInfos": [\n      {\n        "countryCode": "",\n        "hashedEmails": [],\n        "hashedFirstName": "",\n        "hashedLastName": "",\n        "hashedPhoneNumbers": [],\n        "zipCodes": []\n      }\n    ]\n  },\n  "description": "",\n  "displayAudienceSize": "",\n  "displayDesktopAudienceSize": "",\n  "displayMobileAppAudienceSize": "",\n  "displayMobileWebAudienceSize": "",\n  "displayName": "",\n  "firstAndThirdPartyAudienceId": "",\n  "firstAndThirdPartyAudienceType": "",\n  "gmailAudienceSize": "",\n  "membershipDurationDays": "",\n  "mobileDeviceIdList": {\n    "mobileDeviceIds": []\n  },\n  "name": "",\n  "youtubeAudienceSize": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")
  .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/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId',
  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({
  activeDisplayAudienceSize: '',
  appId: '',
  audienceSource: '',
  audienceType: '',
  contactInfoList: {
    contactInfos: [
      {
        countryCode: '',
        hashedEmails: [],
        hashedFirstName: '',
        hashedLastName: '',
        hashedPhoneNumbers: [],
        zipCodes: []
      }
    ]
  },
  description: '',
  displayAudienceSize: '',
  displayDesktopAudienceSize: '',
  displayMobileAppAudienceSize: '',
  displayMobileWebAudienceSize: '',
  displayName: '',
  firstAndThirdPartyAudienceId: '',
  firstAndThirdPartyAudienceType: '',
  gmailAudienceSize: '',
  membershipDurationDays: '',
  mobileDeviceIdList: {mobileDeviceIds: []},
  name: '',
  youtubeAudienceSize: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId',
  headers: {'content-type': 'application/json'},
  body: {
    activeDisplayAudienceSize: '',
    appId: '',
    audienceSource: '',
    audienceType: '',
    contactInfoList: {
      contactInfos: [
        {
          countryCode: '',
          hashedEmails: [],
          hashedFirstName: '',
          hashedLastName: '',
          hashedPhoneNumbers: [],
          zipCodes: []
        }
      ]
    },
    description: '',
    displayAudienceSize: '',
    displayDesktopAudienceSize: '',
    displayMobileAppAudienceSize: '',
    displayMobileWebAudienceSize: '',
    displayName: '',
    firstAndThirdPartyAudienceId: '',
    firstAndThirdPartyAudienceType: '',
    gmailAudienceSize: '',
    membershipDurationDays: '',
    mobileDeviceIdList: {mobileDeviceIds: []},
    name: '',
    youtubeAudienceSize: ''
  },
  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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  activeDisplayAudienceSize: '',
  appId: '',
  audienceSource: '',
  audienceType: '',
  contactInfoList: {
    contactInfos: [
      {
        countryCode: '',
        hashedEmails: [],
        hashedFirstName: '',
        hashedLastName: '',
        hashedPhoneNumbers: [],
        zipCodes: []
      }
    ]
  },
  description: '',
  displayAudienceSize: '',
  displayDesktopAudienceSize: '',
  displayMobileAppAudienceSize: '',
  displayMobileWebAudienceSize: '',
  displayName: '',
  firstAndThirdPartyAudienceId: '',
  firstAndThirdPartyAudienceType: '',
  gmailAudienceSize: '',
  membershipDurationDays: '',
  mobileDeviceIdList: {
    mobileDeviceIds: []
  },
  name: '',
  youtubeAudienceSize: ''
});

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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId',
  headers: {'content-type': 'application/json'},
  data: {
    activeDisplayAudienceSize: '',
    appId: '',
    audienceSource: '',
    audienceType: '',
    contactInfoList: {
      contactInfos: [
        {
          countryCode: '',
          hashedEmails: [],
          hashedFirstName: '',
          hashedLastName: '',
          hashedPhoneNumbers: [],
          zipCodes: []
        }
      ]
    },
    description: '',
    displayAudienceSize: '',
    displayDesktopAudienceSize: '',
    displayMobileAppAudienceSize: '',
    displayMobileWebAudienceSize: '',
    displayName: '',
    firstAndThirdPartyAudienceId: '',
    firstAndThirdPartyAudienceType: '',
    gmailAudienceSize: '',
    membershipDurationDays: '',
    mobileDeviceIdList: {mobileDeviceIds: []},
    name: '',
    youtubeAudienceSize: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"activeDisplayAudienceSize":"","appId":"","audienceSource":"","audienceType":"","contactInfoList":{"contactInfos":[{"countryCode":"","hashedEmails":[],"hashedFirstName":"","hashedLastName":"","hashedPhoneNumbers":[],"zipCodes":[]}]},"description":"","displayAudienceSize":"","displayDesktopAudienceSize":"","displayMobileAppAudienceSize":"","displayMobileWebAudienceSize":"","displayName":"","firstAndThirdPartyAudienceId":"","firstAndThirdPartyAudienceType":"","gmailAudienceSize":"","membershipDurationDays":"","mobileDeviceIdList":{"mobileDeviceIds":[]},"name":"","youtubeAudienceSize":""}'
};

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 = @{ @"activeDisplayAudienceSize": @"",
                              @"appId": @"",
                              @"audienceSource": @"",
                              @"audienceType": @"",
                              @"contactInfoList": @{ @"contactInfos": @[ @{ @"countryCode": @"", @"hashedEmails": @[  ], @"hashedFirstName": @"", @"hashedLastName": @"", @"hashedPhoneNumbers": @[  ], @"zipCodes": @[  ] } ] },
                              @"description": @"",
                              @"displayAudienceSize": @"",
                              @"displayDesktopAudienceSize": @"",
                              @"displayMobileAppAudienceSize": @"",
                              @"displayMobileWebAudienceSize": @"",
                              @"displayName": @"",
                              @"firstAndThirdPartyAudienceId": @"",
                              @"firstAndThirdPartyAudienceType": @"",
                              @"gmailAudienceSize": @"",
                              @"membershipDurationDays": @"",
                              @"mobileDeviceIdList": @{ @"mobileDeviceIds": @[  ] },
                              @"name": @"",
                              @"youtubeAudienceSize": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"]
                                                       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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId",
  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([
    'activeDisplayAudienceSize' => '',
    'appId' => '',
    'audienceSource' => '',
    'audienceType' => '',
    'contactInfoList' => [
        'contactInfos' => [
                [
                                'countryCode' => '',
                                'hashedEmails' => [
                                                                
                                ],
                                'hashedFirstName' => '',
                                'hashedLastName' => '',
                                'hashedPhoneNumbers' => [
                                                                
                                ],
                                'zipCodes' => [
                                                                
                                ]
                ]
        ]
    ],
    'description' => '',
    'displayAudienceSize' => '',
    'displayDesktopAudienceSize' => '',
    'displayMobileAppAudienceSize' => '',
    'displayMobileWebAudienceSize' => '',
    'displayName' => '',
    'firstAndThirdPartyAudienceId' => '',
    'firstAndThirdPartyAudienceType' => '',
    'gmailAudienceSize' => '',
    'membershipDurationDays' => '',
    'mobileDeviceIdList' => [
        'mobileDeviceIds' => [
                
        ]
    ],
    'name' => '',
    'youtubeAudienceSize' => ''
  ]),
  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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId', [
  'body' => '{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'activeDisplayAudienceSize' => '',
  'appId' => '',
  'audienceSource' => '',
  'audienceType' => '',
  'contactInfoList' => [
    'contactInfos' => [
        [
                'countryCode' => '',
                'hashedEmails' => [
                                
                ],
                'hashedFirstName' => '',
                'hashedLastName' => '',
                'hashedPhoneNumbers' => [
                                
                ],
                'zipCodes' => [
                                
                ]
        ]
    ]
  ],
  'description' => '',
  'displayAudienceSize' => '',
  'displayDesktopAudienceSize' => '',
  'displayMobileAppAudienceSize' => '',
  'displayMobileWebAudienceSize' => '',
  'displayName' => '',
  'firstAndThirdPartyAudienceId' => '',
  'firstAndThirdPartyAudienceType' => '',
  'gmailAudienceSize' => '',
  'membershipDurationDays' => '',
  'mobileDeviceIdList' => [
    'mobileDeviceIds' => [
        
    ]
  ],
  'name' => '',
  'youtubeAudienceSize' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'activeDisplayAudienceSize' => '',
  'appId' => '',
  'audienceSource' => '',
  'audienceType' => '',
  'contactInfoList' => [
    'contactInfos' => [
        [
                'countryCode' => '',
                'hashedEmails' => [
                                
                ],
                'hashedFirstName' => '',
                'hashedLastName' => '',
                'hashedPhoneNumbers' => [
                                
                ],
                'zipCodes' => [
                                
                ]
        ]
    ]
  ],
  'description' => '',
  'displayAudienceSize' => '',
  'displayDesktopAudienceSize' => '',
  'displayMobileAppAudienceSize' => '',
  'displayMobileWebAudienceSize' => '',
  'displayName' => '',
  'firstAndThirdPartyAudienceId' => '',
  'firstAndThirdPartyAudienceType' => '',
  'gmailAudienceSize' => '',
  'membershipDurationDays' => '',
  'mobileDeviceIdList' => [
    'mobileDeviceIds' => [
        
    ]
  ],
  'name' => '',
  'youtubeAudienceSize' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId');
$request->setRequestMethod('PATCH');
$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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"

payload = {
    "activeDisplayAudienceSize": "",
    "appId": "",
    "audienceSource": "",
    "audienceType": "",
    "contactInfoList": { "contactInfos": [
            {
                "countryCode": "",
                "hashedEmails": [],
                "hashedFirstName": "",
                "hashedLastName": "",
                "hashedPhoneNumbers": [],
                "zipCodes": []
            }
        ] },
    "description": "",
    "displayAudienceSize": "",
    "displayDesktopAudienceSize": "",
    "displayMobileAppAudienceSize": "",
    "displayMobileWebAudienceSize": "",
    "displayName": "",
    "firstAndThirdPartyAudienceId": "",
    "firstAndThirdPartyAudienceType": "",
    "gmailAudienceSize": "",
    "membershipDurationDays": "",
    "mobileDeviceIdList": { "mobileDeviceIds": [] },
    "name": "",
    "youtubeAudienceSize": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId"

payload <- "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")

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  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\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/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId') do |req|
  req.body = "{\n  \"activeDisplayAudienceSize\": \"\",\n  \"appId\": \"\",\n  \"audienceSource\": \"\",\n  \"audienceType\": \"\",\n  \"contactInfoList\": {\n    \"contactInfos\": [\n      {\n        \"countryCode\": \"\",\n        \"hashedEmails\": [],\n        \"hashedFirstName\": \"\",\n        \"hashedLastName\": \"\",\n        \"hashedPhoneNumbers\": [],\n        \"zipCodes\": []\n      }\n    ]\n  },\n  \"description\": \"\",\n  \"displayAudienceSize\": \"\",\n  \"displayDesktopAudienceSize\": \"\",\n  \"displayMobileAppAudienceSize\": \"\",\n  \"displayMobileWebAudienceSize\": \"\",\n  \"displayName\": \"\",\n  \"firstAndThirdPartyAudienceId\": \"\",\n  \"firstAndThirdPartyAudienceType\": \"\",\n  \"gmailAudienceSize\": \"\",\n  \"membershipDurationDays\": \"\",\n  \"mobileDeviceIdList\": {\n    \"mobileDeviceIds\": []\n  },\n  \"name\": \"\",\n  \"youtubeAudienceSize\": \"\"\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}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId";

    let payload = json!({
        "activeDisplayAudienceSize": "",
        "appId": "",
        "audienceSource": "",
        "audienceType": "",
        "contactInfoList": json!({"contactInfos": (
                json!({
                    "countryCode": "",
                    "hashedEmails": (),
                    "hashedFirstName": "",
                    "hashedLastName": "",
                    "hashedPhoneNumbers": (),
                    "zipCodes": ()
                })
            )}),
        "description": "",
        "displayAudienceSize": "",
        "displayDesktopAudienceSize": "",
        "displayMobileAppAudienceSize": "",
        "displayMobileWebAudienceSize": "",
        "displayName": "",
        "firstAndThirdPartyAudienceId": "",
        "firstAndThirdPartyAudienceType": "",
        "gmailAudienceSize": "",
        "membershipDurationDays": "",
        "mobileDeviceIdList": json!({"mobileDeviceIds": ()}),
        "name": "",
        "youtubeAudienceSize": ""
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId \
  --header 'content-type: application/json' \
  --data '{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}'
echo '{
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": {
    "contactInfos": [
      {
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      }
    ]
  },
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": {
    "mobileDeviceIds": []
  },
  "name": "",
  "youtubeAudienceSize": ""
}' |  \
  http PATCH {{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "activeDisplayAudienceSize": "",\n  "appId": "",\n  "audienceSource": "",\n  "audienceType": "",\n  "contactInfoList": {\n    "contactInfos": [\n      {\n        "countryCode": "",\n        "hashedEmails": [],\n        "hashedFirstName": "",\n        "hashedLastName": "",\n        "hashedPhoneNumbers": [],\n        "zipCodes": []\n      }\n    ]\n  },\n  "description": "",\n  "displayAudienceSize": "",\n  "displayDesktopAudienceSize": "",\n  "displayMobileAppAudienceSize": "",\n  "displayMobileWebAudienceSize": "",\n  "displayName": "",\n  "firstAndThirdPartyAudienceId": "",\n  "firstAndThirdPartyAudienceType": "",\n  "gmailAudienceSize": "",\n  "membershipDurationDays": "",\n  "mobileDeviceIdList": {\n    "mobileDeviceIds": []\n  },\n  "name": "",\n  "youtubeAudienceSize": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "activeDisplayAudienceSize": "",
  "appId": "",
  "audienceSource": "",
  "audienceType": "",
  "contactInfoList": ["contactInfos": [
      [
        "countryCode": "",
        "hashedEmails": [],
        "hashedFirstName": "",
        "hashedLastName": "",
        "hashedPhoneNumbers": [],
        "zipCodes": []
      ]
    ]],
  "description": "",
  "displayAudienceSize": "",
  "displayDesktopAudienceSize": "",
  "displayMobileAppAudienceSize": "",
  "displayMobileWebAudienceSize": "",
  "displayName": "",
  "firstAndThirdPartyAudienceId": "",
  "firstAndThirdPartyAudienceType": "",
  "gmailAudienceSize": "",
  "membershipDurationDays": "",
  "mobileDeviceIdList": ["mobileDeviceIds": []],
  "name": "",
  "youtubeAudienceSize": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/firstAndThirdPartyAudiences/:firstAndThirdPartyAudienceId")! 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()
GET displayvideo.floodlightGroups.get
{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId
QUERY PARAMS

floodlightGroupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId")
require "http/client"

url = "{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId"

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}}/v2/floodlightGroups/:floodlightGroupId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId"

	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/v2/floodlightGroups/:floodlightGroupId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId"))
    .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}}/v2/floodlightGroups/:floodlightGroupId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId")
  .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}}/v2/floodlightGroups/:floodlightGroupId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId';
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}}/v2/floodlightGroups/:floodlightGroupId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/floodlightGroups/:floodlightGroupId',
  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}}/v2/floodlightGroups/:floodlightGroupId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId');

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}}/v2/floodlightGroups/:floodlightGroupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId';
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}}/v2/floodlightGroups/:floodlightGroupId"]
                                                       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}}/v2/floodlightGroups/:floodlightGroupId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId",
  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}}/v2/floodlightGroups/:floodlightGroupId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/floodlightGroups/:floodlightGroupId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId")

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/v2/floodlightGroups/:floodlightGroupId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId";

    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}}/v2/floodlightGroups/:floodlightGroupId
http GET {{baseUrl}}/v2/floodlightGroups/:floodlightGroupId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/floodlightGroups/:floodlightGroupId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/floodlightGroups/:floodlightGroupId")! 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 displayvideo.googleAudiences.get
{{baseUrl}}/v2/googleAudiences/:googleAudienceId
QUERY PARAMS

googleAudienceId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/googleAudiences/:googleAudienceId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/googleAudiences/:googleAudienceId")
require "http/client"

url = "{{baseUrl}}/v2/googleAudiences/:googleAudienceId"

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}}/v2/googleAudiences/:googleAudienceId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/googleAudiences/:googleAudienceId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/googleAudiences/:googleAudienceId"

	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/v2/googleAudiences/:googleAudienceId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/googleAudiences/:googleAudienceId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/googleAudiences/:googleAudienceId"))
    .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}}/v2/googleAudiences/:googleAudienceId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/googleAudiences/:googleAudienceId")
  .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}}/v2/googleAudiences/:googleAudienceId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/googleAudiences/:googleAudienceId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/googleAudiences/:googleAudienceId';
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}}/v2/googleAudiences/:googleAudienceId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/googleAudiences/:googleAudienceId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/googleAudiences/:googleAudienceId',
  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}}/v2/googleAudiences/:googleAudienceId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/googleAudiences/:googleAudienceId');

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}}/v2/googleAudiences/:googleAudienceId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/googleAudiences/:googleAudienceId';
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}}/v2/googleAudiences/:googleAudienceId"]
                                                       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}}/v2/googleAudiences/:googleAudienceId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/googleAudiences/:googleAudienceId",
  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}}/v2/googleAudiences/:googleAudienceId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/googleAudiences/:googleAudienceId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/googleAudiences/:googleAudienceId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/googleAudiences/:googleAudienceId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/googleAudiences/:googleAudienceId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/googleAudiences/:googleAudienceId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/googleAudiences/:googleAudienceId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/googleAudiences/:googleAudienceId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/googleAudiences/:googleAudienceId")

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/v2/googleAudiences/:googleAudienceId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/googleAudiences/:googleAudienceId";

    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}}/v2/googleAudiences/:googleAudienceId
http GET {{baseUrl}}/v2/googleAudiences/:googleAudienceId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/googleAudiences/:googleAudienceId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/googleAudiences/:googleAudienceId")! 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 displayvideo.googleAudiences.list
{{baseUrl}}/v2/googleAudiences
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/googleAudiences");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/googleAudiences")
require "http/client"

url = "{{baseUrl}}/v2/googleAudiences"

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}}/v2/googleAudiences"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/googleAudiences");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/googleAudiences"

	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/v2/googleAudiences HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/googleAudiences")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/googleAudiences"))
    .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}}/v2/googleAudiences")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/googleAudiences")
  .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}}/v2/googleAudiences');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/googleAudiences'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/googleAudiences';
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}}/v2/googleAudiences',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/googleAudiences")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/googleAudiences',
  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}}/v2/googleAudiences'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/googleAudiences');

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}}/v2/googleAudiences'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/googleAudiences';
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}}/v2/googleAudiences"]
                                                       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}}/v2/googleAudiences" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/googleAudiences",
  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}}/v2/googleAudiences');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/googleAudiences');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/googleAudiences');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/googleAudiences' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/googleAudiences' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/googleAudiences")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/googleAudiences"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/googleAudiences"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/googleAudiences")

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/v2/googleAudiences') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/googleAudiences";

    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}}/v2/googleAudiences
http GET {{baseUrl}}/v2/googleAudiences
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/googleAudiences
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/googleAudiences")! 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 displayvideo.guaranteedOrders.create
{{baseUrl}}/v2/guaranteedOrders
BODY json

{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/guaranteedOrders");

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  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/guaranteedOrders" {:content-type :json
                                                                :form-params {:defaultAdvertiserId ""
                                                                              :defaultCampaignId ""
                                                                              :displayName ""
                                                                              :exchange ""
                                                                              :guaranteedOrderId ""
                                                                              :legacyGuaranteedOrderId ""
                                                                              :name ""
                                                                              :publisherName ""
                                                                              :readAccessInherited false
                                                                              :readAdvertiserIds []
                                                                              :readWriteAdvertiserId ""
                                                                              :readWritePartnerId ""
                                                                              :status {:configStatus ""
                                                                                       :entityPauseReason ""
                                                                                       :entityStatus ""}
                                                                              :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v2/guaranteedOrders"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\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}}/v2/guaranteedOrders"),
    Content = new StringContent("{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\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}}/v2/guaranteedOrders");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/guaranteedOrders"

	payload := strings.NewReader("{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\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/v2/guaranteedOrders HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 427

{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/guaranteedOrders")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/guaranteedOrders"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\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  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/guaranteedOrders")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/guaranteedOrders")
  .header("content-type", "application/json")
  .body("{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  defaultAdvertiserId: '',
  defaultCampaignId: '',
  displayName: '',
  exchange: '',
  guaranteedOrderId: '',
  legacyGuaranteedOrderId: '',
  name: '',
  publisherName: '',
  readAccessInherited: false,
  readAdvertiserIds: [],
  readWriteAdvertiserId: '',
  readWritePartnerId: '',
  status: {
    configStatus: '',
    entityPauseReason: '',
    entityStatus: ''
  },
  updateTime: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/guaranteedOrders');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/guaranteedOrders',
  headers: {'content-type': 'application/json'},
  data: {
    defaultAdvertiserId: '',
    defaultCampaignId: '',
    displayName: '',
    exchange: '',
    guaranteedOrderId: '',
    legacyGuaranteedOrderId: '',
    name: '',
    publisherName: '',
    readAccessInherited: false,
    readAdvertiserIds: [],
    readWriteAdvertiserId: '',
    readWritePartnerId: '',
    status: {configStatus: '', entityPauseReason: '', entityStatus: ''},
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/guaranteedOrders';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"defaultAdvertiserId":"","defaultCampaignId":"","displayName":"","exchange":"","guaranteedOrderId":"","legacyGuaranteedOrderId":"","name":"","publisherName":"","readAccessInherited":false,"readAdvertiserIds":[],"readWriteAdvertiserId":"","readWritePartnerId":"","status":{"configStatus":"","entityPauseReason":"","entityStatus":""},"updateTime":""}'
};

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}}/v2/guaranteedOrders',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "defaultAdvertiserId": "",\n  "defaultCampaignId": "",\n  "displayName": "",\n  "exchange": "",\n  "guaranteedOrderId": "",\n  "legacyGuaranteedOrderId": "",\n  "name": "",\n  "publisherName": "",\n  "readAccessInherited": false,\n  "readAdvertiserIds": [],\n  "readWriteAdvertiserId": "",\n  "readWritePartnerId": "",\n  "status": {\n    "configStatus": "",\n    "entityPauseReason": "",\n    "entityStatus": ""\n  },\n  "updateTime": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/guaranteedOrders")
  .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/v2/guaranteedOrders',
  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({
  defaultAdvertiserId: '',
  defaultCampaignId: '',
  displayName: '',
  exchange: '',
  guaranteedOrderId: '',
  legacyGuaranteedOrderId: '',
  name: '',
  publisherName: '',
  readAccessInherited: false,
  readAdvertiserIds: [],
  readWriteAdvertiserId: '',
  readWritePartnerId: '',
  status: {configStatus: '', entityPauseReason: '', entityStatus: ''},
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/guaranteedOrders',
  headers: {'content-type': 'application/json'},
  body: {
    defaultAdvertiserId: '',
    defaultCampaignId: '',
    displayName: '',
    exchange: '',
    guaranteedOrderId: '',
    legacyGuaranteedOrderId: '',
    name: '',
    publisherName: '',
    readAccessInherited: false,
    readAdvertiserIds: [],
    readWriteAdvertiserId: '',
    readWritePartnerId: '',
    status: {configStatus: '', entityPauseReason: '', entityStatus: ''},
    updateTime: ''
  },
  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}}/v2/guaranteedOrders');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  defaultAdvertiserId: '',
  defaultCampaignId: '',
  displayName: '',
  exchange: '',
  guaranteedOrderId: '',
  legacyGuaranteedOrderId: '',
  name: '',
  publisherName: '',
  readAccessInherited: false,
  readAdvertiserIds: [],
  readWriteAdvertiserId: '',
  readWritePartnerId: '',
  status: {
    configStatus: '',
    entityPauseReason: '',
    entityStatus: ''
  },
  updateTime: ''
});

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}}/v2/guaranteedOrders',
  headers: {'content-type': 'application/json'},
  data: {
    defaultAdvertiserId: '',
    defaultCampaignId: '',
    displayName: '',
    exchange: '',
    guaranteedOrderId: '',
    legacyGuaranteedOrderId: '',
    name: '',
    publisherName: '',
    readAccessInherited: false,
    readAdvertiserIds: [],
    readWriteAdvertiserId: '',
    readWritePartnerId: '',
    status: {configStatus: '', entityPauseReason: '', entityStatus: ''},
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/guaranteedOrders';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"defaultAdvertiserId":"","defaultCampaignId":"","displayName":"","exchange":"","guaranteedOrderId":"","legacyGuaranteedOrderId":"","name":"","publisherName":"","readAccessInherited":false,"readAdvertiserIds":[],"readWriteAdvertiserId":"","readWritePartnerId":"","status":{"configStatus":"","entityPauseReason":"","entityStatus":""},"updateTime":""}'
};

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 = @{ @"defaultAdvertiserId": @"",
                              @"defaultCampaignId": @"",
                              @"displayName": @"",
                              @"exchange": @"",
                              @"guaranteedOrderId": @"",
                              @"legacyGuaranteedOrderId": @"",
                              @"name": @"",
                              @"publisherName": @"",
                              @"readAccessInherited": @NO,
                              @"readAdvertiserIds": @[  ],
                              @"readWriteAdvertiserId": @"",
                              @"readWritePartnerId": @"",
                              @"status": @{ @"configStatus": @"", @"entityPauseReason": @"", @"entityStatus": @"" },
                              @"updateTime": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/guaranteedOrders"]
                                                       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}}/v2/guaranteedOrders" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/guaranteedOrders",
  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([
    'defaultAdvertiserId' => '',
    'defaultCampaignId' => '',
    'displayName' => '',
    'exchange' => '',
    'guaranteedOrderId' => '',
    'legacyGuaranteedOrderId' => '',
    'name' => '',
    'publisherName' => '',
    'readAccessInherited' => null,
    'readAdvertiserIds' => [
        
    ],
    'readWriteAdvertiserId' => '',
    'readWritePartnerId' => '',
    'status' => [
        'configStatus' => '',
        'entityPauseReason' => '',
        'entityStatus' => ''
    ],
    'updateTime' => ''
  ]),
  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}}/v2/guaranteedOrders', [
  'body' => '{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/guaranteedOrders');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'defaultAdvertiserId' => '',
  'defaultCampaignId' => '',
  'displayName' => '',
  'exchange' => '',
  'guaranteedOrderId' => '',
  'legacyGuaranteedOrderId' => '',
  'name' => '',
  'publisherName' => '',
  'readAccessInherited' => null,
  'readAdvertiserIds' => [
    
  ],
  'readWriteAdvertiserId' => '',
  'readWritePartnerId' => '',
  'status' => [
    'configStatus' => '',
    'entityPauseReason' => '',
    'entityStatus' => ''
  ],
  'updateTime' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'defaultAdvertiserId' => '',
  'defaultCampaignId' => '',
  'displayName' => '',
  'exchange' => '',
  'guaranteedOrderId' => '',
  'legacyGuaranteedOrderId' => '',
  'name' => '',
  'publisherName' => '',
  'readAccessInherited' => null,
  'readAdvertiserIds' => [
    
  ],
  'readWriteAdvertiserId' => '',
  'readWritePartnerId' => '',
  'status' => [
    'configStatus' => '',
    'entityPauseReason' => '',
    'entityStatus' => ''
  ],
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/guaranteedOrders');
$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}}/v2/guaranteedOrders' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/guaranteedOrders' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/guaranteedOrders", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/guaranteedOrders"

payload = {
    "defaultAdvertiserId": "",
    "defaultCampaignId": "",
    "displayName": "",
    "exchange": "",
    "guaranteedOrderId": "",
    "legacyGuaranteedOrderId": "",
    "name": "",
    "publisherName": "",
    "readAccessInherited": False,
    "readAdvertiserIds": [],
    "readWriteAdvertiserId": "",
    "readWritePartnerId": "",
    "status": {
        "configStatus": "",
        "entityPauseReason": "",
        "entityStatus": ""
    },
    "updateTime": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/guaranteedOrders"

payload <- "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\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}}/v2/guaranteedOrders")

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  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\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/v2/guaranteedOrders') do |req|
  req.body = "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/guaranteedOrders";

    let payload = json!({
        "defaultAdvertiserId": "",
        "defaultCampaignId": "",
        "displayName": "",
        "exchange": "",
        "guaranteedOrderId": "",
        "legacyGuaranteedOrderId": "",
        "name": "",
        "publisherName": "",
        "readAccessInherited": false,
        "readAdvertiserIds": (),
        "readWriteAdvertiserId": "",
        "readWritePartnerId": "",
        "status": json!({
            "configStatus": "",
            "entityPauseReason": "",
            "entityStatus": ""
        }),
        "updateTime": ""
    });

    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}}/v2/guaranteedOrders \
  --header 'content-type: application/json' \
  --data '{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}'
echo '{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}' |  \
  http POST {{baseUrl}}/v2/guaranteedOrders \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "defaultAdvertiserId": "",\n  "defaultCampaignId": "",\n  "displayName": "",\n  "exchange": "",\n  "guaranteedOrderId": "",\n  "legacyGuaranteedOrderId": "",\n  "name": "",\n  "publisherName": "",\n  "readAccessInherited": false,\n  "readAdvertiserIds": [],\n  "readWriteAdvertiserId": "",\n  "readWritePartnerId": "",\n  "status": {\n    "configStatus": "",\n    "entityPauseReason": "",\n    "entityStatus": ""\n  },\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/guaranteedOrders
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": [
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  ],
  "updateTime": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/guaranteedOrders")! 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()
POST displayvideo.guaranteedOrders.editGuaranteedOrderReadAccessors
{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors
QUERY PARAMS

guaranteedOrderId
BODY json

{
  "addedAdvertisers": [],
  "partnerId": "",
  "readAccessInherited": false,
  "removedAdvertisers": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors");

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  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors" {:content-type :json
                                                                                                                    :form-params {:addedAdvertisers []
                                                                                                                                  :partnerId ""
                                                                                                                                  :readAccessInherited false
                                                                                                                                  :removedAdvertisers []}})
require "http/client"

url = "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\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}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors"),
    Content = new StringContent("{\n  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\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}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors"

	payload := strings.NewReader("{\n  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\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/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 107

{
  "addedAdvertisers": [],
  "partnerId": "",
  "readAccessInherited": false,
  "removedAdvertisers": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\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  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors")
  .header("content-type", "application/json")
  .body("{\n  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\n}")
  .asString();
const data = JSON.stringify({
  addedAdvertisers: [],
  partnerId: '',
  readAccessInherited: false,
  removedAdvertisers: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors',
  headers: {'content-type': 'application/json'},
  data: {
    addedAdvertisers: [],
    partnerId: '',
    readAccessInherited: false,
    removedAdvertisers: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"addedAdvertisers":[],"partnerId":"","readAccessInherited":false,"removedAdvertisers":[]}'
};

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}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "addedAdvertisers": [],\n  "partnerId": "",\n  "readAccessInherited": false,\n  "removedAdvertisers": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors")
  .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/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors',
  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({
  addedAdvertisers: [],
  partnerId: '',
  readAccessInherited: false,
  removedAdvertisers: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors',
  headers: {'content-type': 'application/json'},
  body: {
    addedAdvertisers: [],
    partnerId: '',
    readAccessInherited: false,
    removedAdvertisers: []
  },
  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}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  addedAdvertisers: [],
  partnerId: '',
  readAccessInherited: false,
  removedAdvertisers: []
});

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}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors',
  headers: {'content-type': 'application/json'},
  data: {
    addedAdvertisers: [],
    partnerId: '',
    readAccessInherited: false,
    removedAdvertisers: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"addedAdvertisers":[],"partnerId":"","readAccessInherited":false,"removedAdvertisers":[]}'
};

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 = @{ @"addedAdvertisers": @[  ],
                              @"partnerId": @"",
                              @"readAccessInherited": @NO,
                              @"removedAdvertisers": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors"]
                                                       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}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors",
  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([
    'addedAdvertisers' => [
        
    ],
    'partnerId' => '',
    'readAccessInherited' => null,
    'removedAdvertisers' => [
        
    ]
  ]),
  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}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors', [
  'body' => '{
  "addedAdvertisers": [],
  "partnerId": "",
  "readAccessInherited": false,
  "removedAdvertisers": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'addedAdvertisers' => [
    
  ],
  'partnerId' => '',
  'readAccessInherited' => null,
  'removedAdvertisers' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'addedAdvertisers' => [
    
  ],
  'partnerId' => '',
  'readAccessInherited' => null,
  'removedAdvertisers' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors');
$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}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "addedAdvertisers": [],
  "partnerId": "",
  "readAccessInherited": false,
  "removedAdvertisers": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "addedAdvertisers": [],
  "partnerId": "",
  "readAccessInherited": false,
  "removedAdvertisers": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors"

payload = {
    "addedAdvertisers": [],
    "partnerId": "",
    "readAccessInherited": False,
    "removedAdvertisers": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors"

payload <- "{\n  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\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}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors")

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  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\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/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors') do |req|
  req.body = "{\n  \"addedAdvertisers\": [],\n  \"partnerId\": \"\",\n  \"readAccessInherited\": false,\n  \"removedAdvertisers\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors";

    let payload = json!({
        "addedAdvertisers": (),
        "partnerId": "",
        "readAccessInherited": false,
        "removedAdvertisers": ()
    });

    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}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors \
  --header 'content-type: application/json' \
  --data '{
  "addedAdvertisers": [],
  "partnerId": "",
  "readAccessInherited": false,
  "removedAdvertisers": []
}'
echo '{
  "addedAdvertisers": [],
  "partnerId": "",
  "readAccessInherited": false,
  "removedAdvertisers": []
}' |  \
  http POST {{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "addedAdvertisers": [],\n  "partnerId": "",\n  "readAccessInherited": false,\n  "removedAdvertisers": []\n}' \
  --output-document \
  - {{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "addedAdvertisers": [],
  "partnerId": "",
  "readAccessInherited": false,
  "removedAdvertisers": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId:editGuaranteedOrderReadAccessors")! 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 displayvideo.guaranteedOrders.get
{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId
QUERY PARAMS

guaranteedOrderId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId")
require "http/client"

url = "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId"

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}}/v2/guaranteedOrders/:guaranteedOrderId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId"

	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/v2/guaranteedOrders/:guaranteedOrderId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId"))
    .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}}/v2/guaranteedOrders/:guaranteedOrderId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId")
  .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}}/v2/guaranteedOrders/:guaranteedOrderId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId';
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}}/v2/guaranteedOrders/:guaranteedOrderId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/guaranteedOrders/:guaranteedOrderId',
  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}}/v2/guaranteedOrders/:guaranteedOrderId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId');

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}}/v2/guaranteedOrders/:guaranteedOrderId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId';
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}}/v2/guaranteedOrders/:guaranteedOrderId"]
                                                       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}}/v2/guaranteedOrders/:guaranteedOrderId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId",
  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}}/v2/guaranteedOrders/:guaranteedOrderId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/guaranteedOrders/:guaranteedOrderId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId")

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/v2/guaranteedOrders/:guaranteedOrderId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId";

    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}}/v2/guaranteedOrders/:guaranteedOrderId
http GET {{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId")! 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 displayvideo.guaranteedOrders.list
{{baseUrl}}/v2/guaranteedOrders
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/guaranteedOrders");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/guaranteedOrders")
require "http/client"

url = "{{baseUrl}}/v2/guaranteedOrders"

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}}/v2/guaranteedOrders"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/guaranteedOrders");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/guaranteedOrders"

	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/v2/guaranteedOrders HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/guaranteedOrders")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/guaranteedOrders"))
    .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}}/v2/guaranteedOrders")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/guaranteedOrders")
  .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}}/v2/guaranteedOrders');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/guaranteedOrders'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/guaranteedOrders';
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}}/v2/guaranteedOrders',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/guaranteedOrders")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/guaranteedOrders',
  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}}/v2/guaranteedOrders'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/guaranteedOrders');

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}}/v2/guaranteedOrders'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/guaranteedOrders';
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}}/v2/guaranteedOrders"]
                                                       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}}/v2/guaranteedOrders" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/guaranteedOrders",
  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}}/v2/guaranteedOrders');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/guaranteedOrders');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/guaranteedOrders');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/guaranteedOrders' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/guaranteedOrders' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/guaranteedOrders")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/guaranteedOrders"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/guaranteedOrders"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/guaranteedOrders")

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/v2/guaranteedOrders') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/guaranteedOrders";

    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}}/v2/guaranteedOrders
http GET {{baseUrl}}/v2/guaranteedOrders
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/guaranteedOrders
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/guaranteedOrders")! 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 displayvideo.guaranteedOrders.patch
{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId
QUERY PARAMS

guaranteedOrderId
BODY json

{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId");

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  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId" {:content-type :json
                                                                                    :form-params {:defaultAdvertiserId ""
                                                                                                  :defaultCampaignId ""
                                                                                                  :displayName ""
                                                                                                  :exchange ""
                                                                                                  :guaranteedOrderId ""
                                                                                                  :legacyGuaranteedOrderId ""
                                                                                                  :name ""
                                                                                                  :publisherName ""
                                                                                                  :readAccessInherited false
                                                                                                  :readAdvertiserIds []
                                                                                                  :readWriteAdvertiserId ""
                                                                                                  :readWritePartnerId ""
                                                                                                  :status {:configStatus ""
                                                                                                           :entityPauseReason ""
                                                                                                           :entityStatus ""}
                                                                                                  :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\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}}/v2/guaranteedOrders/:guaranteedOrderId"),
    Content = new StringContent("{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\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}}/v2/guaranteedOrders/:guaranteedOrderId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId"

	payload := strings.NewReader("{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\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/v2/guaranteedOrders/:guaranteedOrderId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 427

{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\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  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId")
  .header("content-type", "application/json")
  .body("{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  defaultAdvertiserId: '',
  defaultCampaignId: '',
  displayName: '',
  exchange: '',
  guaranteedOrderId: '',
  legacyGuaranteedOrderId: '',
  name: '',
  publisherName: '',
  readAccessInherited: false,
  readAdvertiserIds: [],
  readWriteAdvertiserId: '',
  readWritePartnerId: '',
  status: {
    configStatus: '',
    entityPauseReason: '',
    entityStatus: ''
  },
  updateTime: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId',
  headers: {'content-type': 'application/json'},
  data: {
    defaultAdvertiserId: '',
    defaultCampaignId: '',
    displayName: '',
    exchange: '',
    guaranteedOrderId: '',
    legacyGuaranteedOrderId: '',
    name: '',
    publisherName: '',
    readAccessInherited: false,
    readAdvertiserIds: [],
    readWriteAdvertiserId: '',
    readWritePartnerId: '',
    status: {configStatus: '', entityPauseReason: '', entityStatus: ''},
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"defaultAdvertiserId":"","defaultCampaignId":"","displayName":"","exchange":"","guaranteedOrderId":"","legacyGuaranteedOrderId":"","name":"","publisherName":"","readAccessInherited":false,"readAdvertiserIds":[],"readWriteAdvertiserId":"","readWritePartnerId":"","status":{"configStatus":"","entityPauseReason":"","entityStatus":""},"updateTime":""}'
};

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}}/v2/guaranteedOrders/:guaranteedOrderId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "defaultAdvertiserId": "",\n  "defaultCampaignId": "",\n  "displayName": "",\n  "exchange": "",\n  "guaranteedOrderId": "",\n  "legacyGuaranteedOrderId": "",\n  "name": "",\n  "publisherName": "",\n  "readAccessInherited": false,\n  "readAdvertiserIds": [],\n  "readWriteAdvertiserId": "",\n  "readWritePartnerId": "",\n  "status": {\n    "configStatus": "",\n    "entityPauseReason": "",\n    "entityStatus": ""\n  },\n  "updateTime": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId")
  .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/v2/guaranteedOrders/:guaranteedOrderId',
  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({
  defaultAdvertiserId: '',
  defaultCampaignId: '',
  displayName: '',
  exchange: '',
  guaranteedOrderId: '',
  legacyGuaranteedOrderId: '',
  name: '',
  publisherName: '',
  readAccessInherited: false,
  readAdvertiserIds: [],
  readWriteAdvertiserId: '',
  readWritePartnerId: '',
  status: {configStatus: '', entityPauseReason: '', entityStatus: ''},
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId',
  headers: {'content-type': 'application/json'},
  body: {
    defaultAdvertiserId: '',
    defaultCampaignId: '',
    displayName: '',
    exchange: '',
    guaranteedOrderId: '',
    legacyGuaranteedOrderId: '',
    name: '',
    publisherName: '',
    readAccessInherited: false,
    readAdvertiserIds: [],
    readWriteAdvertiserId: '',
    readWritePartnerId: '',
    status: {configStatus: '', entityPauseReason: '', entityStatus: ''},
    updateTime: ''
  },
  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}}/v2/guaranteedOrders/:guaranteedOrderId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  defaultAdvertiserId: '',
  defaultCampaignId: '',
  displayName: '',
  exchange: '',
  guaranteedOrderId: '',
  legacyGuaranteedOrderId: '',
  name: '',
  publisherName: '',
  readAccessInherited: false,
  readAdvertiserIds: [],
  readWriteAdvertiserId: '',
  readWritePartnerId: '',
  status: {
    configStatus: '',
    entityPauseReason: '',
    entityStatus: ''
  },
  updateTime: ''
});

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}}/v2/guaranteedOrders/:guaranteedOrderId',
  headers: {'content-type': 'application/json'},
  data: {
    defaultAdvertiserId: '',
    defaultCampaignId: '',
    displayName: '',
    exchange: '',
    guaranteedOrderId: '',
    legacyGuaranteedOrderId: '',
    name: '',
    publisherName: '',
    readAccessInherited: false,
    readAdvertiserIds: [],
    readWriteAdvertiserId: '',
    readWritePartnerId: '',
    status: {configStatus: '', entityPauseReason: '', entityStatus: ''},
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"defaultAdvertiserId":"","defaultCampaignId":"","displayName":"","exchange":"","guaranteedOrderId":"","legacyGuaranteedOrderId":"","name":"","publisherName":"","readAccessInherited":false,"readAdvertiserIds":[],"readWriteAdvertiserId":"","readWritePartnerId":"","status":{"configStatus":"","entityPauseReason":"","entityStatus":""},"updateTime":""}'
};

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 = @{ @"defaultAdvertiserId": @"",
                              @"defaultCampaignId": @"",
                              @"displayName": @"",
                              @"exchange": @"",
                              @"guaranteedOrderId": @"",
                              @"legacyGuaranteedOrderId": @"",
                              @"name": @"",
                              @"publisherName": @"",
                              @"readAccessInherited": @NO,
                              @"readAdvertiserIds": @[  ],
                              @"readWriteAdvertiserId": @"",
                              @"readWritePartnerId": @"",
                              @"status": @{ @"configStatus": @"", @"entityPauseReason": @"", @"entityStatus": @"" },
                              @"updateTime": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId"]
                                                       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}}/v2/guaranteedOrders/:guaranteedOrderId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId",
  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([
    'defaultAdvertiserId' => '',
    'defaultCampaignId' => '',
    'displayName' => '',
    'exchange' => '',
    'guaranteedOrderId' => '',
    'legacyGuaranteedOrderId' => '',
    'name' => '',
    'publisherName' => '',
    'readAccessInherited' => null,
    'readAdvertiserIds' => [
        
    ],
    'readWriteAdvertiserId' => '',
    'readWritePartnerId' => '',
    'status' => [
        'configStatus' => '',
        'entityPauseReason' => '',
        'entityStatus' => ''
    ],
    'updateTime' => ''
  ]),
  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}}/v2/guaranteedOrders/:guaranteedOrderId', [
  'body' => '{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'defaultAdvertiserId' => '',
  'defaultCampaignId' => '',
  'displayName' => '',
  'exchange' => '',
  'guaranteedOrderId' => '',
  'legacyGuaranteedOrderId' => '',
  'name' => '',
  'publisherName' => '',
  'readAccessInherited' => null,
  'readAdvertiserIds' => [
    
  ],
  'readWriteAdvertiserId' => '',
  'readWritePartnerId' => '',
  'status' => [
    'configStatus' => '',
    'entityPauseReason' => '',
    'entityStatus' => ''
  ],
  'updateTime' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'defaultAdvertiserId' => '',
  'defaultCampaignId' => '',
  'displayName' => '',
  'exchange' => '',
  'guaranteedOrderId' => '',
  'legacyGuaranteedOrderId' => '',
  'name' => '',
  'publisherName' => '',
  'readAccessInherited' => null,
  'readAdvertiserIds' => [
    
  ],
  'readWriteAdvertiserId' => '',
  'readWritePartnerId' => '',
  'status' => [
    'configStatus' => '',
    'entityPauseReason' => '',
    'entityStatus' => ''
  ],
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId');
$request->setRequestMethod('PATCH');
$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}}/v2/guaranteedOrders/:guaranteedOrderId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/v2/guaranteedOrders/:guaranteedOrderId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId"

payload = {
    "defaultAdvertiserId": "",
    "defaultCampaignId": "",
    "displayName": "",
    "exchange": "",
    "guaranteedOrderId": "",
    "legacyGuaranteedOrderId": "",
    "name": "",
    "publisherName": "",
    "readAccessInherited": False,
    "readAdvertiserIds": [],
    "readWriteAdvertiserId": "",
    "readWritePartnerId": "",
    "status": {
        "configStatus": "",
        "entityPauseReason": "",
        "entityStatus": ""
    },
    "updateTime": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId"

payload <- "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId")

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  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\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/v2/guaranteedOrders/:guaranteedOrderId') do |req|
  req.body = "{\n  \"defaultAdvertiserId\": \"\",\n  \"defaultCampaignId\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"legacyGuaranteedOrderId\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"readAccessInherited\": false,\n  \"readAdvertiserIds\": [],\n  \"readWriteAdvertiserId\": \"\",\n  \"readWritePartnerId\": \"\",\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\"\n  },\n  \"updateTime\": \"\"\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}}/v2/guaranteedOrders/:guaranteedOrderId";

    let payload = json!({
        "defaultAdvertiserId": "",
        "defaultCampaignId": "",
        "displayName": "",
        "exchange": "",
        "guaranteedOrderId": "",
        "legacyGuaranteedOrderId": "",
        "name": "",
        "publisherName": "",
        "readAccessInherited": false,
        "readAdvertiserIds": (),
        "readWriteAdvertiserId": "",
        "readWritePartnerId": "",
        "status": json!({
            "configStatus": "",
            "entityPauseReason": "",
            "entityStatus": ""
        }),
        "updateTime": ""
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId \
  --header 'content-type: application/json' \
  --data '{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}'
echo '{
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  },
  "updateTime": ""
}' |  \
  http PATCH {{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "defaultAdvertiserId": "",\n  "defaultCampaignId": "",\n  "displayName": "",\n  "exchange": "",\n  "guaranteedOrderId": "",\n  "legacyGuaranteedOrderId": "",\n  "name": "",\n  "publisherName": "",\n  "readAccessInherited": false,\n  "readAdvertiserIds": [],\n  "readWriteAdvertiserId": "",\n  "readWritePartnerId": "",\n  "status": {\n    "configStatus": "",\n    "entityPauseReason": "",\n    "entityStatus": ""\n  },\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "defaultAdvertiserId": "",
  "defaultCampaignId": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "legacyGuaranteedOrderId": "",
  "name": "",
  "publisherName": "",
  "readAccessInherited": false,
  "readAdvertiserIds": [],
  "readWriteAdvertiserId": "",
  "readWritePartnerId": "",
  "status": [
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": ""
  ],
  "updateTime": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/guaranteedOrders/:guaranteedOrderId")! 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()
POST displayvideo.inventorySourceGroups.assignedInventorySources.bulkEdit
{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit
QUERY PARAMS

inventorySourceGroupId
BODY json

{
  "advertiserId": "",
  "createdAssignedInventorySources": [
    {
      "assignedInventorySourceId": "",
      "inventorySourceId": "",
      "name": ""
    }
  ],
  "deletedAssignedInventorySources": [],
  "partnerId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit");

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  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit" {:content-type :json
                                                                                                                               :form-params {:advertiserId ""
                                                                                                                                             :createdAssignedInventorySources [{:assignedInventorySourceId ""
                                                                                                                                                                                :inventorySourceId ""
                                                                                                                                                                                :name ""}]
                                                                                                                                             :deletedAssignedInventorySources []
                                                                                                                                             :partnerId ""}})
require "http/client"

url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\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/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 227

{
  "advertiserId": "",
  "createdAssignedInventorySources": [
    {
      "assignedInventorySourceId": "",
      "inventorySourceId": "",
      "name": ""
    }
  ],
  "deletedAssignedInventorySources": [],
  "partnerId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\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  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  createdAssignedInventorySources: [
    {
      assignedInventorySourceId: '',
      inventorySourceId: '',
      name: ''
    }
  ],
  deletedAssignedInventorySources: [],
  partnerId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    createdAssignedInventorySources: [{assignedInventorySourceId: '', inventorySourceId: '', name: ''}],
    deletedAssignedInventorySources: [],
    partnerId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","createdAssignedInventorySources":[{"assignedInventorySourceId":"","inventorySourceId":"","name":""}],"deletedAssignedInventorySources":[],"partnerId":""}'
};

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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "createdAssignedInventorySources": [\n    {\n      "assignedInventorySourceId": "",\n      "inventorySourceId": "",\n      "name": ""\n    }\n  ],\n  "deletedAssignedInventorySources": [],\n  "partnerId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit")
  .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/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit',
  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({
  advertiserId: '',
  createdAssignedInventorySources: [{assignedInventorySourceId: '', inventorySourceId: '', name: ''}],
  deletedAssignedInventorySources: [],
  partnerId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    createdAssignedInventorySources: [{assignedInventorySourceId: '', inventorySourceId: '', name: ''}],
    deletedAssignedInventorySources: [],
    partnerId: ''
  },
  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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  createdAssignedInventorySources: [
    {
      assignedInventorySourceId: '',
      inventorySourceId: '',
      name: ''
    }
  ],
  deletedAssignedInventorySources: [],
  partnerId: ''
});

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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    createdAssignedInventorySources: [{assignedInventorySourceId: '', inventorySourceId: '', name: ''}],
    deletedAssignedInventorySources: [],
    partnerId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","createdAssignedInventorySources":[{"assignedInventorySourceId":"","inventorySourceId":"","name":""}],"deletedAssignedInventorySources":[],"partnerId":""}'
};

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 = @{ @"advertiserId": @"",
                              @"createdAssignedInventorySources": @[ @{ @"assignedInventorySourceId": @"", @"inventorySourceId": @"", @"name": @"" } ],
                              @"deletedAssignedInventorySources": @[  ],
                              @"partnerId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit"]
                                                       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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit",
  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([
    'advertiserId' => '',
    'createdAssignedInventorySources' => [
        [
                'assignedInventorySourceId' => '',
                'inventorySourceId' => '',
                'name' => ''
        ]
    ],
    'deletedAssignedInventorySources' => [
        
    ],
    'partnerId' => ''
  ]),
  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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit', [
  'body' => '{
  "advertiserId": "",
  "createdAssignedInventorySources": [
    {
      "assignedInventorySourceId": "",
      "inventorySourceId": "",
      "name": ""
    }
  ],
  "deletedAssignedInventorySources": [],
  "partnerId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'createdAssignedInventorySources' => [
    [
        'assignedInventorySourceId' => '',
        'inventorySourceId' => '',
        'name' => ''
    ]
  ],
  'deletedAssignedInventorySources' => [
    
  ],
  'partnerId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'createdAssignedInventorySources' => [
    [
        'assignedInventorySourceId' => '',
        'inventorySourceId' => '',
        'name' => ''
    ]
  ],
  'deletedAssignedInventorySources' => [
    
  ],
  'partnerId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit');
$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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "createdAssignedInventorySources": [
    {
      "assignedInventorySourceId": "",
      "inventorySourceId": "",
      "name": ""
    }
  ],
  "deletedAssignedInventorySources": [],
  "partnerId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "createdAssignedInventorySources": [
    {
      "assignedInventorySourceId": "",
      "inventorySourceId": "",
      "name": ""
    }
  ],
  "deletedAssignedInventorySources": [],
  "partnerId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit"

payload = {
    "advertiserId": "",
    "createdAssignedInventorySources": [
        {
            "assignedInventorySourceId": "",
            "inventorySourceId": "",
            "name": ""
        }
    ],
    "deletedAssignedInventorySources": [],
    "partnerId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit"

payload <- "{\n  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit")

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  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\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/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"createdAssignedInventorySources\": [\n    {\n      \"assignedInventorySourceId\": \"\",\n      \"inventorySourceId\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"deletedAssignedInventorySources\": [],\n  \"partnerId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit";

    let payload = json!({
        "advertiserId": "",
        "createdAssignedInventorySources": (
            json!({
                "assignedInventorySourceId": "",
                "inventorySourceId": "",
                "name": ""
            })
        ),
        "deletedAssignedInventorySources": (),
        "partnerId": ""
    });

    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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "createdAssignedInventorySources": [
    {
      "assignedInventorySourceId": "",
      "inventorySourceId": "",
      "name": ""
    }
  ],
  "deletedAssignedInventorySources": [],
  "partnerId": ""
}'
echo '{
  "advertiserId": "",
  "createdAssignedInventorySources": [
    {
      "assignedInventorySourceId": "",
      "inventorySourceId": "",
      "name": ""
    }
  ],
  "deletedAssignedInventorySources": [],
  "partnerId": ""
}' |  \
  http POST {{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "createdAssignedInventorySources": [\n    {\n      "assignedInventorySourceId": "",\n      "inventorySourceId": "",\n      "name": ""\n    }\n  ],\n  "deletedAssignedInventorySources": [],\n  "partnerId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "createdAssignedInventorySources": [
    [
      "assignedInventorySourceId": "",
      "inventorySourceId": "",
      "name": ""
    ]
  ],
  "deletedAssignedInventorySources": [],
  "partnerId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources:bulkEdit")! 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()
POST displayvideo.inventorySourceGroups.assignedInventorySources.create
{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources
QUERY PARAMS

inventorySourceGroupId
BODY json

{
  "assignedInventorySourceId": "",
  "inventorySourceId": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources");

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  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources" {:content-type :json
                                                                                                                      :form-params {:assignedInventorySourceId ""
                                                                                                                                    :inventorySourceId ""
                                                                                                                                    :name ""}})
require "http/client"

url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"),
    Content = new StringContent("{\n  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"

	payload := strings.NewReader("{\n  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\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/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 78

{
  "assignedInventorySourceId": "",
  "inventorySourceId": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\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  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")
  .header("content-type", "application/json")
  .body("{\n  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  assignedInventorySourceId: '',
  inventorySourceId: '',
  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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources',
  headers: {'content-type': 'application/json'},
  data: {assignedInventorySourceId: '', inventorySourceId: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"assignedInventorySourceId":"","inventorySourceId":"","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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "assignedInventorySourceId": "",\n  "inventorySourceId": "",\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  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")
  .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/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources',
  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({assignedInventorySourceId: '', inventorySourceId: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources',
  headers: {'content-type': 'application/json'},
  body: {assignedInventorySourceId: '', inventorySourceId: '', 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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  assignedInventorySourceId: '',
  inventorySourceId: '',
  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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources',
  headers: {'content-type': 'application/json'},
  data: {assignedInventorySourceId: '', inventorySourceId: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"assignedInventorySourceId":"","inventorySourceId":"","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 = @{ @"assignedInventorySourceId": @"",
                              @"inventorySourceId": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"]
                                                       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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources",
  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([
    'assignedInventorySourceId' => '',
    'inventorySourceId' => '',
    '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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources', [
  'body' => '{
  "assignedInventorySourceId": "",
  "inventorySourceId": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'assignedInventorySourceId' => '',
  'inventorySourceId' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'assignedInventorySourceId' => '',
  'inventorySourceId' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources');
$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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "assignedInventorySourceId": "",
  "inventorySourceId": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "assignedInventorySourceId": "",
  "inventorySourceId": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"

payload = {
    "assignedInventorySourceId": "",
    "inventorySourceId": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"

payload <- "{\n  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")

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  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\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/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources') do |req|
  req.body = "{\n  \"assignedInventorySourceId\": \"\",\n  \"inventorySourceId\": \"\",\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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources";

    let payload = json!({
        "assignedInventorySourceId": "",
        "inventorySourceId": "",
        "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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources \
  --header 'content-type: application/json' \
  --data '{
  "assignedInventorySourceId": "",
  "inventorySourceId": "",
  "name": ""
}'
echo '{
  "assignedInventorySourceId": "",
  "inventorySourceId": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "assignedInventorySourceId": "",\n  "inventorySourceId": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "assignedInventorySourceId": "",
  "inventorySourceId": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")! 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()
DELETE displayvideo.inventorySourceGroups.assignedInventorySources.delete
{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId
QUERY PARAMS

inventorySourceGroupId
assignedInventorySourceId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId")
require "http/client"

url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId"

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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId"

	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/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId"))
    .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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId")
  .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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId';
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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId',
  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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId');

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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId';
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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId"]
                                                       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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId",
  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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId")

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/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId";

    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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId
http DELETE {{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources/:assignedInventorySourceId")! 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 displayvideo.inventorySourceGroups.assignedInventorySources.list
{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources
QUERY PARAMS

inventorySourceGroupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")
require "http/client"

url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"

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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"

	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/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"))
    .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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")
  .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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources';
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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources',
  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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources');

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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources';
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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"]
                                                       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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources",
  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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")

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/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources";

    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}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources
http GET {{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId/assignedInventorySources")! 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 displayvideo.inventorySourceGroups.create
{{baseUrl}}/v2/inventorySourceGroups
BODY json

{
  "displayName": "",
  "inventorySourceGroupId": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/inventorySourceGroups");

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  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/inventorySourceGroups" {:content-type :json
                                                                     :form-params {:displayName ""
                                                                                   :inventorySourceGroupId ""
                                                                                   :name ""}})
require "http/client"

url = "{{baseUrl}}/v2/inventorySourceGroups"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\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}}/v2/inventorySourceGroups"),
    Content = new StringContent("{\n  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\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}}/v2/inventorySourceGroups");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/inventorySourceGroups"

	payload := strings.NewReader("{\n  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\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/v2/inventorySourceGroups HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 69

{
  "displayName": "",
  "inventorySourceGroupId": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/inventorySourceGroups")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/inventorySourceGroups"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\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  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/inventorySourceGroups")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/inventorySourceGroups")
  .header("content-type", "application/json")
  .body("{\n  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  displayName: '',
  inventorySourceGroupId: '',
  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}}/v2/inventorySourceGroups');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/inventorySourceGroups',
  headers: {'content-type': 'application/json'},
  data: {displayName: '', inventorySourceGroupId: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/inventorySourceGroups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"displayName":"","inventorySourceGroupId":"","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}}/v2/inventorySourceGroups',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "displayName": "",\n  "inventorySourceGroupId": "",\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  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/inventorySourceGroups")
  .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/v2/inventorySourceGroups',
  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({displayName: '', inventorySourceGroupId: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/inventorySourceGroups',
  headers: {'content-type': 'application/json'},
  body: {displayName: '', inventorySourceGroupId: '', 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}}/v2/inventorySourceGroups');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  displayName: '',
  inventorySourceGroupId: '',
  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}}/v2/inventorySourceGroups',
  headers: {'content-type': 'application/json'},
  data: {displayName: '', inventorySourceGroupId: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/inventorySourceGroups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"displayName":"","inventorySourceGroupId":"","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 = @{ @"displayName": @"",
                              @"inventorySourceGroupId": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/inventorySourceGroups"]
                                                       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}}/v2/inventorySourceGroups" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/inventorySourceGroups",
  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([
    'displayName' => '',
    'inventorySourceGroupId' => '',
    '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}}/v2/inventorySourceGroups', [
  'body' => '{
  "displayName": "",
  "inventorySourceGroupId": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/inventorySourceGroups');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'displayName' => '',
  'inventorySourceGroupId' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'displayName' => '',
  'inventorySourceGroupId' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/inventorySourceGroups');
$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}}/v2/inventorySourceGroups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "displayName": "",
  "inventorySourceGroupId": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/inventorySourceGroups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "displayName": "",
  "inventorySourceGroupId": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/inventorySourceGroups", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/inventorySourceGroups"

payload = {
    "displayName": "",
    "inventorySourceGroupId": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/inventorySourceGroups"

payload <- "{\n  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\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}}/v2/inventorySourceGroups")

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  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\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/v2/inventorySourceGroups') do |req|
  req.body = "{\n  \"displayName\": \"\",\n  \"inventorySourceGroupId\": \"\",\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}}/v2/inventorySourceGroups";

    let payload = json!({
        "displayName": "",
        "inventorySourceGroupId": "",
        "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}}/v2/inventorySourceGroups \
  --header 'content-type: application/json' \
  --data '{
  "displayName": "",
  "inventorySourceGroupId": "",
  "name": ""
}'
echo '{
  "displayName": "",
  "inventorySourceGroupId": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/v2/inventorySourceGroups \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "displayName": "",\n  "inventorySourceGroupId": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/inventorySourceGroups
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "displayName": "",
  "inventorySourceGroupId": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/inventorySourceGroups")! 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()
DELETE displayvideo.inventorySourceGroups.delete
{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId
QUERY PARAMS

inventorySourceGroupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId")
require "http/client"

url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId"

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}}/v2/inventorySourceGroups/:inventorySourceGroupId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId"

	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/v2/inventorySourceGroups/:inventorySourceGroupId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId"))
    .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}}/v2/inventorySourceGroups/:inventorySourceGroupId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId")
  .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}}/v2/inventorySourceGroups/:inventorySourceGroupId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId';
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}}/v2/inventorySourceGroups/:inventorySourceGroupId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/inventorySourceGroups/:inventorySourceGroupId',
  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}}/v2/inventorySourceGroups/:inventorySourceGroupId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId');

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}}/v2/inventorySourceGroups/:inventorySourceGroupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId';
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}}/v2/inventorySourceGroups/:inventorySourceGroupId"]
                                                       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}}/v2/inventorySourceGroups/:inventorySourceGroupId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId",
  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}}/v2/inventorySourceGroups/:inventorySourceGroupId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v2/inventorySourceGroups/:inventorySourceGroupId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId")

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/v2/inventorySourceGroups/:inventorySourceGroupId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId";

    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}}/v2/inventorySourceGroups/:inventorySourceGroupId
http DELETE {{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId")! 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 displayvideo.inventorySourceGroups.get
{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId
QUERY PARAMS

inventorySourceGroupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId")
require "http/client"

url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId"

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}}/v2/inventorySourceGroups/:inventorySourceGroupId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId"

	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/v2/inventorySourceGroups/:inventorySourceGroupId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId"))
    .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}}/v2/inventorySourceGroups/:inventorySourceGroupId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId")
  .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}}/v2/inventorySourceGroups/:inventorySourceGroupId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId';
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}}/v2/inventorySourceGroups/:inventorySourceGroupId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/inventorySourceGroups/:inventorySourceGroupId',
  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}}/v2/inventorySourceGroups/:inventorySourceGroupId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId');

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}}/v2/inventorySourceGroups/:inventorySourceGroupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId';
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}}/v2/inventorySourceGroups/:inventorySourceGroupId"]
                                                       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}}/v2/inventorySourceGroups/:inventorySourceGroupId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId",
  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}}/v2/inventorySourceGroups/:inventorySourceGroupId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/inventorySourceGroups/:inventorySourceGroupId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId")

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/v2/inventorySourceGroups/:inventorySourceGroupId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId";

    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}}/v2/inventorySourceGroups/:inventorySourceGroupId
http GET {{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/inventorySourceGroups/:inventorySourceGroupId")! 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 displayvideo.inventorySourceGroups.list
{{baseUrl}}/v2/inventorySourceGroups
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/inventorySourceGroups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/inventorySourceGroups")
require "http/client"

url = "{{baseUrl}}/v2/inventorySourceGroups"

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}}/v2/inventorySourceGroups"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/inventorySourceGroups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/inventorySourceGroups"

	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/v2/inventorySourceGroups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/inventorySourceGroups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/inventorySourceGroups"))
    .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}}/v2/inventorySourceGroups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/inventorySourceGroups")
  .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}}/v2/inventorySourceGroups');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/inventorySourceGroups'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/inventorySourceGroups';
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}}/v2/inventorySourceGroups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/inventorySourceGroups")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/inventorySourceGroups',
  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}}/v2/inventorySourceGroups'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/inventorySourceGroups');

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}}/v2/inventorySourceGroups'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/inventorySourceGroups';
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}}/v2/inventorySourceGroups"]
                                                       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}}/v2/inventorySourceGroups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/inventorySourceGroups",
  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}}/v2/inventorySourceGroups');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/inventorySourceGroups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/inventorySourceGroups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/inventorySourceGroups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/inventorySourceGroups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/inventorySourceGroups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/inventorySourceGroups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/inventorySourceGroups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/inventorySourceGroups")

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/v2/inventorySourceGroups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/inventorySourceGroups";

    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}}/v2/inventorySourceGroups
http GET {{baseUrl}}/v2/inventorySourceGroups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/inventorySourceGroups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/inventorySourceGroups")! 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 displayvideo.inventorySources.create
{{baseUrl}}/v2/inventorySources
BODY json

{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/inventorySources");

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  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/inventorySources" {:content-type :json
                                                                :form-params {:commitment ""
                                                                              :creativeConfigs [{:creativeType ""
                                                                                                 :displayCreativeConfig {:creativeSize {:heightPixels 0
                                                                                                                                        :widthPixels 0}}
                                                                                                 :videoCreativeConfig {:duration ""}}]
                                                                              :dealId ""
                                                                              :deliveryMethod ""
                                                                              :displayName ""
                                                                              :exchange ""
                                                                              :guaranteedOrderId ""
                                                                              :inventorySourceId ""
                                                                              :inventorySourceProductType ""
                                                                              :inventorySourceType ""
                                                                              :name ""
                                                                              :publisherName ""
                                                                              :rateDetails {:inventorySourceRateType ""
                                                                                            :minimumSpend {:currencyCode ""
                                                                                                           :nanos 0
                                                                                                           :units ""}
                                                                                            :rate {}
                                                                                            :unitsPurchased ""}
                                                                              :readAdvertiserIds []
                                                                              :readPartnerIds []
                                                                              :readWriteAccessors {:advertisers {:advertiserIds []}
                                                                                                   :partner {:partnerId ""}}
                                                                              :status {:configStatus ""
                                                                                       :entityPauseReason ""
                                                                                       :entityStatus ""
                                                                                       :sellerPauseReason ""
                                                                                       :sellerStatus ""}
                                                                              :subSitePropertyId ""
                                                                              :timeRange {:endTime ""
                                                                                          :startTime ""}
                                                                              :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v2/inventorySources"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\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}}/v2/inventorySources"),
    Content = new StringContent("{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\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}}/v2/inventorySources");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/inventorySources"

	payload := strings.NewReader("{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\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/v2/inventorySources HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1147

{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/inventorySources")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/inventorySources"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\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  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/inventorySources")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/inventorySources")
  .header("content-type", "application/json")
  .body("{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  commitment: '',
  creativeConfigs: [
    {
      creativeType: '',
      displayCreativeConfig: {
        creativeSize: {
          heightPixels: 0,
          widthPixels: 0
        }
      },
      videoCreativeConfig: {
        duration: ''
      }
    }
  ],
  dealId: '',
  deliveryMethod: '',
  displayName: '',
  exchange: '',
  guaranteedOrderId: '',
  inventorySourceId: '',
  inventorySourceProductType: '',
  inventorySourceType: '',
  name: '',
  publisherName: '',
  rateDetails: {
    inventorySourceRateType: '',
    minimumSpend: {
      currencyCode: '',
      nanos: 0,
      units: ''
    },
    rate: {},
    unitsPurchased: ''
  },
  readAdvertiserIds: [],
  readPartnerIds: [],
  readWriteAccessors: {
    advertisers: {
      advertiserIds: []
    },
    partner: {
      partnerId: ''
    }
  },
  status: {
    configStatus: '',
    entityPauseReason: '',
    entityStatus: '',
    sellerPauseReason: '',
    sellerStatus: ''
  },
  subSitePropertyId: '',
  timeRange: {
    endTime: '',
    startTime: ''
  },
  updateTime: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/inventorySources');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/inventorySources',
  headers: {'content-type': 'application/json'},
  data: {
    commitment: '',
    creativeConfigs: [
      {
        creativeType: '',
        displayCreativeConfig: {creativeSize: {heightPixels: 0, widthPixels: 0}},
        videoCreativeConfig: {duration: ''}
      }
    ],
    dealId: '',
    deliveryMethod: '',
    displayName: '',
    exchange: '',
    guaranteedOrderId: '',
    inventorySourceId: '',
    inventorySourceProductType: '',
    inventorySourceType: '',
    name: '',
    publisherName: '',
    rateDetails: {
      inventorySourceRateType: '',
      minimumSpend: {currencyCode: '', nanos: 0, units: ''},
      rate: {},
      unitsPurchased: ''
    },
    readAdvertiserIds: [],
    readPartnerIds: [],
    readWriteAccessors: {advertisers: {advertiserIds: []}, partner: {partnerId: ''}},
    status: {
      configStatus: '',
      entityPauseReason: '',
      entityStatus: '',
      sellerPauseReason: '',
      sellerStatus: ''
    },
    subSitePropertyId: '',
    timeRange: {endTime: '', startTime: ''},
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/inventorySources';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"commitment":"","creativeConfigs":[{"creativeType":"","displayCreativeConfig":{"creativeSize":{"heightPixels":0,"widthPixels":0}},"videoCreativeConfig":{"duration":""}}],"dealId":"","deliveryMethod":"","displayName":"","exchange":"","guaranteedOrderId":"","inventorySourceId":"","inventorySourceProductType":"","inventorySourceType":"","name":"","publisherName":"","rateDetails":{"inventorySourceRateType":"","minimumSpend":{"currencyCode":"","nanos":0,"units":""},"rate":{},"unitsPurchased":""},"readAdvertiserIds":[],"readPartnerIds":[],"readWriteAccessors":{"advertisers":{"advertiserIds":[]},"partner":{"partnerId":""}},"status":{"configStatus":"","entityPauseReason":"","entityStatus":"","sellerPauseReason":"","sellerStatus":""},"subSitePropertyId":"","timeRange":{"endTime":"","startTime":""},"updateTime":""}'
};

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}}/v2/inventorySources',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "commitment": "",\n  "creativeConfigs": [\n    {\n      "creativeType": "",\n      "displayCreativeConfig": {\n        "creativeSize": {\n          "heightPixels": 0,\n          "widthPixels": 0\n        }\n      },\n      "videoCreativeConfig": {\n        "duration": ""\n      }\n    }\n  ],\n  "dealId": "",\n  "deliveryMethod": "",\n  "displayName": "",\n  "exchange": "",\n  "guaranteedOrderId": "",\n  "inventorySourceId": "",\n  "inventorySourceProductType": "",\n  "inventorySourceType": "",\n  "name": "",\n  "publisherName": "",\n  "rateDetails": {\n    "inventorySourceRateType": "",\n    "minimumSpend": {\n      "currencyCode": "",\n      "nanos": 0,\n      "units": ""\n    },\n    "rate": {},\n    "unitsPurchased": ""\n  },\n  "readAdvertiserIds": [],\n  "readPartnerIds": [],\n  "readWriteAccessors": {\n    "advertisers": {\n      "advertiserIds": []\n    },\n    "partner": {\n      "partnerId": ""\n    }\n  },\n  "status": {\n    "configStatus": "",\n    "entityPauseReason": "",\n    "entityStatus": "",\n    "sellerPauseReason": "",\n    "sellerStatus": ""\n  },\n  "subSitePropertyId": "",\n  "timeRange": {\n    "endTime": "",\n    "startTime": ""\n  },\n  "updateTime": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/inventorySources")
  .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/v2/inventorySources',
  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({
  commitment: '',
  creativeConfigs: [
    {
      creativeType: '',
      displayCreativeConfig: {creativeSize: {heightPixels: 0, widthPixels: 0}},
      videoCreativeConfig: {duration: ''}
    }
  ],
  dealId: '',
  deliveryMethod: '',
  displayName: '',
  exchange: '',
  guaranteedOrderId: '',
  inventorySourceId: '',
  inventorySourceProductType: '',
  inventorySourceType: '',
  name: '',
  publisherName: '',
  rateDetails: {
    inventorySourceRateType: '',
    minimumSpend: {currencyCode: '', nanos: 0, units: ''},
    rate: {},
    unitsPurchased: ''
  },
  readAdvertiserIds: [],
  readPartnerIds: [],
  readWriteAccessors: {advertisers: {advertiserIds: []}, partner: {partnerId: ''}},
  status: {
    configStatus: '',
    entityPauseReason: '',
    entityStatus: '',
    sellerPauseReason: '',
    sellerStatus: ''
  },
  subSitePropertyId: '',
  timeRange: {endTime: '', startTime: ''},
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/inventorySources',
  headers: {'content-type': 'application/json'},
  body: {
    commitment: '',
    creativeConfigs: [
      {
        creativeType: '',
        displayCreativeConfig: {creativeSize: {heightPixels: 0, widthPixels: 0}},
        videoCreativeConfig: {duration: ''}
      }
    ],
    dealId: '',
    deliveryMethod: '',
    displayName: '',
    exchange: '',
    guaranteedOrderId: '',
    inventorySourceId: '',
    inventorySourceProductType: '',
    inventorySourceType: '',
    name: '',
    publisherName: '',
    rateDetails: {
      inventorySourceRateType: '',
      minimumSpend: {currencyCode: '', nanos: 0, units: ''},
      rate: {},
      unitsPurchased: ''
    },
    readAdvertiserIds: [],
    readPartnerIds: [],
    readWriteAccessors: {advertisers: {advertiserIds: []}, partner: {partnerId: ''}},
    status: {
      configStatus: '',
      entityPauseReason: '',
      entityStatus: '',
      sellerPauseReason: '',
      sellerStatus: ''
    },
    subSitePropertyId: '',
    timeRange: {endTime: '', startTime: ''},
    updateTime: ''
  },
  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}}/v2/inventorySources');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  commitment: '',
  creativeConfigs: [
    {
      creativeType: '',
      displayCreativeConfig: {
        creativeSize: {
          heightPixels: 0,
          widthPixels: 0
        }
      },
      videoCreativeConfig: {
        duration: ''
      }
    }
  ],
  dealId: '',
  deliveryMethod: '',
  displayName: '',
  exchange: '',
  guaranteedOrderId: '',
  inventorySourceId: '',
  inventorySourceProductType: '',
  inventorySourceType: '',
  name: '',
  publisherName: '',
  rateDetails: {
    inventorySourceRateType: '',
    minimumSpend: {
      currencyCode: '',
      nanos: 0,
      units: ''
    },
    rate: {},
    unitsPurchased: ''
  },
  readAdvertiserIds: [],
  readPartnerIds: [],
  readWriteAccessors: {
    advertisers: {
      advertiserIds: []
    },
    partner: {
      partnerId: ''
    }
  },
  status: {
    configStatus: '',
    entityPauseReason: '',
    entityStatus: '',
    sellerPauseReason: '',
    sellerStatus: ''
  },
  subSitePropertyId: '',
  timeRange: {
    endTime: '',
    startTime: ''
  },
  updateTime: ''
});

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}}/v2/inventorySources',
  headers: {'content-type': 'application/json'},
  data: {
    commitment: '',
    creativeConfigs: [
      {
        creativeType: '',
        displayCreativeConfig: {creativeSize: {heightPixels: 0, widthPixels: 0}},
        videoCreativeConfig: {duration: ''}
      }
    ],
    dealId: '',
    deliveryMethod: '',
    displayName: '',
    exchange: '',
    guaranteedOrderId: '',
    inventorySourceId: '',
    inventorySourceProductType: '',
    inventorySourceType: '',
    name: '',
    publisherName: '',
    rateDetails: {
      inventorySourceRateType: '',
      minimumSpend: {currencyCode: '', nanos: 0, units: ''},
      rate: {},
      unitsPurchased: ''
    },
    readAdvertiserIds: [],
    readPartnerIds: [],
    readWriteAccessors: {advertisers: {advertiserIds: []}, partner: {partnerId: ''}},
    status: {
      configStatus: '',
      entityPauseReason: '',
      entityStatus: '',
      sellerPauseReason: '',
      sellerStatus: ''
    },
    subSitePropertyId: '',
    timeRange: {endTime: '', startTime: ''},
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/inventorySources';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"commitment":"","creativeConfigs":[{"creativeType":"","displayCreativeConfig":{"creativeSize":{"heightPixels":0,"widthPixels":0}},"videoCreativeConfig":{"duration":""}}],"dealId":"","deliveryMethod":"","displayName":"","exchange":"","guaranteedOrderId":"","inventorySourceId":"","inventorySourceProductType":"","inventorySourceType":"","name":"","publisherName":"","rateDetails":{"inventorySourceRateType":"","minimumSpend":{"currencyCode":"","nanos":0,"units":""},"rate":{},"unitsPurchased":""},"readAdvertiserIds":[],"readPartnerIds":[],"readWriteAccessors":{"advertisers":{"advertiserIds":[]},"partner":{"partnerId":""}},"status":{"configStatus":"","entityPauseReason":"","entityStatus":"","sellerPauseReason":"","sellerStatus":""},"subSitePropertyId":"","timeRange":{"endTime":"","startTime":""},"updateTime":""}'
};

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 = @{ @"commitment": @"",
                              @"creativeConfigs": @[ @{ @"creativeType": @"", @"displayCreativeConfig": @{ @"creativeSize": @{ @"heightPixels": @0, @"widthPixels": @0 } }, @"videoCreativeConfig": @{ @"duration": @"" } } ],
                              @"dealId": @"",
                              @"deliveryMethod": @"",
                              @"displayName": @"",
                              @"exchange": @"",
                              @"guaranteedOrderId": @"",
                              @"inventorySourceId": @"",
                              @"inventorySourceProductType": @"",
                              @"inventorySourceType": @"",
                              @"name": @"",
                              @"publisherName": @"",
                              @"rateDetails": @{ @"inventorySourceRateType": @"", @"minimumSpend": @{ @"currencyCode": @"", @"nanos": @0, @"units": @"" }, @"rate": @{  }, @"unitsPurchased": @"" },
                              @"readAdvertiserIds": @[  ],
                              @"readPartnerIds": @[  ],
                              @"readWriteAccessors": @{ @"advertisers": @{ @"advertiserIds": @[  ] }, @"partner": @{ @"partnerId": @"" } },
                              @"status": @{ @"configStatus": @"", @"entityPauseReason": @"", @"entityStatus": @"", @"sellerPauseReason": @"", @"sellerStatus": @"" },
                              @"subSitePropertyId": @"",
                              @"timeRange": @{ @"endTime": @"", @"startTime": @"" },
                              @"updateTime": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/inventorySources"]
                                                       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}}/v2/inventorySources" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/inventorySources",
  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([
    'commitment' => '',
    'creativeConfigs' => [
        [
                'creativeType' => '',
                'displayCreativeConfig' => [
                                'creativeSize' => [
                                                                'heightPixels' => 0,
                                                                'widthPixels' => 0
                                ]
                ],
                'videoCreativeConfig' => [
                                'duration' => ''
                ]
        ]
    ],
    'dealId' => '',
    'deliveryMethod' => '',
    'displayName' => '',
    'exchange' => '',
    'guaranteedOrderId' => '',
    'inventorySourceId' => '',
    'inventorySourceProductType' => '',
    'inventorySourceType' => '',
    'name' => '',
    'publisherName' => '',
    'rateDetails' => [
        'inventorySourceRateType' => '',
        'minimumSpend' => [
                'currencyCode' => '',
                'nanos' => 0,
                'units' => ''
        ],
        'rate' => [
                
        ],
        'unitsPurchased' => ''
    ],
    'readAdvertiserIds' => [
        
    ],
    'readPartnerIds' => [
        
    ],
    'readWriteAccessors' => [
        'advertisers' => [
                'advertiserIds' => [
                                
                ]
        ],
        'partner' => [
                'partnerId' => ''
        ]
    ],
    'status' => [
        'configStatus' => '',
        'entityPauseReason' => '',
        'entityStatus' => '',
        'sellerPauseReason' => '',
        'sellerStatus' => ''
    ],
    'subSitePropertyId' => '',
    'timeRange' => [
        'endTime' => '',
        'startTime' => ''
    ],
    'updateTime' => ''
  ]),
  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}}/v2/inventorySources', [
  'body' => '{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/inventorySources');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'commitment' => '',
  'creativeConfigs' => [
    [
        'creativeType' => '',
        'displayCreativeConfig' => [
                'creativeSize' => [
                                'heightPixels' => 0,
                                'widthPixels' => 0
                ]
        ],
        'videoCreativeConfig' => [
                'duration' => ''
        ]
    ]
  ],
  'dealId' => '',
  'deliveryMethod' => '',
  'displayName' => '',
  'exchange' => '',
  'guaranteedOrderId' => '',
  'inventorySourceId' => '',
  'inventorySourceProductType' => '',
  'inventorySourceType' => '',
  'name' => '',
  'publisherName' => '',
  'rateDetails' => [
    'inventorySourceRateType' => '',
    'minimumSpend' => [
        'currencyCode' => '',
        'nanos' => 0,
        'units' => ''
    ],
    'rate' => [
        
    ],
    'unitsPurchased' => ''
  ],
  'readAdvertiserIds' => [
    
  ],
  'readPartnerIds' => [
    
  ],
  'readWriteAccessors' => [
    'advertisers' => [
        'advertiserIds' => [
                
        ]
    ],
    'partner' => [
        'partnerId' => ''
    ]
  ],
  'status' => [
    'configStatus' => '',
    'entityPauseReason' => '',
    'entityStatus' => '',
    'sellerPauseReason' => '',
    'sellerStatus' => ''
  ],
  'subSitePropertyId' => '',
  'timeRange' => [
    'endTime' => '',
    'startTime' => ''
  ],
  'updateTime' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'commitment' => '',
  'creativeConfigs' => [
    [
        'creativeType' => '',
        'displayCreativeConfig' => [
                'creativeSize' => [
                                'heightPixels' => 0,
                                'widthPixels' => 0
                ]
        ],
        'videoCreativeConfig' => [
                'duration' => ''
        ]
    ]
  ],
  'dealId' => '',
  'deliveryMethod' => '',
  'displayName' => '',
  'exchange' => '',
  'guaranteedOrderId' => '',
  'inventorySourceId' => '',
  'inventorySourceProductType' => '',
  'inventorySourceType' => '',
  'name' => '',
  'publisherName' => '',
  'rateDetails' => [
    'inventorySourceRateType' => '',
    'minimumSpend' => [
        'currencyCode' => '',
        'nanos' => 0,
        'units' => ''
    ],
    'rate' => [
        
    ],
    'unitsPurchased' => ''
  ],
  'readAdvertiserIds' => [
    
  ],
  'readPartnerIds' => [
    
  ],
  'readWriteAccessors' => [
    'advertisers' => [
        'advertiserIds' => [
                
        ]
    ],
    'partner' => [
        'partnerId' => ''
    ]
  ],
  'status' => [
    'configStatus' => '',
    'entityPauseReason' => '',
    'entityStatus' => '',
    'sellerPauseReason' => '',
    'sellerStatus' => ''
  ],
  'subSitePropertyId' => '',
  'timeRange' => [
    'endTime' => '',
    'startTime' => ''
  ],
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/inventorySources');
$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}}/v2/inventorySources' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/inventorySources' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/inventorySources", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/inventorySources"

payload = {
    "commitment": "",
    "creativeConfigs": [
        {
            "creativeType": "",
            "displayCreativeConfig": { "creativeSize": {
                    "heightPixels": 0,
                    "widthPixels": 0
                } },
            "videoCreativeConfig": { "duration": "" }
        }
    ],
    "dealId": "",
    "deliveryMethod": "",
    "displayName": "",
    "exchange": "",
    "guaranteedOrderId": "",
    "inventorySourceId": "",
    "inventorySourceProductType": "",
    "inventorySourceType": "",
    "name": "",
    "publisherName": "",
    "rateDetails": {
        "inventorySourceRateType": "",
        "minimumSpend": {
            "currencyCode": "",
            "nanos": 0,
            "units": ""
        },
        "rate": {},
        "unitsPurchased": ""
    },
    "readAdvertiserIds": [],
    "readPartnerIds": [],
    "readWriteAccessors": {
        "advertisers": { "advertiserIds": [] },
        "partner": { "partnerId": "" }
    },
    "status": {
        "configStatus": "",
        "entityPauseReason": "",
        "entityStatus": "",
        "sellerPauseReason": "",
        "sellerStatus": ""
    },
    "subSitePropertyId": "",
    "timeRange": {
        "endTime": "",
        "startTime": ""
    },
    "updateTime": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/inventorySources"

payload <- "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\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}}/v2/inventorySources")

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  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\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/v2/inventorySources') do |req|
  req.body = "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/inventorySources";

    let payload = json!({
        "commitment": "",
        "creativeConfigs": (
            json!({
                "creativeType": "",
                "displayCreativeConfig": json!({"creativeSize": json!({
                        "heightPixels": 0,
                        "widthPixels": 0
                    })}),
                "videoCreativeConfig": json!({"duration": ""})
            })
        ),
        "dealId": "",
        "deliveryMethod": "",
        "displayName": "",
        "exchange": "",
        "guaranteedOrderId": "",
        "inventorySourceId": "",
        "inventorySourceProductType": "",
        "inventorySourceType": "",
        "name": "",
        "publisherName": "",
        "rateDetails": json!({
            "inventorySourceRateType": "",
            "minimumSpend": json!({
                "currencyCode": "",
                "nanos": 0,
                "units": ""
            }),
            "rate": json!({}),
            "unitsPurchased": ""
        }),
        "readAdvertiserIds": (),
        "readPartnerIds": (),
        "readWriteAccessors": json!({
            "advertisers": json!({"advertiserIds": ()}),
            "partner": json!({"partnerId": ""})
        }),
        "status": json!({
            "configStatus": "",
            "entityPauseReason": "",
            "entityStatus": "",
            "sellerPauseReason": "",
            "sellerStatus": ""
        }),
        "subSitePropertyId": "",
        "timeRange": json!({
            "endTime": "",
            "startTime": ""
        }),
        "updateTime": ""
    });

    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}}/v2/inventorySources \
  --header 'content-type: application/json' \
  --data '{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}'
echo '{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}' |  \
  http POST {{baseUrl}}/v2/inventorySources \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "commitment": "",\n  "creativeConfigs": [\n    {\n      "creativeType": "",\n      "displayCreativeConfig": {\n        "creativeSize": {\n          "heightPixels": 0,\n          "widthPixels": 0\n        }\n      },\n      "videoCreativeConfig": {\n        "duration": ""\n      }\n    }\n  ],\n  "dealId": "",\n  "deliveryMethod": "",\n  "displayName": "",\n  "exchange": "",\n  "guaranteedOrderId": "",\n  "inventorySourceId": "",\n  "inventorySourceProductType": "",\n  "inventorySourceType": "",\n  "name": "",\n  "publisherName": "",\n  "rateDetails": {\n    "inventorySourceRateType": "",\n    "minimumSpend": {\n      "currencyCode": "",\n      "nanos": 0,\n      "units": ""\n    },\n    "rate": {},\n    "unitsPurchased": ""\n  },\n  "readAdvertiserIds": [],\n  "readPartnerIds": [],\n  "readWriteAccessors": {\n    "advertisers": {\n      "advertiserIds": []\n    },\n    "partner": {\n      "partnerId": ""\n    }\n  },\n  "status": {\n    "configStatus": "",\n    "entityPauseReason": "",\n    "entityStatus": "",\n    "sellerPauseReason": "",\n    "sellerStatus": ""\n  },\n  "subSitePropertyId": "",\n  "timeRange": {\n    "endTime": "",\n    "startTime": ""\n  },\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/inventorySources
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "commitment": "",
  "creativeConfigs": [
    [
      "creativeType": "",
      "displayCreativeConfig": ["creativeSize": [
          "heightPixels": 0,
          "widthPixels": 0
        ]],
      "videoCreativeConfig": ["duration": ""]
    ]
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": [
    "inventorySourceRateType": "",
    "minimumSpend": [
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    ],
    "rate": [],
    "unitsPurchased": ""
  ],
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": [
    "advertisers": ["advertiserIds": []],
    "partner": ["partnerId": ""]
  ],
  "status": [
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  ],
  "subSitePropertyId": "",
  "timeRange": [
    "endTime": "",
    "startTime": ""
  ],
  "updateTime": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/inventorySources")! 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()
POST displayvideo.inventorySources.editInventorySourceReadWriteAccessors
{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors
QUERY PARAMS

inventorySourceId
BODY json

{
  "advertisersUpdate": {
    "addedAdvertisers": [],
    "removedAdvertisers": []
  },
  "assignPartner": false,
  "partnerId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors");

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  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors" {:content-type :json
                                                                                                                         :form-params {:advertisersUpdate {:addedAdvertisers []
                                                                                                                                                           :removedAdvertisers []}
                                                                                                                                       :assignPartner false
                                                                                                                                       :partnerId ""}})
require "http/client"

url = "{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\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}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors"),
    Content = new StringContent("{\n  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\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}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors"

	payload := strings.NewReader("{\n  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\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/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 134

{
  "advertisersUpdate": {
    "addedAdvertisers": [],
    "removedAdvertisers": []
  },
  "assignPartner": false,
  "partnerId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\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  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors")
  .header("content-type", "application/json")
  .body("{\n  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertisersUpdate: {
    addedAdvertisers: [],
    removedAdvertisers: []
  },
  assignPartner: false,
  partnerId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors',
  headers: {'content-type': 'application/json'},
  data: {
    advertisersUpdate: {addedAdvertisers: [], removedAdvertisers: []},
    assignPartner: false,
    partnerId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertisersUpdate":{"addedAdvertisers":[],"removedAdvertisers":[]},"assignPartner":false,"partnerId":""}'
};

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}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertisersUpdate": {\n    "addedAdvertisers": [],\n    "removedAdvertisers": []\n  },\n  "assignPartner": false,\n  "partnerId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors")
  .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/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors',
  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({
  advertisersUpdate: {addedAdvertisers: [], removedAdvertisers: []},
  assignPartner: false,
  partnerId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors',
  headers: {'content-type': 'application/json'},
  body: {
    advertisersUpdate: {addedAdvertisers: [], removedAdvertisers: []},
    assignPartner: false,
    partnerId: ''
  },
  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}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertisersUpdate: {
    addedAdvertisers: [],
    removedAdvertisers: []
  },
  assignPartner: false,
  partnerId: ''
});

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}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors',
  headers: {'content-type': 'application/json'},
  data: {
    advertisersUpdate: {addedAdvertisers: [], removedAdvertisers: []},
    assignPartner: false,
    partnerId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertisersUpdate":{"addedAdvertisers":[],"removedAdvertisers":[]},"assignPartner":false,"partnerId":""}'
};

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 = @{ @"advertisersUpdate": @{ @"addedAdvertisers": @[  ], @"removedAdvertisers": @[  ] },
                              @"assignPartner": @NO,
                              @"partnerId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors"]
                                                       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}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors",
  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([
    'advertisersUpdate' => [
        'addedAdvertisers' => [
                
        ],
        'removedAdvertisers' => [
                
        ]
    ],
    'assignPartner' => null,
    'partnerId' => ''
  ]),
  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}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors', [
  'body' => '{
  "advertisersUpdate": {
    "addedAdvertisers": [],
    "removedAdvertisers": []
  },
  "assignPartner": false,
  "partnerId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertisersUpdate' => [
    'addedAdvertisers' => [
        
    ],
    'removedAdvertisers' => [
        
    ]
  ],
  'assignPartner' => null,
  'partnerId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertisersUpdate' => [
    'addedAdvertisers' => [
        
    ],
    'removedAdvertisers' => [
        
    ]
  ],
  'assignPartner' => null,
  'partnerId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors');
$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}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertisersUpdate": {
    "addedAdvertisers": [],
    "removedAdvertisers": []
  },
  "assignPartner": false,
  "partnerId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertisersUpdate": {
    "addedAdvertisers": [],
    "removedAdvertisers": []
  },
  "assignPartner": false,
  "partnerId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors"

payload = {
    "advertisersUpdate": {
        "addedAdvertisers": [],
        "removedAdvertisers": []
    },
    "assignPartner": False,
    "partnerId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors"

payload <- "{\n  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\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}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors")

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  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\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/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors') do |req|
  req.body = "{\n  \"advertisersUpdate\": {\n    \"addedAdvertisers\": [],\n    \"removedAdvertisers\": []\n  },\n  \"assignPartner\": false,\n  \"partnerId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors";

    let payload = json!({
        "advertisersUpdate": json!({
            "addedAdvertisers": (),
            "removedAdvertisers": ()
        }),
        "assignPartner": false,
        "partnerId": ""
    });

    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}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors \
  --header 'content-type: application/json' \
  --data '{
  "advertisersUpdate": {
    "addedAdvertisers": [],
    "removedAdvertisers": []
  },
  "assignPartner": false,
  "partnerId": ""
}'
echo '{
  "advertisersUpdate": {
    "addedAdvertisers": [],
    "removedAdvertisers": []
  },
  "assignPartner": false,
  "partnerId": ""
}' |  \
  http POST {{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertisersUpdate": {\n    "addedAdvertisers": [],\n    "removedAdvertisers": []\n  },\n  "assignPartner": false,\n  "partnerId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertisersUpdate": [
    "addedAdvertisers": [],
    "removedAdvertisers": []
  ],
  "assignPartner": false,
  "partnerId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/inventorySources/:inventorySourceId:editInventorySourceReadWriteAccessors")! 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 displayvideo.inventorySources.get
{{baseUrl}}/v2/inventorySources/:inventorySourceId
QUERY PARAMS

inventorySourceId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/inventorySources/:inventorySourceId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/inventorySources/:inventorySourceId")
require "http/client"

url = "{{baseUrl}}/v2/inventorySources/:inventorySourceId"

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}}/v2/inventorySources/:inventorySourceId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/inventorySources/:inventorySourceId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/inventorySources/:inventorySourceId"

	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/v2/inventorySources/:inventorySourceId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/inventorySources/:inventorySourceId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/inventorySources/:inventorySourceId"))
    .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}}/v2/inventorySources/:inventorySourceId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/inventorySources/:inventorySourceId")
  .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}}/v2/inventorySources/:inventorySourceId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/inventorySources/:inventorySourceId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/inventorySources/:inventorySourceId';
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}}/v2/inventorySources/:inventorySourceId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/inventorySources/:inventorySourceId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/inventorySources/:inventorySourceId',
  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}}/v2/inventorySources/:inventorySourceId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/inventorySources/:inventorySourceId');

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}}/v2/inventorySources/:inventorySourceId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/inventorySources/:inventorySourceId';
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}}/v2/inventorySources/:inventorySourceId"]
                                                       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}}/v2/inventorySources/:inventorySourceId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/inventorySources/:inventorySourceId",
  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}}/v2/inventorySources/:inventorySourceId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/inventorySources/:inventorySourceId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/inventorySources/:inventorySourceId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/inventorySources/:inventorySourceId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/inventorySources/:inventorySourceId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/inventorySources/:inventorySourceId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/inventorySources/:inventorySourceId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/inventorySources/:inventorySourceId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/inventorySources/:inventorySourceId")

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/v2/inventorySources/:inventorySourceId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/inventorySources/:inventorySourceId";

    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}}/v2/inventorySources/:inventorySourceId
http GET {{baseUrl}}/v2/inventorySources/:inventorySourceId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/inventorySources/:inventorySourceId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/inventorySources/:inventorySourceId")! 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 displayvideo.inventorySources.list
{{baseUrl}}/v2/inventorySources
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/inventorySources");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/inventorySources")
require "http/client"

url = "{{baseUrl}}/v2/inventorySources"

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}}/v2/inventorySources"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/inventorySources");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/inventorySources"

	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/v2/inventorySources HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/inventorySources")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/inventorySources"))
    .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}}/v2/inventorySources")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/inventorySources")
  .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}}/v2/inventorySources');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/inventorySources'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/inventorySources';
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}}/v2/inventorySources',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/inventorySources")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/inventorySources',
  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}}/v2/inventorySources'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/inventorySources');

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}}/v2/inventorySources'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/inventorySources';
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}}/v2/inventorySources"]
                                                       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}}/v2/inventorySources" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/inventorySources",
  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}}/v2/inventorySources');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/inventorySources');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/inventorySources');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/inventorySources' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/inventorySources' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/inventorySources")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/inventorySources"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/inventorySources"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/inventorySources")

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/v2/inventorySources') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/inventorySources";

    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}}/v2/inventorySources
http GET {{baseUrl}}/v2/inventorySources
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/inventorySources
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/inventorySources")! 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 displayvideo.inventorySources.patch
{{baseUrl}}/v2/inventorySources/:inventorySourceId
QUERY PARAMS

inventorySourceId
BODY json

{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/inventorySources/:inventorySourceId");

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  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/v2/inventorySources/:inventorySourceId" {:content-type :json
                                                                                    :form-params {:commitment ""
                                                                                                  :creativeConfigs [{:creativeType ""
                                                                                                                     :displayCreativeConfig {:creativeSize {:heightPixels 0
                                                                                                                                                            :widthPixels 0}}
                                                                                                                     :videoCreativeConfig {:duration ""}}]
                                                                                                  :dealId ""
                                                                                                  :deliveryMethod ""
                                                                                                  :displayName ""
                                                                                                  :exchange ""
                                                                                                  :guaranteedOrderId ""
                                                                                                  :inventorySourceId ""
                                                                                                  :inventorySourceProductType ""
                                                                                                  :inventorySourceType ""
                                                                                                  :name ""
                                                                                                  :publisherName ""
                                                                                                  :rateDetails {:inventorySourceRateType ""
                                                                                                                :minimumSpend {:currencyCode ""
                                                                                                                               :nanos 0
                                                                                                                               :units ""}
                                                                                                                :rate {}
                                                                                                                :unitsPurchased ""}
                                                                                                  :readAdvertiserIds []
                                                                                                  :readPartnerIds []
                                                                                                  :readWriteAccessors {:advertisers {:advertiserIds []}
                                                                                                                       :partner {:partnerId ""}}
                                                                                                  :status {:configStatus ""
                                                                                                           :entityPauseReason ""
                                                                                                           :entityStatus ""
                                                                                                           :sellerPauseReason ""
                                                                                                           :sellerStatus ""}
                                                                                                  :subSitePropertyId ""
                                                                                                  :timeRange {:endTime ""
                                                                                                              :startTime ""}
                                                                                                  :updateTime ""}})
require "http/client"

url = "{{baseUrl}}/v2/inventorySources/:inventorySourceId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\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}}/v2/inventorySources/:inventorySourceId"),
    Content = new StringContent("{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\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}}/v2/inventorySources/:inventorySourceId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/inventorySources/:inventorySourceId"

	payload := strings.NewReader("{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\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/v2/inventorySources/:inventorySourceId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1147

{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/inventorySources/:inventorySourceId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/inventorySources/:inventorySourceId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\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  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/inventorySources/:inventorySourceId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/inventorySources/:inventorySourceId")
  .header("content-type", "application/json")
  .body("{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  commitment: '',
  creativeConfigs: [
    {
      creativeType: '',
      displayCreativeConfig: {
        creativeSize: {
          heightPixels: 0,
          widthPixels: 0
        }
      },
      videoCreativeConfig: {
        duration: ''
      }
    }
  ],
  dealId: '',
  deliveryMethod: '',
  displayName: '',
  exchange: '',
  guaranteedOrderId: '',
  inventorySourceId: '',
  inventorySourceProductType: '',
  inventorySourceType: '',
  name: '',
  publisherName: '',
  rateDetails: {
    inventorySourceRateType: '',
    minimumSpend: {
      currencyCode: '',
      nanos: 0,
      units: ''
    },
    rate: {},
    unitsPurchased: ''
  },
  readAdvertiserIds: [],
  readPartnerIds: [],
  readWriteAccessors: {
    advertisers: {
      advertiserIds: []
    },
    partner: {
      partnerId: ''
    }
  },
  status: {
    configStatus: '',
    entityPauseReason: '',
    entityStatus: '',
    sellerPauseReason: '',
    sellerStatus: ''
  },
  subSitePropertyId: '',
  timeRange: {
    endTime: '',
    startTime: ''
  },
  updateTime: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/v2/inventorySources/:inventorySourceId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/inventorySources/:inventorySourceId',
  headers: {'content-type': 'application/json'},
  data: {
    commitment: '',
    creativeConfigs: [
      {
        creativeType: '',
        displayCreativeConfig: {creativeSize: {heightPixels: 0, widthPixels: 0}},
        videoCreativeConfig: {duration: ''}
      }
    ],
    dealId: '',
    deliveryMethod: '',
    displayName: '',
    exchange: '',
    guaranteedOrderId: '',
    inventorySourceId: '',
    inventorySourceProductType: '',
    inventorySourceType: '',
    name: '',
    publisherName: '',
    rateDetails: {
      inventorySourceRateType: '',
      minimumSpend: {currencyCode: '', nanos: 0, units: ''},
      rate: {},
      unitsPurchased: ''
    },
    readAdvertiserIds: [],
    readPartnerIds: [],
    readWriteAccessors: {advertisers: {advertiserIds: []}, partner: {partnerId: ''}},
    status: {
      configStatus: '',
      entityPauseReason: '',
      entityStatus: '',
      sellerPauseReason: '',
      sellerStatus: ''
    },
    subSitePropertyId: '',
    timeRange: {endTime: '', startTime: ''},
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/inventorySources/:inventorySourceId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"commitment":"","creativeConfigs":[{"creativeType":"","displayCreativeConfig":{"creativeSize":{"heightPixels":0,"widthPixels":0}},"videoCreativeConfig":{"duration":""}}],"dealId":"","deliveryMethod":"","displayName":"","exchange":"","guaranteedOrderId":"","inventorySourceId":"","inventorySourceProductType":"","inventorySourceType":"","name":"","publisherName":"","rateDetails":{"inventorySourceRateType":"","minimumSpend":{"currencyCode":"","nanos":0,"units":""},"rate":{},"unitsPurchased":""},"readAdvertiserIds":[],"readPartnerIds":[],"readWriteAccessors":{"advertisers":{"advertiserIds":[]},"partner":{"partnerId":""}},"status":{"configStatus":"","entityPauseReason":"","entityStatus":"","sellerPauseReason":"","sellerStatus":""},"subSitePropertyId":"","timeRange":{"endTime":"","startTime":""},"updateTime":""}'
};

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}}/v2/inventorySources/:inventorySourceId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "commitment": "",\n  "creativeConfigs": [\n    {\n      "creativeType": "",\n      "displayCreativeConfig": {\n        "creativeSize": {\n          "heightPixels": 0,\n          "widthPixels": 0\n        }\n      },\n      "videoCreativeConfig": {\n        "duration": ""\n      }\n    }\n  ],\n  "dealId": "",\n  "deliveryMethod": "",\n  "displayName": "",\n  "exchange": "",\n  "guaranteedOrderId": "",\n  "inventorySourceId": "",\n  "inventorySourceProductType": "",\n  "inventorySourceType": "",\n  "name": "",\n  "publisherName": "",\n  "rateDetails": {\n    "inventorySourceRateType": "",\n    "minimumSpend": {\n      "currencyCode": "",\n      "nanos": 0,\n      "units": ""\n    },\n    "rate": {},\n    "unitsPurchased": ""\n  },\n  "readAdvertiserIds": [],\n  "readPartnerIds": [],\n  "readWriteAccessors": {\n    "advertisers": {\n      "advertiserIds": []\n    },\n    "partner": {\n      "partnerId": ""\n    }\n  },\n  "status": {\n    "configStatus": "",\n    "entityPauseReason": "",\n    "entityStatus": "",\n    "sellerPauseReason": "",\n    "sellerStatus": ""\n  },\n  "subSitePropertyId": "",\n  "timeRange": {\n    "endTime": "",\n    "startTime": ""\n  },\n  "updateTime": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/inventorySources/:inventorySourceId")
  .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/v2/inventorySources/:inventorySourceId',
  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({
  commitment: '',
  creativeConfigs: [
    {
      creativeType: '',
      displayCreativeConfig: {creativeSize: {heightPixels: 0, widthPixels: 0}},
      videoCreativeConfig: {duration: ''}
    }
  ],
  dealId: '',
  deliveryMethod: '',
  displayName: '',
  exchange: '',
  guaranteedOrderId: '',
  inventorySourceId: '',
  inventorySourceProductType: '',
  inventorySourceType: '',
  name: '',
  publisherName: '',
  rateDetails: {
    inventorySourceRateType: '',
    minimumSpend: {currencyCode: '', nanos: 0, units: ''},
    rate: {},
    unitsPurchased: ''
  },
  readAdvertiserIds: [],
  readPartnerIds: [],
  readWriteAccessors: {advertisers: {advertiserIds: []}, partner: {partnerId: ''}},
  status: {
    configStatus: '',
    entityPauseReason: '',
    entityStatus: '',
    sellerPauseReason: '',
    sellerStatus: ''
  },
  subSitePropertyId: '',
  timeRange: {endTime: '', startTime: ''},
  updateTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/inventorySources/:inventorySourceId',
  headers: {'content-type': 'application/json'},
  body: {
    commitment: '',
    creativeConfigs: [
      {
        creativeType: '',
        displayCreativeConfig: {creativeSize: {heightPixels: 0, widthPixels: 0}},
        videoCreativeConfig: {duration: ''}
      }
    ],
    dealId: '',
    deliveryMethod: '',
    displayName: '',
    exchange: '',
    guaranteedOrderId: '',
    inventorySourceId: '',
    inventorySourceProductType: '',
    inventorySourceType: '',
    name: '',
    publisherName: '',
    rateDetails: {
      inventorySourceRateType: '',
      minimumSpend: {currencyCode: '', nanos: 0, units: ''},
      rate: {},
      unitsPurchased: ''
    },
    readAdvertiserIds: [],
    readPartnerIds: [],
    readWriteAccessors: {advertisers: {advertiserIds: []}, partner: {partnerId: ''}},
    status: {
      configStatus: '',
      entityPauseReason: '',
      entityStatus: '',
      sellerPauseReason: '',
      sellerStatus: ''
    },
    subSitePropertyId: '',
    timeRange: {endTime: '', startTime: ''},
    updateTime: ''
  },
  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}}/v2/inventorySources/:inventorySourceId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  commitment: '',
  creativeConfigs: [
    {
      creativeType: '',
      displayCreativeConfig: {
        creativeSize: {
          heightPixels: 0,
          widthPixels: 0
        }
      },
      videoCreativeConfig: {
        duration: ''
      }
    }
  ],
  dealId: '',
  deliveryMethod: '',
  displayName: '',
  exchange: '',
  guaranteedOrderId: '',
  inventorySourceId: '',
  inventorySourceProductType: '',
  inventorySourceType: '',
  name: '',
  publisherName: '',
  rateDetails: {
    inventorySourceRateType: '',
    minimumSpend: {
      currencyCode: '',
      nanos: 0,
      units: ''
    },
    rate: {},
    unitsPurchased: ''
  },
  readAdvertiserIds: [],
  readPartnerIds: [],
  readWriteAccessors: {
    advertisers: {
      advertiserIds: []
    },
    partner: {
      partnerId: ''
    }
  },
  status: {
    configStatus: '',
    entityPauseReason: '',
    entityStatus: '',
    sellerPauseReason: '',
    sellerStatus: ''
  },
  subSitePropertyId: '',
  timeRange: {
    endTime: '',
    startTime: ''
  },
  updateTime: ''
});

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}}/v2/inventorySources/:inventorySourceId',
  headers: {'content-type': 'application/json'},
  data: {
    commitment: '',
    creativeConfigs: [
      {
        creativeType: '',
        displayCreativeConfig: {creativeSize: {heightPixels: 0, widthPixels: 0}},
        videoCreativeConfig: {duration: ''}
      }
    ],
    dealId: '',
    deliveryMethod: '',
    displayName: '',
    exchange: '',
    guaranteedOrderId: '',
    inventorySourceId: '',
    inventorySourceProductType: '',
    inventorySourceType: '',
    name: '',
    publisherName: '',
    rateDetails: {
      inventorySourceRateType: '',
      minimumSpend: {currencyCode: '', nanos: 0, units: ''},
      rate: {},
      unitsPurchased: ''
    },
    readAdvertiserIds: [],
    readPartnerIds: [],
    readWriteAccessors: {advertisers: {advertiserIds: []}, partner: {partnerId: ''}},
    status: {
      configStatus: '',
      entityPauseReason: '',
      entityStatus: '',
      sellerPauseReason: '',
      sellerStatus: ''
    },
    subSitePropertyId: '',
    timeRange: {endTime: '', startTime: ''},
    updateTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/inventorySources/:inventorySourceId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"commitment":"","creativeConfigs":[{"creativeType":"","displayCreativeConfig":{"creativeSize":{"heightPixels":0,"widthPixels":0}},"videoCreativeConfig":{"duration":""}}],"dealId":"","deliveryMethod":"","displayName":"","exchange":"","guaranteedOrderId":"","inventorySourceId":"","inventorySourceProductType":"","inventorySourceType":"","name":"","publisherName":"","rateDetails":{"inventorySourceRateType":"","minimumSpend":{"currencyCode":"","nanos":0,"units":""},"rate":{},"unitsPurchased":""},"readAdvertiserIds":[],"readPartnerIds":[],"readWriteAccessors":{"advertisers":{"advertiserIds":[]},"partner":{"partnerId":""}},"status":{"configStatus":"","entityPauseReason":"","entityStatus":"","sellerPauseReason":"","sellerStatus":""},"subSitePropertyId":"","timeRange":{"endTime":"","startTime":""},"updateTime":""}'
};

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 = @{ @"commitment": @"",
                              @"creativeConfigs": @[ @{ @"creativeType": @"", @"displayCreativeConfig": @{ @"creativeSize": @{ @"heightPixels": @0, @"widthPixels": @0 } }, @"videoCreativeConfig": @{ @"duration": @"" } } ],
                              @"dealId": @"",
                              @"deliveryMethod": @"",
                              @"displayName": @"",
                              @"exchange": @"",
                              @"guaranteedOrderId": @"",
                              @"inventorySourceId": @"",
                              @"inventorySourceProductType": @"",
                              @"inventorySourceType": @"",
                              @"name": @"",
                              @"publisherName": @"",
                              @"rateDetails": @{ @"inventorySourceRateType": @"", @"minimumSpend": @{ @"currencyCode": @"", @"nanos": @0, @"units": @"" }, @"rate": @{  }, @"unitsPurchased": @"" },
                              @"readAdvertiserIds": @[  ],
                              @"readPartnerIds": @[  ],
                              @"readWriteAccessors": @{ @"advertisers": @{ @"advertiserIds": @[  ] }, @"partner": @{ @"partnerId": @"" } },
                              @"status": @{ @"configStatus": @"", @"entityPauseReason": @"", @"entityStatus": @"", @"sellerPauseReason": @"", @"sellerStatus": @"" },
                              @"subSitePropertyId": @"",
                              @"timeRange": @{ @"endTime": @"", @"startTime": @"" },
                              @"updateTime": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/inventorySources/:inventorySourceId"]
                                                       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}}/v2/inventorySources/:inventorySourceId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/inventorySources/:inventorySourceId",
  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([
    'commitment' => '',
    'creativeConfigs' => [
        [
                'creativeType' => '',
                'displayCreativeConfig' => [
                                'creativeSize' => [
                                                                'heightPixels' => 0,
                                                                'widthPixels' => 0
                                ]
                ],
                'videoCreativeConfig' => [
                                'duration' => ''
                ]
        ]
    ],
    'dealId' => '',
    'deliveryMethod' => '',
    'displayName' => '',
    'exchange' => '',
    'guaranteedOrderId' => '',
    'inventorySourceId' => '',
    'inventorySourceProductType' => '',
    'inventorySourceType' => '',
    'name' => '',
    'publisherName' => '',
    'rateDetails' => [
        'inventorySourceRateType' => '',
        'minimumSpend' => [
                'currencyCode' => '',
                'nanos' => 0,
                'units' => ''
        ],
        'rate' => [
                
        ],
        'unitsPurchased' => ''
    ],
    'readAdvertiserIds' => [
        
    ],
    'readPartnerIds' => [
        
    ],
    'readWriteAccessors' => [
        'advertisers' => [
                'advertiserIds' => [
                                
                ]
        ],
        'partner' => [
                'partnerId' => ''
        ]
    ],
    'status' => [
        'configStatus' => '',
        'entityPauseReason' => '',
        'entityStatus' => '',
        'sellerPauseReason' => '',
        'sellerStatus' => ''
    ],
    'subSitePropertyId' => '',
    'timeRange' => [
        'endTime' => '',
        'startTime' => ''
    ],
    'updateTime' => ''
  ]),
  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}}/v2/inventorySources/:inventorySourceId', [
  'body' => '{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/inventorySources/:inventorySourceId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'commitment' => '',
  'creativeConfigs' => [
    [
        'creativeType' => '',
        'displayCreativeConfig' => [
                'creativeSize' => [
                                'heightPixels' => 0,
                                'widthPixels' => 0
                ]
        ],
        'videoCreativeConfig' => [
                'duration' => ''
        ]
    ]
  ],
  'dealId' => '',
  'deliveryMethod' => '',
  'displayName' => '',
  'exchange' => '',
  'guaranteedOrderId' => '',
  'inventorySourceId' => '',
  'inventorySourceProductType' => '',
  'inventorySourceType' => '',
  'name' => '',
  'publisherName' => '',
  'rateDetails' => [
    'inventorySourceRateType' => '',
    'minimumSpend' => [
        'currencyCode' => '',
        'nanos' => 0,
        'units' => ''
    ],
    'rate' => [
        
    ],
    'unitsPurchased' => ''
  ],
  'readAdvertiserIds' => [
    
  ],
  'readPartnerIds' => [
    
  ],
  'readWriteAccessors' => [
    'advertisers' => [
        'advertiserIds' => [
                
        ]
    ],
    'partner' => [
        'partnerId' => ''
    ]
  ],
  'status' => [
    'configStatus' => '',
    'entityPauseReason' => '',
    'entityStatus' => '',
    'sellerPauseReason' => '',
    'sellerStatus' => ''
  ],
  'subSitePropertyId' => '',
  'timeRange' => [
    'endTime' => '',
    'startTime' => ''
  ],
  'updateTime' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'commitment' => '',
  'creativeConfigs' => [
    [
        'creativeType' => '',
        'displayCreativeConfig' => [
                'creativeSize' => [
                                'heightPixels' => 0,
                                'widthPixels' => 0
                ]
        ],
        'videoCreativeConfig' => [
                'duration' => ''
        ]
    ]
  ],
  'dealId' => '',
  'deliveryMethod' => '',
  'displayName' => '',
  'exchange' => '',
  'guaranteedOrderId' => '',
  'inventorySourceId' => '',
  'inventorySourceProductType' => '',
  'inventorySourceType' => '',
  'name' => '',
  'publisherName' => '',
  'rateDetails' => [
    'inventorySourceRateType' => '',
    'minimumSpend' => [
        'currencyCode' => '',
        'nanos' => 0,
        'units' => ''
    ],
    'rate' => [
        
    ],
    'unitsPurchased' => ''
  ],
  'readAdvertiserIds' => [
    
  ],
  'readPartnerIds' => [
    
  ],
  'readWriteAccessors' => [
    'advertisers' => [
        'advertiserIds' => [
                
        ]
    ],
    'partner' => [
        'partnerId' => ''
    ]
  ],
  'status' => [
    'configStatus' => '',
    'entityPauseReason' => '',
    'entityStatus' => '',
    'sellerPauseReason' => '',
    'sellerStatus' => ''
  ],
  'subSitePropertyId' => '',
  'timeRange' => [
    'endTime' => '',
    'startTime' => ''
  ],
  'updateTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/inventorySources/:inventorySourceId');
$request->setRequestMethod('PATCH');
$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}}/v2/inventorySources/:inventorySourceId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/inventorySources/:inventorySourceId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/v2/inventorySources/:inventorySourceId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/inventorySources/:inventorySourceId"

payload = {
    "commitment": "",
    "creativeConfigs": [
        {
            "creativeType": "",
            "displayCreativeConfig": { "creativeSize": {
                    "heightPixels": 0,
                    "widthPixels": 0
                } },
            "videoCreativeConfig": { "duration": "" }
        }
    ],
    "dealId": "",
    "deliveryMethod": "",
    "displayName": "",
    "exchange": "",
    "guaranteedOrderId": "",
    "inventorySourceId": "",
    "inventorySourceProductType": "",
    "inventorySourceType": "",
    "name": "",
    "publisherName": "",
    "rateDetails": {
        "inventorySourceRateType": "",
        "minimumSpend": {
            "currencyCode": "",
            "nanos": 0,
            "units": ""
        },
        "rate": {},
        "unitsPurchased": ""
    },
    "readAdvertiserIds": [],
    "readPartnerIds": [],
    "readWriteAccessors": {
        "advertisers": { "advertiserIds": [] },
        "partner": { "partnerId": "" }
    },
    "status": {
        "configStatus": "",
        "entityPauseReason": "",
        "entityStatus": "",
        "sellerPauseReason": "",
        "sellerStatus": ""
    },
    "subSitePropertyId": "",
    "timeRange": {
        "endTime": "",
        "startTime": ""
    },
    "updateTime": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/inventorySources/:inventorySourceId"

payload <- "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/inventorySources/:inventorySourceId")

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  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\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/v2/inventorySources/:inventorySourceId') do |req|
  req.body = "{\n  \"commitment\": \"\",\n  \"creativeConfigs\": [\n    {\n      \"creativeType\": \"\",\n      \"displayCreativeConfig\": {\n        \"creativeSize\": {\n          \"heightPixels\": 0,\n          \"widthPixels\": 0\n        }\n      },\n      \"videoCreativeConfig\": {\n        \"duration\": \"\"\n      }\n    }\n  ],\n  \"dealId\": \"\",\n  \"deliveryMethod\": \"\",\n  \"displayName\": \"\",\n  \"exchange\": \"\",\n  \"guaranteedOrderId\": \"\",\n  \"inventorySourceId\": \"\",\n  \"inventorySourceProductType\": \"\",\n  \"inventorySourceType\": \"\",\n  \"name\": \"\",\n  \"publisherName\": \"\",\n  \"rateDetails\": {\n    \"inventorySourceRateType\": \"\",\n    \"minimumSpend\": {\n      \"currencyCode\": \"\",\n      \"nanos\": 0,\n      \"units\": \"\"\n    },\n    \"rate\": {},\n    \"unitsPurchased\": \"\"\n  },\n  \"readAdvertiserIds\": [],\n  \"readPartnerIds\": [],\n  \"readWriteAccessors\": {\n    \"advertisers\": {\n      \"advertiserIds\": []\n    },\n    \"partner\": {\n      \"partnerId\": \"\"\n    }\n  },\n  \"status\": {\n    \"configStatus\": \"\",\n    \"entityPauseReason\": \"\",\n    \"entityStatus\": \"\",\n    \"sellerPauseReason\": \"\",\n    \"sellerStatus\": \"\"\n  },\n  \"subSitePropertyId\": \"\",\n  \"timeRange\": {\n    \"endTime\": \"\",\n    \"startTime\": \"\"\n  },\n  \"updateTime\": \"\"\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}}/v2/inventorySources/:inventorySourceId";

    let payload = json!({
        "commitment": "",
        "creativeConfigs": (
            json!({
                "creativeType": "",
                "displayCreativeConfig": json!({"creativeSize": json!({
                        "heightPixels": 0,
                        "widthPixels": 0
                    })}),
                "videoCreativeConfig": json!({"duration": ""})
            })
        ),
        "dealId": "",
        "deliveryMethod": "",
        "displayName": "",
        "exchange": "",
        "guaranteedOrderId": "",
        "inventorySourceId": "",
        "inventorySourceProductType": "",
        "inventorySourceType": "",
        "name": "",
        "publisherName": "",
        "rateDetails": json!({
            "inventorySourceRateType": "",
            "minimumSpend": json!({
                "currencyCode": "",
                "nanos": 0,
                "units": ""
            }),
            "rate": json!({}),
            "unitsPurchased": ""
        }),
        "readAdvertiserIds": (),
        "readPartnerIds": (),
        "readWriteAccessors": json!({
            "advertisers": json!({"advertiserIds": ()}),
            "partner": json!({"partnerId": ""})
        }),
        "status": json!({
            "configStatus": "",
            "entityPauseReason": "",
            "entityStatus": "",
            "sellerPauseReason": "",
            "sellerStatus": ""
        }),
        "subSitePropertyId": "",
        "timeRange": json!({
            "endTime": "",
            "startTime": ""
        }),
        "updateTime": ""
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/inventorySources/:inventorySourceId \
  --header 'content-type: application/json' \
  --data '{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}'
echo '{
  "commitment": "",
  "creativeConfigs": [
    {
      "creativeType": "",
      "displayCreativeConfig": {
        "creativeSize": {
          "heightPixels": 0,
          "widthPixels": 0
        }
      },
      "videoCreativeConfig": {
        "duration": ""
      }
    }
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": {
    "inventorySourceRateType": "",
    "minimumSpend": {
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    },
    "rate": {},
    "unitsPurchased": ""
  },
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": {
    "advertisers": {
      "advertiserIds": []
    },
    "partner": {
      "partnerId": ""
    }
  },
  "status": {
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  },
  "subSitePropertyId": "",
  "timeRange": {
    "endTime": "",
    "startTime": ""
  },
  "updateTime": ""
}' |  \
  http PATCH {{baseUrl}}/v2/inventorySources/:inventorySourceId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "commitment": "",\n  "creativeConfigs": [\n    {\n      "creativeType": "",\n      "displayCreativeConfig": {\n        "creativeSize": {\n          "heightPixels": 0,\n          "widthPixels": 0\n        }\n      },\n      "videoCreativeConfig": {\n        "duration": ""\n      }\n    }\n  ],\n  "dealId": "",\n  "deliveryMethod": "",\n  "displayName": "",\n  "exchange": "",\n  "guaranteedOrderId": "",\n  "inventorySourceId": "",\n  "inventorySourceProductType": "",\n  "inventorySourceType": "",\n  "name": "",\n  "publisherName": "",\n  "rateDetails": {\n    "inventorySourceRateType": "",\n    "minimumSpend": {\n      "currencyCode": "",\n      "nanos": 0,\n      "units": ""\n    },\n    "rate": {},\n    "unitsPurchased": ""\n  },\n  "readAdvertiserIds": [],\n  "readPartnerIds": [],\n  "readWriteAccessors": {\n    "advertisers": {\n      "advertiserIds": []\n    },\n    "partner": {\n      "partnerId": ""\n    }\n  },\n  "status": {\n    "configStatus": "",\n    "entityPauseReason": "",\n    "entityStatus": "",\n    "sellerPauseReason": "",\n    "sellerStatus": ""\n  },\n  "subSitePropertyId": "",\n  "timeRange": {\n    "endTime": "",\n    "startTime": ""\n  },\n  "updateTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/inventorySources/:inventorySourceId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "commitment": "",
  "creativeConfigs": [
    [
      "creativeType": "",
      "displayCreativeConfig": ["creativeSize": [
          "heightPixels": 0,
          "widthPixels": 0
        ]],
      "videoCreativeConfig": ["duration": ""]
    ]
  ],
  "dealId": "",
  "deliveryMethod": "",
  "displayName": "",
  "exchange": "",
  "guaranteedOrderId": "",
  "inventorySourceId": "",
  "inventorySourceProductType": "",
  "inventorySourceType": "",
  "name": "",
  "publisherName": "",
  "rateDetails": [
    "inventorySourceRateType": "",
    "minimumSpend": [
      "currencyCode": "",
      "nanos": 0,
      "units": ""
    ],
    "rate": [],
    "unitsPurchased": ""
  ],
  "readAdvertiserIds": [],
  "readPartnerIds": [],
  "readWriteAccessors": [
    "advertisers": ["advertiserIds": []],
    "partner": ["partnerId": ""]
  ],
  "status": [
    "configStatus": "",
    "entityPauseReason": "",
    "entityStatus": "",
    "sellerPauseReason": "",
    "sellerStatus": ""
  ],
  "subSitePropertyId": "",
  "timeRange": [
    "endTime": "",
    "startTime": ""
  ],
  "updateTime": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/inventorySources/:inventorySourceId")! 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()
GET displayvideo.media.download
{{baseUrl}}/download/:resourceName
QUERY PARAMS

resourceName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/download/:resourceName");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/download/:resourceName")
require "http/client"

url = "{{baseUrl}}/download/:resourceName"

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}}/download/:resourceName"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/download/:resourceName");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/download/:resourceName"

	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/download/:resourceName HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/download/:resourceName")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/download/:resourceName"))
    .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}}/download/:resourceName")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/download/:resourceName")
  .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}}/download/:resourceName');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/download/:resourceName'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/download/:resourceName';
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}}/download/:resourceName',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/download/:resourceName")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/download/:resourceName',
  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}}/download/:resourceName'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/download/:resourceName');

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}}/download/:resourceName'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/download/:resourceName';
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}}/download/:resourceName"]
                                                       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}}/download/:resourceName" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/download/:resourceName",
  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}}/download/:resourceName');

echo $response->getBody();
setUrl('{{baseUrl}}/download/:resourceName');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/download/:resourceName');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/download/:resourceName' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/download/:resourceName' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/download/:resourceName")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/download/:resourceName"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/download/:resourceName"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/download/:resourceName")

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/download/:resourceName') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/download/:resourceName";

    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}}/download/:resourceName
http GET {{baseUrl}}/download/:resourceName
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/download/:resourceName
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/download/:resourceName")! 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 displayvideo.media.upload
{{baseUrl}}/media/:resourceName
QUERY PARAMS

resourceName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/media/:resourceName");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/media/:resourceName")
require "http/client"

url = "{{baseUrl}}/media/:resourceName"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/media/:resourceName"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/media/:resourceName");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/media/:resourceName"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/media/:resourceName HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/media/:resourceName")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/media/:resourceName"))
    .method("POST", 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}}/media/:resourceName")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/media/:resourceName")
  .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('POST', '{{baseUrl}}/media/:resourceName');

xhr.send(data);
import axios from 'axios';

const options = {method: 'POST', url: '{{baseUrl}}/media/:resourceName'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/media/:resourceName';
const options = {method: 'POST'};

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}}/media/:resourceName',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/media/:resourceName")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/media/:resourceName',
  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: 'POST', url: '{{baseUrl}}/media/:resourceName'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/media/:resourceName');

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}}/media/:resourceName'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/media/:resourceName';
const options = {method: 'POST'};

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}}/media/:resourceName"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/media/:resourceName" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/media/:resourceName",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/media/:resourceName');

echo $response->getBody();
setUrl('{{baseUrl}}/media/:resourceName');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/media/:resourceName');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/media/:resourceName' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/media/:resourceName' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/media/:resourceName")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/media/:resourceName"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/media/:resourceName"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/media/:resourceName")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/media/:resourceName') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/media/:resourceName";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/media/:resourceName
http POST {{baseUrl}}/media/:resourceName
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/media/:resourceName
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/media/:resourceName")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 displayvideo.partners.channels.create
{{baseUrl}}/v2/partners/:partnerId/channels
QUERY PARAMS

partnerId
BODY json

{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners/:partnerId/channels");

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  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/partners/:partnerId/channels" {:content-type :json
                                                                            :form-params {:advertiserId ""
                                                                                          :channelId ""
                                                                                          :displayName ""
                                                                                          :name ""
                                                                                          :negativelyTargetedLineItemCount ""
                                                                                          :partnerId ""
                                                                                          :positivelyTargetedLineItemCount ""}})
require "http/client"

url = "{{baseUrl}}/v2/partners/:partnerId/channels"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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}}/v2/partners/:partnerId/channels"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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}}/v2/partners/:partnerId/channels");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners/:partnerId/channels"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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/v2/partners/:partnerId/channels HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 179

{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/partners/:partnerId/channels")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners/:partnerId/channels"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/channels")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/partners/:partnerId/channels")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  channelId: '',
  displayName: '',
  name: '',
  negativelyTargetedLineItemCount: '',
  partnerId: '',
  positivelyTargetedLineItemCount: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/partners/:partnerId/channels');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/partners/:partnerId/channels',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    channelId: '',
    displayName: '',
    name: '',
    negativelyTargetedLineItemCount: '',
    partnerId: '',
    positivelyTargetedLineItemCount: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners/:partnerId/channels';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","channelId":"","displayName":"","name":"","negativelyTargetedLineItemCount":"","partnerId":"","positivelyTargetedLineItemCount":""}'
};

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}}/v2/partners/:partnerId/channels',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "channelId": "",\n  "displayName": "",\n  "name": "",\n  "negativelyTargetedLineItemCount": "",\n  "partnerId": "",\n  "positivelyTargetedLineItemCount": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/channels")
  .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/v2/partners/:partnerId/channels',
  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({
  advertiserId: '',
  channelId: '',
  displayName: '',
  name: '',
  negativelyTargetedLineItemCount: '',
  partnerId: '',
  positivelyTargetedLineItemCount: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/partners/:partnerId/channels',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    channelId: '',
    displayName: '',
    name: '',
    negativelyTargetedLineItemCount: '',
    partnerId: '',
    positivelyTargetedLineItemCount: ''
  },
  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}}/v2/partners/:partnerId/channels');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  channelId: '',
  displayName: '',
  name: '',
  negativelyTargetedLineItemCount: '',
  partnerId: '',
  positivelyTargetedLineItemCount: ''
});

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}}/v2/partners/:partnerId/channels',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    channelId: '',
    displayName: '',
    name: '',
    negativelyTargetedLineItemCount: '',
    partnerId: '',
    positivelyTargetedLineItemCount: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners/:partnerId/channels';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","channelId":"","displayName":"","name":"","negativelyTargetedLineItemCount":"","partnerId":"","positivelyTargetedLineItemCount":""}'
};

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 = @{ @"advertiserId": @"",
                              @"channelId": @"",
                              @"displayName": @"",
                              @"name": @"",
                              @"negativelyTargetedLineItemCount": @"",
                              @"partnerId": @"",
                              @"positivelyTargetedLineItemCount": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/partners/:partnerId/channels"]
                                                       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}}/v2/partners/:partnerId/channels" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners/:partnerId/channels",
  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([
    'advertiserId' => '',
    'channelId' => '',
    'displayName' => '',
    'name' => '',
    'negativelyTargetedLineItemCount' => '',
    'partnerId' => '',
    'positivelyTargetedLineItemCount' => ''
  ]),
  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}}/v2/partners/:partnerId/channels', [
  'body' => '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners/:partnerId/channels');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'channelId' => '',
  'displayName' => '',
  'name' => '',
  'negativelyTargetedLineItemCount' => '',
  'partnerId' => '',
  'positivelyTargetedLineItemCount' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'channelId' => '',
  'displayName' => '',
  'name' => '',
  'negativelyTargetedLineItemCount' => '',
  'partnerId' => '',
  'positivelyTargetedLineItemCount' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/partners/:partnerId/channels');
$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}}/v2/partners/:partnerId/channels' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners/:partnerId/channels' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/partners/:partnerId/channels", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners/:partnerId/channels"

payload = {
    "advertiserId": "",
    "channelId": "",
    "displayName": "",
    "name": "",
    "negativelyTargetedLineItemCount": "",
    "partnerId": "",
    "positivelyTargetedLineItemCount": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners/:partnerId/channels"

payload <- "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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}}/v2/partners/:partnerId/channels")

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  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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/v2/partners/:partnerId/channels') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/partners/:partnerId/channels";

    let payload = json!({
        "advertiserId": "",
        "channelId": "",
        "displayName": "",
        "name": "",
        "negativelyTargetedLineItemCount": "",
        "partnerId": "",
        "positivelyTargetedLineItemCount": ""
    });

    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}}/v2/partners/:partnerId/channels \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}'
echo '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}' |  \
  http POST {{baseUrl}}/v2/partners/:partnerId/channels \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "channelId": "",\n  "displayName": "",\n  "name": "",\n  "negativelyTargetedLineItemCount": "",\n  "partnerId": "",\n  "positivelyTargetedLineItemCount": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/partners/:partnerId/channels
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners/:partnerId/channels")! 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 displayvideo.partners.channels.list
{{baseUrl}}/v2/partners/:partnerId/channels
QUERY PARAMS

partnerId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners/:partnerId/channels");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/partners/:partnerId/channels")
require "http/client"

url = "{{baseUrl}}/v2/partners/:partnerId/channels"

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}}/v2/partners/:partnerId/channels"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/partners/:partnerId/channels");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners/:partnerId/channels"

	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/v2/partners/:partnerId/channels HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/partners/:partnerId/channels")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners/:partnerId/channels"))
    .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}}/v2/partners/:partnerId/channels")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/partners/:partnerId/channels")
  .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}}/v2/partners/:partnerId/channels');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/partners/:partnerId/channels'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners/:partnerId/channels';
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}}/v2/partners/:partnerId/channels',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/channels")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/partners/:partnerId/channels',
  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}}/v2/partners/:partnerId/channels'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/partners/:partnerId/channels');

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}}/v2/partners/:partnerId/channels'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners/:partnerId/channels';
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}}/v2/partners/:partnerId/channels"]
                                                       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}}/v2/partners/:partnerId/channels" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners/:partnerId/channels",
  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}}/v2/partners/:partnerId/channels');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners/:partnerId/channels');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/partners/:partnerId/channels');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/partners/:partnerId/channels' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners/:partnerId/channels' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/partners/:partnerId/channels")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners/:partnerId/channels"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners/:partnerId/channels"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/partners/:partnerId/channels")

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/v2/partners/:partnerId/channels') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/partners/:partnerId/channels";

    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}}/v2/partners/:partnerId/channels
http GET {{baseUrl}}/v2/partners/:partnerId/channels
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/partners/:partnerId/channels
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners/:partnerId/channels")! 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 displayvideo.partners.channels.patch
{{baseUrl}}/v2/partners/:partnerId/channels/:channelId
QUERY PARAMS

partnerId
channelId
BODY json

{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId");

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  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId" {:content-type :json
                                                                                        :form-params {:advertiserId ""
                                                                                                      :channelId ""
                                                                                                      :displayName ""
                                                                                                      :name ""
                                                                                                      :negativelyTargetedLineItemCount ""
                                                                                                      :partnerId ""
                                                                                                      :positivelyTargetedLineItemCount ""}})
require "http/client"

url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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}}/v2/partners/:partnerId/channels/:channelId"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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}}/v2/partners/:partnerId/channels/:channelId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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/v2/partners/:partnerId/channels/:channelId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 179

{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  channelId: '',
  displayName: '',
  name: '',
  negativelyTargetedLineItemCount: '',
  partnerId: '',
  positivelyTargetedLineItemCount: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    channelId: '',
    displayName: '',
    name: '',
    negativelyTargetedLineItemCount: '',
    partnerId: '',
    positivelyTargetedLineItemCount: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","channelId":"","displayName":"","name":"","negativelyTargetedLineItemCount":"","partnerId":"","positivelyTargetedLineItemCount":""}'
};

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}}/v2/partners/:partnerId/channels/:channelId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "channelId": "",\n  "displayName": "",\n  "name": "",\n  "negativelyTargetedLineItemCount": "",\n  "partnerId": "",\n  "positivelyTargetedLineItemCount": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId")
  .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/v2/partners/:partnerId/channels/:channelId',
  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({
  advertiserId: '',
  channelId: '',
  displayName: '',
  name: '',
  negativelyTargetedLineItemCount: '',
  partnerId: '',
  positivelyTargetedLineItemCount: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    channelId: '',
    displayName: '',
    name: '',
    negativelyTargetedLineItemCount: '',
    partnerId: '',
    positivelyTargetedLineItemCount: ''
  },
  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}}/v2/partners/:partnerId/channels/:channelId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  channelId: '',
  displayName: '',
  name: '',
  negativelyTargetedLineItemCount: '',
  partnerId: '',
  positivelyTargetedLineItemCount: ''
});

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}}/v2/partners/:partnerId/channels/:channelId',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    channelId: '',
    displayName: '',
    name: '',
    negativelyTargetedLineItemCount: '',
    partnerId: '',
    positivelyTargetedLineItemCount: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","channelId":"","displayName":"","name":"","negativelyTargetedLineItemCount":"","partnerId":"","positivelyTargetedLineItemCount":""}'
};

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 = @{ @"advertiserId": @"",
                              @"channelId": @"",
                              @"displayName": @"",
                              @"name": @"",
                              @"negativelyTargetedLineItemCount": @"",
                              @"partnerId": @"",
                              @"positivelyTargetedLineItemCount": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/partners/:partnerId/channels/:channelId"]
                                                       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}}/v2/partners/:partnerId/channels/:channelId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId",
  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([
    'advertiserId' => '',
    'channelId' => '',
    'displayName' => '',
    'name' => '',
    'negativelyTargetedLineItemCount' => '',
    'partnerId' => '',
    'positivelyTargetedLineItemCount' => ''
  ]),
  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}}/v2/partners/:partnerId/channels/:channelId', [
  'body' => '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners/:partnerId/channels/:channelId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'channelId' => '',
  'displayName' => '',
  'name' => '',
  'negativelyTargetedLineItemCount' => '',
  'partnerId' => '',
  'positivelyTargetedLineItemCount' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'channelId' => '',
  'displayName' => '',
  'name' => '',
  'negativelyTargetedLineItemCount' => '',
  'partnerId' => '',
  'positivelyTargetedLineItemCount' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/partners/:partnerId/channels/:channelId');
$request->setRequestMethod('PATCH');
$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}}/v2/partners/:partnerId/channels/:channelId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/v2/partners/:partnerId/channels/:channelId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId"

payload = {
    "advertiserId": "",
    "channelId": "",
    "displayName": "",
    "name": "",
    "negativelyTargetedLineItemCount": "",
    "partnerId": "",
    "positivelyTargetedLineItemCount": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId"

payload <- "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId")

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  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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/v2/partners/:partnerId/channels/:channelId') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"channelId\": \"\",\n  \"displayName\": \"\",\n  \"name\": \"\",\n  \"negativelyTargetedLineItemCount\": \"\",\n  \"partnerId\": \"\",\n  \"positivelyTargetedLineItemCount\": \"\"\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}}/v2/partners/:partnerId/channels/:channelId";

    let payload = json!({
        "advertiserId": "",
        "channelId": "",
        "displayName": "",
        "name": "",
        "negativelyTargetedLineItemCount": "",
        "partnerId": "",
        "positivelyTargetedLineItemCount": ""
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/partners/:partnerId/channels/:channelId \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}'
echo '{
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
}' |  \
  http PATCH {{baseUrl}}/v2/partners/:partnerId/channels/:channelId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "channelId": "",\n  "displayName": "",\n  "name": "",\n  "negativelyTargetedLineItemCount": "",\n  "partnerId": "",\n  "positivelyTargetedLineItemCount": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/partners/:partnerId/channels/:channelId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "channelId": "",
  "displayName": "",
  "name": "",
  "negativelyTargetedLineItemCount": "",
  "partnerId": "",
  "positivelyTargetedLineItemCount": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId")! 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()
POST displayvideo.partners.channels.sites.bulkEdit
{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit
QUERY PARAMS

partnerId
channelId
BODY json

{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit");

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  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit" {:content-type :json
                                                                                                      :form-params {:advertiserId ""
                                                                                                                    :createdSites [{:name ""
                                                                                                                                    :urlOrAppId ""}]
                                                                                                                    :deletedSites []
                                                                                                                    :partnerId ""}})
require "http/client"

url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\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}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\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}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\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/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 143

{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\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  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  createdSites: [
    {
      name: '',
      urlOrAppId: ''
    }
  ],
  deletedSites: [],
  partnerId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    createdSites: [{name: '', urlOrAppId: ''}],
    deletedSites: [],
    partnerId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","createdSites":[{"name":"","urlOrAppId":""}],"deletedSites":[],"partnerId":""}'
};

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}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "createdSites": [\n    {\n      "name": "",\n      "urlOrAppId": ""\n    }\n  ],\n  "deletedSites": [],\n  "partnerId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit")
  .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/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit',
  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({
  advertiserId: '',
  createdSites: [{name: '', urlOrAppId: ''}],
  deletedSites: [],
  partnerId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    createdSites: [{name: '', urlOrAppId: ''}],
    deletedSites: [],
    partnerId: ''
  },
  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}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  createdSites: [
    {
      name: '',
      urlOrAppId: ''
    }
  ],
  deletedSites: [],
  partnerId: ''
});

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}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    createdSites: [{name: '', urlOrAppId: ''}],
    deletedSites: [],
    partnerId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","createdSites":[{"name":"","urlOrAppId":""}],"deletedSites":[],"partnerId":""}'
};

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 = @{ @"advertiserId": @"",
                              @"createdSites": @[ @{ @"name": @"", @"urlOrAppId": @"" } ],
                              @"deletedSites": @[  ],
                              @"partnerId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit"]
                                                       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}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit",
  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([
    'advertiserId' => '',
    'createdSites' => [
        [
                'name' => '',
                'urlOrAppId' => ''
        ]
    ],
    'deletedSites' => [
        
    ],
    'partnerId' => ''
  ]),
  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}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit', [
  'body' => '{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'createdSites' => [
    [
        'name' => '',
        'urlOrAppId' => ''
    ]
  ],
  'deletedSites' => [
    
  ],
  'partnerId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'createdSites' => [
    [
        'name' => '',
        'urlOrAppId' => ''
    ]
  ],
  'deletedSites' => [
    
  ],
  'partnerId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit');
$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}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit"

payload = {
    "advertiserId": "",
    "createdSites": [
        {
            "name": "",
            "urlOrAppId": ""
        }
    ],
    "deletedSites": [],
    "partnerId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit"

payload <- "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\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}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit")

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  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\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/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"createdSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"deletedSites\": [],\n  \"partnerId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit";

    let payload = json!({
        "advertiserId": "",
        "createdSites": (
            json!({
                "name": "",
                "urlOrAppId": ""
            })
        ),
        "deletedSites": (),
        "partnerId": ""
    });

    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}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}'
echo '{
  "advertiserId": "",
  "createdSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "deletedSites": [],
  "partnerId": ""
}' |  \
  http POST {{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "createdSites": [\n    {\n      "name": "",\n      "urlOrAppId": ""\n    }\n  ],\n  "deletedSites": [],\n  "partnerId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "createdSites": [
    [
      "name": "",
      "urlOrAppId": ""
    ]
  ],
  "deletedSites": [],
  "partnerId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:bulkEdit")! 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()
DELETE displayvideo.partners.channels.sites.delete
{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId
QUERY PARAMS

partnerId
channelId
urlOrAppId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId")
require "http/client"

url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId"

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}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId"

	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/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId"))
    .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}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId")
  .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}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId';
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}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId',
  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}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId');

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}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId';
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}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId"]
                                                       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}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId",
  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}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId")

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/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId";

    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}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId
http DELETE {{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites/:urlOrAppId")! 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 displayvideo.partners.channels.sites.list
{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites
QUERY PARAMS

partnerId
channelId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites")
require "http/client"

url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites"

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}}/v2/partners/:partnerId/channels/:channelId/sites"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites"

	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/v2/partners/:partnerId/channels/:channelId/sites HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites"))
    .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}}/v2/partners/:partnerId/channels/:channelId/sites")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites")
  .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}}/v2/partners/:partnerId/channels/:channelId/sites');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites';
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}}/v2/partners/:partnerId/channels/:channelId/sites',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/partners/:partnerId/channels/:channelId/sites',
  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}}/v2/partners/:partnerId/channels/:channelId/sites'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites');

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}}/v2/partners/:partnerId/channels/:channelId/sites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites';
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}}/v2/partners/:partnerId/channels/:channelId/sites"]
                                                       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}}/v2/partners/:partnerId/channels/:channelId/sites" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites",
  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}}/v2/partners/:partnerId/channels/:channelId/sites');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/partners/:partnerId/channels/:channelId/sites")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites")

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/v2/partners/:partnerId/channels/:channelId/sites') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites";

    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}}/v2/partners/:partnerId/channels/:channelId/sites
http GET {{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites")! 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 displayvideo.partners.channels.sites.replace
{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace
QUERY PARAMS

partnerId
channelId
BODY json

{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace");

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  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace" {:content-type :json
                                                                                                     :form-params {:advertiserId ""
                                                                                                                   :newSites [{:name ""
                                                                                                                               :urlOrAppId ""}]
                                                                                                                   :partnerId ""}})
require "http/client"

url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\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}}/v2/partners/:partnerId/channels/:channelId/sites:replace"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\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}}/v2/partners/:partnerId/channels/:channelId/sites:replace");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\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/v2/partners/:partnerId/channels/:channelId/sites:replace HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 117

{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\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  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  newSites: [
    {
      name: '',
      urlOrAppId: ''
    }
  ],
  partnerId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace',
  headers: {'content-type': 'application/json'},
  data: {advertiserId: '', newSites: [{name: '', urlOrAppId: ''}], partnerId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","newSites":[{"name":"","urlOrAppId":""}],"partnerId":""}'
};

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}}/v2/partners/:partnerId/channels/:channelId/sites:replace',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "newSites": [\n    {\n      "name": "",\n      "urlOrAppId": ""\n    }\n  ],\n  "partnerId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace")
  .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/v2/partners/:partnerId/channels/:channelId/sites:replace',
  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({advertiserId: '', newSites: [{name: '', urlOrAppId: ''}], partnerId: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace',
  headers: {'content-type': 'application/json'},
  body: {advertiserId: '', newSites: [{name: '', urlOrAppId: ''}], partnerId: ''},
  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}}/v2/partners/:partnerId/channels/:channelId/sites:replace');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  newSites: [
    {
      name: '',
      urlOrAppId: ''
    }
  ],
  partnerId: ''
});

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}}/v2/partners/:partnerId/channels/:channelId/sites:replace',
  headers: {'content-type': 'application/json'},
  data: {advertiserId: '', newSites: [{name: '', urlOrAppId: ''}], partnerId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","newSites":[{"name":"","urlOrAppId":""}],"partnerId":""}'
};

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 = @{ @"advertiserId": @"",
                              @"newSites": @[ @{ @"name": @"", @"urlOrAppId": @"" } ],
                              @"partnerId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace"]
                                                       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}}/v2/partners/:partnerId/channels/:channelId/sites:replace" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace",
  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([
    'advertiserId' => '',
    'newSites' => [
        [
                'name' => '',
                'urlOrAppId' => ''
        ]
    ],
    'partnerId' => ''
  ]),
  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}}/v2/partners/:partnerId/channels/:channelId/sites:replace', [
  'body' => '{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'newSites' => [
    [
        'name' => '',
        'urlOrAppId' => ''
    ]
  ],
  'partnerId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'newSites' => [
    [
        'name' => '',
        'urlOrAppId' => ''
    ]
  ],
  'partnerId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace');
$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}}/v2/partners/:partnerId/channels/:channelId/sites:replace' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/partners/:partnerId/channels/:channelId/sites:replace", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace"

payload = {
    "advertiserId": "",
    "newSites": [
        {
            "name": "",
            "urlOrAppId": ""
        }
    ],
    "partnerId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace"

payload <- "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\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}}/v2/partners/:partnerId/channels/:channelId/sites:replace")

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  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\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/v2/partners/:partnerId/channels/:channelId/sites:replace') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"newSites\": [\n    {\n      \"name\": \"\",\n      \"urlOrAppId\": \"\"\n    }\n  ],\n  \"partnerId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace";

    let payload = json!({
        "advertiserId": "",
        "newSites": (
            json!({
                "name": "",
                "urlOrAppId": ""
            })
        ),
        "partnerId": ""
    });

    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}}/v2/partners/:partnerId/channels/:channelId/sites:replace \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}'
echo '{
  "advertiserId": "",
  "newSites": [
    {
      "name": "",
      "urlOrAppId": ""
    }
  ],
  "partnerId": ""
}' |  \
  http POST {{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "newSites": [\n    {\n      "name": "",\n      "urlOrAppId": ""\n    }\n  ],\n  "partnerId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "newSites": [
    [
      "name": "",
      "urlOrAppId": ""
    ]
  ],
  "partnerId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners/:partnerId/channels/:channelId/sites:replace")! 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()
POST displayvideo.partners.editAssignedTargetingOptions
{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions
QUERY PARAMS

partnerId
BODY json

{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions");

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  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions" {:content-type :json
                                                                                                :form-params {:createRequests [{:assignedTargetingOptions [{:ageRangeDetails {:ageRange ""}
                                                                                                                                                            :appCategoryDetails {:displayName ""
                                                                                                                                                                                 :negative false
                                                                                                                                                                                 :targetingOptionId ""}
                                                                                                                                                            :appDetails {:appId ""
                                                                                                                                                                         :appPlatform ""
                                                                                                                                                                         :displayName ""
                                                                                                                                                                         :negative false}
                                                                                                                                                            :assignedTargetingOptionId ""
                                                                                                                                                            :assignedTargetingOptionIdAlias ""
                                                                                                                                                            :audienceGroupDetails {:excludedFirstAndThirdPartyAudienceGroup {:settings [{:firstAndThirdPartyAudienceId ""
                                                                                                                                                                                                                                         :recency ""}]}
                                                                                                                                                                                   :excludedGoogleAudienceGroup {:settings [{:googleAudienceId ""}]}
                                                                                                                                                                                   :includedCombinedAudienceGroup {:settings [{:combinedAudienceId ""}]}
                                                                                                                                                                                   :includedCustomListGroup {:settings [{:customListId ""}]}
                                                                                                                                                                                   :includedFirstAndThirdPartyAudienceGroups [{}]
                                                                                                                                                                                   :includedGoogleAudienceGroup {}}
                                                                                                                                                            :audioContentTypeDetails {:audioContentType ""}
                                                                                                                                                            :authorizedSellerStatusDetails {:authorizedSellerStatus ""
                                                                                                                                                                                            :targetingOptionId ""}
                                                                                                                                                            :browserDetails {:displayName ""
                                                                                                                                                                             :negative false
                                                                                                                                                                             :targetingOptionId ""}
                                                                                                                                                            :businessChainDetails {:displayName ""
                                                                                                                                                                                   :proximityRadiusAmount ""
                                                                                                                                                                                   :proximityRadiusUnit ""
                                                                                                                                                                                   :targetingOptionId ""}
                                                                                                                                                            :carrierAndIspDetails {:displayName ""
                                                                                                                                                                                   :negative false
                                                                                                                                                                                   :targetingOptionId ""}
                                                                                                                                                            :categoryDetails {:displayName ""
                                                                                                                                                                              :negative false
                                                                                                                                                                              :targetingOptionId ""}
                                                                                                                                                            :channelDetails {:channelId ""
                                                                                                                                                                             :negative false}
                                                                                                                                                            :contentDurationDetails {:contentDuration ""
                                                                                                                                                                                     :targetingOptionId ""}
                                                                                                                                                            :contentGenreDetails {:displayName ""
                                                                                                                                                                                  :negative false
                                                                                                                                                                                  :targetingOptionId ""}
                                                                                                                                                            :contentInstreamPositionDetails {:adType ""
                                                                                                                                                                                             :contentInstreamPosition ""}
                                                                                                                                                            :contentOutstreamPositionDetails {:adType ""
                                                                                                                                                                                              :contentOutstreamPosition ""}
                                                                                                                                                            :contentStreamTypeDetails {:contentStreamType ""
                                                                                                                                                                                       :targetingOptionId ""}
                                                                                                                                                            :dayAndTimeDetails {:dayOfWeek ""
                                                                                                                                                                                :endHour 0
                                                                                                                                                                                :startHour 0
                                                                                                                                                                                :timeZoneResolution ""}
                                                                                                                                                            :deviceMakeModelDetails {:displayName ""
                                                                                                                                                                                     :negative false
                                                                                                                                                                                     :targetingOptionId ""}
                                                                                                                                                            :deviceTypeDetails {:deviceType ""
                                                                                                                                                                                :youtubeAndPartnersBidMultiplier ""}
                                                                                                                                                            :digitalContentLabelExclusionDetails {:excludedContentRatingTier ""}
                                                                                                                                                            :environmentDetails {:environment ""}
                                                                                                                                                            :exchangeDetails {:exchange ""}
                                                                                                                                                            :genderDetails {:gender ""}
                                                                                                                                                            :geoRegionDetails {:displayName ""
                                                                                                                                                                               :geoRegionType ""
                                                                                                                                                                               :negative false
                                                                                                                                                                               :targetingOptionId ""}
                                                                                                                                                            :householdIncomeDetails {:householdIncome ""}
                                                                                                                                                            :inheritance ""
                                                                                                                                                            :inventorySourceDetails {:inventorySourceId ""}
                                                                                                                                                            :inventorySourceGroupDetails {:inventorySourceGroupId ""}
                                                                                                                                                            :keywordDetails {:keyword ""
                                                                                                                                                                             :negative false}
                                                                                                                                                            :languageDetails {:displayName ""
                                                                                                                                                                              :negative false
                                                                                                                                                                              :targetingOptionId ""}
                                                                                                                                                            :name ""
                                                                                                                                                            :nativeContentPositionDetails {:contentPosition ""}
                                                                                                                                                            :negativeKeywordListDetails {:negativeKeywordListId ""}
                                                                                                                                                            :omidDetails {:omid ""}
                                                                                                                                                            :onScreenPositionDetails {:adType ""
                                                                                                                                                                                      :onScreenPosition ""
                                                                                                                                                                                      :targetingOptionId ""}
                                                                                                                                                            :operatingSystemDetails {:displayName ""
                                                                                                                                                                                     :negative false
                                                                                                                                                                                     :targetingOptionId ""}
                                                                                                                                                            :parentalStatusDetails {:parentalStatus ""}
                                                                                                                                                            :poiDetails {:displayName ""
                                                                                                                                                                         :latitude ""
                                                                                                                                                                         :longitude ""
                                                                                                                                                                         :proximityRadiusAmount ""
                                                                                                                                                                         :proximityRadiusUnit ""
                                                                                                                                                                         :targetingOptionId ""}
                                                                                                                                                            :proximityLocationListDetails {:proximityLocationListId ""
                                                                                                                                                                                           :proximityRadius ""
                                                                                                                                                                                           :proximityRadiusUnit ""}
                                                                                                                                                            :regionalLocationListDetails {:negative false
                                                                                                                                                                                          :regionalLocationListId ""}
                                                                                                                                                            :sensitiveCategoryExclusionDetails {:excludedSensitiveCategory ""}
                                                                                                                                                            :sessionPositionDetails {:sessionPosition ""}
                                                                                                                                                            :subExchangeDetails {:targetingOptionId ""}
                                                                                                                                                            :targetingType ""
                                                                                                                                                            :thirdPartyVerifierDetails {:adloox {:excludedAdlooxCategories []}
                                                                                                                                                                                        :doubleVerify {:appStarRating {:avoidInsufficientStarRating false
                                                                                                                                                                                                                       :avoidedStarRating ""}
                                                                                                                                                                                                       :avoidedAgeRatings []
                                                                                                                                                                                                       :brandSafetyCategories {:avoidUnknownBrandSafetyCategory false
                                                                                                                                                                                                                               :avoidedHighSeverityCategories []
                                                                                                                                                                                                                               :avoidedMediumSeverityCategories []}
                                                                                                                                                                                                       :customSegmentId ""
                                                                                                                                                                                                       :displayViewability {:iab ""
                                                                                                                                                                                                                            :viewableDuring ""}
                                                                                                                                                                                                       :fraudInvalidTraffic {:avoidInsufficientOption false
                                                                                                                                                                                                                             :avoidedFraudOption ""}
                                                                                                                                                                                                       :videoViewability {:playerImpressionRate ""
                                                                                                                                                                                                                          :videoIab ""
                                                                                                                                                                                                                          :videoViewableRate ""}}
                                                                                                                                                                                        :integralAdScience {:customSegmentId []
                                                                                                                                                                                                            :displayViewability ""
                                                                                                                                                                                                            :excludeUnrateable false
                                                                                                                                                                                                            :excludedAdFraudRisk ""
                                                                                                                                                                                                            :excludedAdultRisk ""
                                                                                                                                                                                                            :excludedAlcoholRisk ""
                                                                                                                                                                                                            :excludedDrugsRisk ""
                                                                                                                                                                                                            :excludedGamblingRisk ""
                                                                                                                                                                                                            :excludedHateSpeechRisk ""
                                                                                                                                                                                                            :excludedIllegalDownloadsRisk ""
                                                                                                                                                                                                            :excludedOffensiveLanguageRisk ""
                                                                                                                                                                                                            :excludedViolenceRisk ""
                                                                                                                                                                                                            :traqScoreOption ""
                                                                                                                                                                                                            :videoViewability ""}}
                                                                                                                                                            :urlDetails {:negative false
                                                                                                                                                                         :url ""}
                                                                                                                                                            :userRewardedContentDetails {:targetingOptionId ""
                                                                                                                                                                                         :userRewardedContent ""}
                                                                                                                                                            :videoPlayerSizeDetails {:videoPlayerSize ""}
                                                                                                                                                            :viewabilityDetails {:viewability ""}
                                                                                                                                                            :youtubeChannelDetails {:channelId ""
                                                                                                                                                                                    :negative false}
                                                                                                                                                            :youtubeVideoDetails {:negative false
                                                                                                                                                                                  :videoId ""}}]
                                                                                                                                :targetingType ""}]
                                                                                                              :deleteRequests [{:assignedTargetingOptionIds []
                                                                                                                                :targetingType ""}]}})
require "http/client"

url = "{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\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}}/v2/partners/:partnerId:editAssignedTargetingOptions"),
    Content = new StringContent("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\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}}/v2/partners/:partnerId:editAssignedTargetingOptions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions"

	payload := strings.NewReader("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\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/v2/partners/:partnerId:editAssignedTargetingOptions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 8533

{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\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  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions")
  .header("content-type", "application/json")
  .body("{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  createRequests: [
    {
      assignedTargetingOptions: [
        {
          ageRangeDetails: {
            ageRange: ''
          },
          appCategoryDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          appDetails: {
            appId: '',
            appPlatform: '',
            displayName: '',
            negative: false
          },
          assignedTargetingOptionId: '',
          assignedTargetingOptionIdAlias: '',
          audienceGroupDetails: {
            excludedFirstAndThirdPartyAudienceGroup: {
              settings: [
                {
                  firstAndThirdPartyAudienceId: '',
                  recency: ''
                }
              ]
            },
            excludedGoogleAudienceGroup: {
              settings: [
                {
                  googleAudienceId: ''
                }
              ]
            },
            includedCombinedAudienceGroup: {
              settings: [
                {
                  combinedAudienceId: ''
                }
              ]
            },
            includedCustomListGroup: {
              settings: [
                {
                  customListId: ''
                }
              ]
            },
            includedFirstAndThirdPartyAudienceGroups: [
              {}
            ],
            includedGoogleAudienceGroup: {}
          },
          audioContentTypeDetails: {
            audioContentType: ''
          },
          authorizedSellerStatusDetails: {
            authorizedSellerStatus: '',
            targetingOptionId: ''
          },
          browserDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          businessChainDetails: {
            displayName: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          carrierAndIspDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          categoryDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          channelDetails: {
            channelId: '',
            negative: false
          },
          contentDurationDetails: {
            contentDuration: '',
            targetingOptionId: ''
          },
          contentGenreDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          contentInstreamPositionDetails: {
            adType: '',
            contentInstreamPosition: ''
          },
          contentOutstreamPositionDetails: {
            adType: '',
            contentOutstreamPosition: ''
          },
          contentStreamTypeDetails: {
            contentStreamType: '',
            targetingOptionId: ''
          },
          dayAndTimeDetails: {
            dayOfWeek: '',
            endHour: 0,
            startHour: 0,
            timeZoneResolution: ''
          },
          deviceMakeModelDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          deviceTypeDetails: {
            deviceType: '',
            youtubeAndPartnersBidMultiplier: ''
          },
          digitalContentLabelExclusionDetails: {
            excludedContentRatingTier: ''
          },
          environmentDetails: {
            environment: ''
          },
          exchangeDetails: {
            exchange: ''
          },
          genderDetails: {
            gender: ''
          },
          geoRegionDetails: {
            displayName: '',
            geoRegionType: '',
            negative: false,
            targetingOptionId: ''
          },
          householdIncomeDetails: {
            householdIncome: ''
          },
          inheritance: '',
          inventorySourceDetails: {
            inventorySourceId: ''
          },
          inventorySourceGroupDetails: {
            inventorySourceGroupId: ''
          },
          keywordDetails: {
            keyword: '',
            negative: false
          },
          languageDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          name: '',
          nativeContentPositionDetails: {
            contentPosition: ''
          },
          negativeKeywordListDetails: {
            negativeKeywordListId: ''
          },
          omidDetails: {
            omid: ''
          },
          onScreenPositionDetails: {
            adType: '',
            onScreenPosition: '',
            targetingOptionId: ''
          },
          operatingSystemDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          parentalStatusDetails: {
            parentalStatus: ''
          },
          poiDetails: {
            displayName: '',
            latitude: '',
            longitude: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          proximityLocationListDetails: {
            proximityLocationListId: '',
            proximityRadius: '',
            proximityRadiusUnit: ''
          },
          regionalLocationListDetails: {
            negative: false,
            regionalLocationListId: ''
          },
          sensitiveCategoryExclusionDetails: {
            excludedSensitiveCategory: ''
          },
          sessionPositionDetails: {
            sessionPosition: ''
          },
          subExchangeDetails: {
            targetingOptionId: ''
          },
          targetingType: '',
          thirdPartyVerifierDetails: {
            adloox: {
              excludedAdlooxCategories: []
            },
            doubleVerify: {
              appStarRating: {
                avoidInsufficientStarRating: false,
                avoidedStarRating: ''
              },
              avoidedAgeRatings: [],
              brandSafetyCategories: {
                avoidUnknownBrandSafetyCategory: false,
                avoidedHighSeverityCategories: [],
                avoidedMediumSeverityCategories: []
              },
              customSegmentId: '',
              displayViewability: {
                iab: '',
                viewableDuring: ''
              },
              fraudInvalidTraffic: {
                avoidInsufficientOption: false,
                avoidedFraudOption: ''
              },
              videoViewability: {
                playerImpressionRate: '',
                videoIab: '',
                videoViewableRate: ''
              }
            },
            integralAdScience: {
              customSegmentId: [],
              displayViewability: '',
              excludeUnrateable: false,
              excludedAdFraudRisk: '',
              excludedAdultRisk: '',
              excludedAlcoholRisk: '',
              excludedDrugsRisk: '',
              excludedGamblingRisk: '',
              excludedHateSpeechRisk: '',
              excludedIllegalDownloadsRisk: '',
              excludedOffensiveLanguageRisk: '',
              excludedViolenceRisk: '',
              traqScoreOption: '',
              videoViewability: ''
            }
          },
          urlDetails: {
            negative: false,
            url: ''
          },
          userRewardedContentDetails: {
            targetingOptionId: '',
            userRewardedContent: ''
          },
          videoPlayerSizeDetails: {
            videoPlayerSize: ''
          },
          viewabilityDetails: {
            viewability: ''
          },
          youtubeChannelDetails: {
            channelId: '',
            negative: false
          },
          youtubeVideoDetails: {
            negative: false,
            videoId: ''
          }
        }
      ],
      targetingType: ''
    }
  ],
  deleteRequests: [
    {
      assignedTargetingOptionIds: [],
      targetingType: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    createRequests: [
      {
        assignedTargetingOptions: [
          {
            ageRangeDetails: {ageRange: ''},
            appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
            assignedTargetingOptionId: '',
            assignedTargetingOptionIdAlias: '',
            audienceGroupDetails: {
              excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
              excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
              includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
              includedCustomListGroup: {settings: [{customListId: ''}]},
              includedFirstAndThirdPartyAudienceGroups: [{}],
              includedGoogleAudienceGroup: {}
            },
            audioContentTypeDetails: {audioContentType: ''},
            authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
            browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
            businessChainDetails: {
              displayName: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
            categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            channelDetails: {channelId: '', negative: false},
            contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
            contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
            contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
            contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
            contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
            dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
            deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
            deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
            digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
            environmentDetails: {environment: ''},
            exchangeDetails: {exchange: ''},
            genderDetails: {gender: ''},
            geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
            householdIncomeDetails: {householdIncome: ''},
            inheritance: '',
            inventorySourceDetails: {inventorySourceId: ''},
            inventorySourceGroupDetails: {inventorySourceGroupId: ''},
            keywordDetails: {keyword: '', negative: false},
            languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
            name: '',
            nativeContentPositionDetails: {contentPosition: ''},
            negativeKeywordListDetails: {negativeKeywordListId: ''},
            omidDetails: {omid: ''},
            onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
            operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
            parentalStatusDetails: {parentalStatus: ''},
            poiDetails: {
              displayName: '',
              latitude: '',
              longitude: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
            regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
            sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
            sessionPositionDetails: {sessionPosition: ''},
            subExchangeDetails: {targetingOptionId: ''},
            targetingType: '',
            thirdPartyVerifierDetails: {
              adloox: {excludedAdlooxCategories: []},
              doubleVerify: {
                appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
                avoidedAgeRatings: [],
                brandSafetyCategories: {
                  avoidUnknownBrandSafetyCategory: false,
                  avoidedHighSeverityCategories: [],
                  avoidedMediumSeverityCategories: []
                },
                customSegmentId: '',
                displayViewability: {iab: '', viewableDuring: ''},
                fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
                videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
              },
              integralAdScience: {
                customSegmentId: [],
                displayViewability: '',
                excludeUnrateable: false,
                excludedAdFraudRisk: '',
                excludedAdultRisk: '',
                excludedAlcoholRisk: '',
                excludedDrugsRisk: '',
                excludedGamblingRisk: '',
                excludedHateSpeechRisk: '',
                excludedIllegalDownloadsRisk: '',
                excludedOffensiveLanguageRisk: '',
                excludedViolenceRisk: '',
                traqScoreOption: '',
                videoViewability: ''
              }
            },
            urlDetails: {negative: false, url: ''},
            userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
            videoPlayerSizeDetails: {videoPlayerSize: ''},
            viewabilityDetails: {viewability: ''},
            youtubeChannelDetails: {channelId: '', negative: false},
            youtubeVideoDetails: {negative: false, videoId: ''}
          }
        ],
        targetingType: ''
      }
    ],
    deleteRequests: [{assignedTargetingOptionIds: [], targetingType: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createRequests":[{"assignedTargetingOptions":[{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}],"targetingType":""}],"deleteRequests":[{"assignedTargetingOptionIds":[],"targetingType":""}]}'
};

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}}/v2/partners/:partnerId:editAssignedTargetingOptions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "createRequests": [\n    {\n      "assignedTargetingOptions": [\n        {\n          "ageRangeDetails": {\n            "ageRange": ""\n          },\n          "appCategoryDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "appDetails": {\n            "appId": "",\n            "appPlatform": "",\n            "displayName": "",\n            "negative": false\n          },\n          "assignedTargetingOptionId": "",\n          "assignedTargetingOptionIdAlias": "",\n          "audienceGroupDetails": {\n            "excludedFirstAndThirdPartyAudienceGroup": {\n              "settings": [\n                {\n                  "firstAndThirdPartyAudienceId": "",\n                  "recency": ""\n                }\n              ]\n            },\n            "excludedGoogleAudienceGroup": {\n              "settings": [\n                {\n                  "googleAudienceId": ""\n                }\n              ]\n            },\n            "includedCombinedAudienceGroup": {\n              "settings": [\n                {\n                  "combinedAudienceId": ""\n                }\n              ]\n            },\n            "includedCustomListGroup": {\n              "settings": [\n                {\n                  "customListId": ""\n                }\n              ]\n            },\n            "includedFirstAndThirdPartyAudienceGroups": [\n              {}\n            ],\n            "includedGoogleAudienceGroup": {}\n          },\n          "audioContentTypeDetails": {\n            "audioContentType": ""\n          },\n          "authorizedSellerStatusDetails": {\n            "authorizedSellerStatus": "",\n            "targetingOptionId": ""\n          },\n          "browserDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "businessChainDetails": {\n            "displayName": "",\n            "proximityRadiusAmount": "",\n            "proximityRadiusUnit": "",\n            "targetingOptionId": ""\n          },\n          "carrierAndIspDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "categoryDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "channelDetails": {\n            "channelId": "",\n            "negative": false\n          },\n          "contentDurationDetails": {\n            "contentDuration": "",\n            "targetingOptionId": ""\n          },\n          "contentGenreDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "contentInstreamPositionDetails": {\n            "adType": "",\n            "contentInstreamPosition": ""\n          },\n          "contentOutstreamPositionDetails": {\n            "adType": "",\n            "contentOutstreamPosition": ""\n          },\n          "contentStreamTypeDetails": {\n            "contentStreamType": "",\n            "targetingOptionId": ""\n          },\n          "dayAndTimeDetails": {\n            "dayOfWeek": "",\n            "endHour": 0,\n            "startHour": 0,\n            "timeZoneResolution": ""\n          },\n          "deviceMakeModelDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "deviceTypeDetails": {\n            "deviceType": "",\n            "youtubeAndPartnersBidMultiplier": ""\n          },\n          "digitalContentLabelExclusionDetails": {\n            "excludedContentRatingTier": ""\n          },\n          "environmentDetails": {\n            "environment": ""\n          },\n          "exchangeDetails": {\n            "exchange": ""\n          },\n          "genderDetails": {\n            "gender": ""\n          },\n          "geoRegionDetails": {\n            "displayName": "",\n            "geoRegionType": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "householdIncomeDetails": {\n            "householdIncome": ""\n          },\n          "inheritance": "",\n          "inventorySourceDetails": {\n            "inventorySourceId": ""\n          },\n          "inventorySourceGroupDetails": {\n            "inventorySourceGroupId": ""\n          },\n          "keywordDetails": {\n            "keyword": "",\n            "negative": false\n          },\n          "languageDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "name": "",\n          "nativeContentPositionDetails": {\n            "contentPosition": ""\n          },\n          "negativeKeywordListDetails": {\n            "negativeKeywordListId": ""\n          },\n          "omidDetails": {\n            "omid": ""\n          },\n          "onScreenPositionDetails": {\n            "adType": "",\n            "onScreenPosition": "",\n            "targetingOptionId": ""\n          },\n          "operatingSystemDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "parentalStatusDetails": {\n            "parentalStatus": ""\n          },\n          "poiDetails": {\n            "displayName": "",\n            "latitude": "",\n            "longitude": "",\n            "proximityRadiusAmount": "",\n            "proximityRadiusUnit": "",\n            "targetingOptionId": ""\n          },\n          "proximityLocationListDetails": {\n            "proximityLocationListId": "",\n            "proximityRadius": "",\n            "proximityRadiusUnit": ""\n          },\n          "regionalLocationListDetails": {\n            "negative": false,\n            "regionalLocationListId": ""\n          },\n          "sensitiveCategoryExclusionDetails": {\n            "excludedSensitiveCategory": ""\n          },\n          "sessionPositionDetails": {\n            "sessionPosition": ""\n          },\n          "subExchangeDetails": {\n            "targetingOptionId": ""\n          },\n          "targetingType": "",\n          "thirdPartyVerifierDetails": {\n            "adloox": {\n              "excludedAdlooxCategories": []\n            },\n            "doubleVerify": {\n              "appStarRating": {\n                "avoidInsufficientStarRating": false,\n                "avoidedStarRating": ""\n              },\n              "avoidedAgeRatings": [],\n              "brandSafetyCategories": {\n                "avoidUnknownBrandSafetyCategory": false,\n                "avoidedHighSeverityCategories": [],\n                "avoidedMediumSeverityCategories": []\n              },\n              "customSegmentId": "",\n              "displayViewability": {\n                "iab": "",\n                "viewableDuring": ""\n              },\n              "fraudInvalidTraffic": {\n                "avoidInsufficientOption": false,\n                "avoidedFraudOption": ""\n              },\n              "videoViewability": {\n                "playerImpressionRate": "",\n                "videoIab": "",\n                "videoViewableRate": ""\n              }\n            },\n            "integralAdScience": {\n              "customSegmentId": [],\n              "displayViewability": "",\n              "excludeUnrateable": false,\n              "excludedAdFraudRisk": "",\n              "excludedAdultRisk": "",\n              "excludedAlcoholRisk": "",\n              "excludedDrugsRisk": "",\n              "excludedGamblingRisk": "",\n              "excludedHateSpeechRisk": "",\n              "excludedIllegalDownloadsRisk": "",\n              "excludedOffensiveLanguageRisk": "",\n              "excludedViolenceRisk": "",\n              "traqScoreOption": "",\n              "videoViewability": ""\n            }\n          },\n          "urlDetails": {\n            "negative": false,\n            "url": ""\n          },\n          "userRewardedContentDetails": {\n            "targetingOptionId": "",\n            "userRewardedContent": ""\n          },\n          "videoPlayerSizeDetails": {\n            "videoPlayerSize": ""\n          },\n          "viewabilityDetails": {\n            "viewability": ""\n          },\n          "youtubeChannelDetails": {\n            "channelId": "",\n            "negative": false\n          },\n          "youtubeVideoDetails": {\n            "negative": false,\n            "videoId": ""\n          }\n        }\n      ],\n      "targetingType": ""\n    }\n  ],\n  "deleteRequests": [\n    {\n      "assignedTargetingOptionIds": [],\n      "targetingType": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions")
  .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/v2/partners/:partnerId:editAssignedTargetingOptions',
  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({
  createRequests: [
    {
      assignedTargetingOptions: [
        {
          ageRangeDetails: {ageRange: ''},
          appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
          appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
          assignedTargetingOptionId: '',
          assignedTargetingOptionIdAlias: '',
          audienceGroupDetails: {
            excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
            excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
            includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
            includedCustomListGroup: {settings: [{customListId: ''}]},
            includedFirstAndThirdPartyAudienceGroups: [{}],
            includedGoogleAudienceGroup: {}
          },
          audioContentTypeDetails: {audioContentType: ''},
          authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
          browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
          businessChainDetails: {
            displayName: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
          categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
          channelDetails: {channelId: '', negative: false},
          contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
          contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
          contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
          contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
          contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
          dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
          deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
          deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
          digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
          environmentDetails: {environment: ''},
          exchangeDetails: {exchange: ''},
          genderDetails: {gender: ''},
          geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
          householdIncomeDetails: {householdIncome: ''},
          inheritance: '',
          inventorySourceDetails: {inventorySourceId: ''},
          inventorySourceGroupDetails: {inventorySourceGroupId: ''},
          keywordDetails: {keyword: '', negative: false},
          languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
          name: '',
          nativeContentPositionDetails: {contentPosition: ''},
          negativeKeywordListDetails: {negativeKeywordListId: ''},
          omidDetails: {omid: ''},
          onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
          operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
          parentalStatusDetails: {parentalStatus: ''},
          poiDetails: {
            displayName: '',
            latitude: '',
            longitude: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
          regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
          sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
          sessionPositionDetails: {sessionPosition: ''},
          subExchangeDetails: {targetingOptionId: ''},
          targetingType: '',
          thirdPartyVerifierDetails: {
            adloox: {excludedAdlooxCategories: []},
            doubleVerify: {
              appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
              avoidedAgeRatings: [],
              brandSafetyCategories: {
                avoidUnknownBrandSafetyCategory: false,
                avoidedHighSeverityCategories: [],
                avoidedMediumSeverityCategories: []
              },
              customSegmentId: '',
              displayViewability: {iab: '', viewableDuring: ''},
              fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
              videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
            },
            integralAdScience: {
              customSegmentId: [],
              displayViewability: '',
              excludeUnrateable: false,
              excludedAdFraudRisk: '',
              excludedAdultRisk: '',
              excludedAlcoholRisk: '',
              excludedDrugsRisk: '',
              excludedGamblingRisk: '',
              excludedHateSpeechRisk: '',
              excludedIllegalDownloadsRisk: '',
              excludedOffensiveLanguageRisk: '',
              excludedViolenceRisk: '',
              traqScoreOption: '',
              videoViewability: ''
            }
          },
          urlDetails: {negative: false, url: ''},
          userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
          videoPlayerSizeDetails: {videoPlayerSize: ''},
          viewabilityDetails: {viewability: ''},
          youtubeChannelDetails: {channelId: '', negative: false},
          youtubeVideoDetails: {negative: false, videoId: ''}
        }
      ],
      targetingType: ''
    }
  ],
  deleteRequests: [{assignedTargetingOptionIds: [], targetingType: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  body: {
    createRequests: [
      {
        assignedTargetingOptions: [
          {
            ageRangeDetails: {ageRange: ''},
            appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
            assignedTargetingOptionId: '',
            assignedTargetingOptionIdAlias: '',
            audienceGroupDetails: {
              excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
              excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
              includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
              includedCustomListGroup: {settings: [{customListId: ''}]},
              includedFirstAndThirdPartyAudienceGroups: [{}],
              includedGoogleAudienceGroup: {}
            },
            audioContentTypeDetails: {audioContentType: ''},
            authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
            browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
            businessChainDetails: {
              displayName: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
            categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            channelDetails: {channelId: '', negative: false},
            contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
            contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
            contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
            contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
            contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
            dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
            deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
            deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
            digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
            environmentDetails: {environment: ''},
            exchangeDetails: {exchange: ''},
            genderDetails: {gender: ''},
            geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
            householdIncomeDetails: {householdIncome: ''},
            inheritance: '',
            inventorySourceDetails: {inventorySourceId: ''},
            inventorySourceGroupDetails: {inventorySourceGroupId: ''},
            keywordDetails: {keyword: '', negative: false},
            languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
            name: '',
            nativeContentPositionDetails: {contentPosition: ''},
            negativeKeywordListDetails: {negativeKeywordListId: ''},
            omidDetails: {omid: ''},
            onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
            operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
            parentalStatusDetails: {parentalStatus: ''},
            poiDetails: {
              displayName: '',
              latitude: '',
              longitude: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
            regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
            sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
            sessionPositionDetails: {sessionPosition: ''},
            subExchangeDetails: {targetingOptionId: ''},
            targetingType: '',
            thirdPartyVerifierDetails: {
              adloox: {excludedAdlooxCategories: []},
              doubleVerify: {
                appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
                avoidedAgeRatings: [],
                brandSafetyCategories: {
                  avoidUnknownBrandSafetyCategory: false,
                  avoidedHighSeverityCategories: [],
                  avoidedMediumSeverityCategories: []
                },
                customSegmentId: '',
                displayViewability: {iab: '', viewableDuring: ''},
                fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
                videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
              },
              integralAdScience: {
                customSegmentId: [],
                displayViewability: '',
                excludeUnrateable: false,
                excludedAdFraudRisk: '',
                excludedAdultRisk: '',
                excludedAlcoholRisk: '',
                excludedDrugsRisk: '',
                excludedGamblingRisk: '',
                excludedHateSpeechRisk: '',
                excludedIllegalDownloadsRisk: '',
                excludedOffensiveLanguageRisk: '',
                excludedViolenceRisk: '',
                traqScoreOption: '',
                videoViewability: ''
              }
            },
            urlDetails: {negative: false, url: ''},
            userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
            videoPlayerSizeDetails: {videoPlayerSize: ''},
            viewabilityDetails: {viewability: ''},
            youtubeChannelDetails: {channelId: '', negative: false},
            youtubeVideoDetails: {negative: false, videoId: ''}
          }
        ],
        targetingType: ''
      }
    ],
    deleteRequests: [{assignedTargetingOptionIds: [], targetingType: ''}]
  },
  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}}/v2/partners/:partnerId:editAssignedTargetingOptions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  createRequests: [
    {
      assignedTargetingOptions: [
        {
          ageRangeDetails: {
            ageRange: ''
          },
          appCategoryDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          appDetails: {
            appId: '',
            appPlatform: '',
            displayName: '',
            negative: false
          },
          assignedTargetingOptionId: '',
          assignedTargetingOptionIdAlias: '',
          audienceGroupDetails: {
            excludedFirstAndThirdPartyAudienceGroup: {
              settings: [
                {
                  firstAndThirdPartyAudienceId: '',
                  recency: ''
                }
              ]
            },
            excludedGoogleAudienceGroup: {
              settings: [
                {
                  googleAudienceId: ''
                }
              ]
            },
            includedCombinedAudienceGroup: {
              settings: [
                {
                  combinedAudienceId: ''
                }
              ]
            },
            includedCustomListGroup: {
              settings: [
                {
                  customListId: ''
                }
              ]
            },
            includedFirstAndThirdPartyAudienceGroups: [
              {}
            ],
            includedGoogleAudienceGroup: {}
          },
          audioContentTypeDetails: {
            audioContentType: ''
          },
          authorizedSellerStatusDetails: {
            authorizedSellerStatus: '',
            targetingOptionId: ''
          },
          browserDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          businessChainDetails: {
            displayName: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          carrierAndIspDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          categoryDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          channelDetails: {
            channelId: '',
            negative: false
          },
          contentDurationDetails: {
            contentDuration: '',
            targetingOptionId: ''
          },
          contentGenreDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          contentInstreamPositionDetails: {
            adType: '',
            contentInstreamPosition: ''
          },
          contentOutstreamPositionDetails: {
            adType: '',
            contentOutstreamPosition: ''
          },
          contentStreamTypeDetails: {
            contentStreamType: '',
            targetingOptionId: ''
          },
          dayAndTimeDetails: {
            dayOfWeek: '',
            endHour: 0,
            startHour: 0,
            timeZoneResolution: ''
          },
          deviceMakeModelDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          deviceTypeDetails: {
            deviceType: '',
            youtubeAndPartnersBidMultiplier: ''
          },
          digitalContentLabelExclusionDetails: {
            excludedContentRatingTier: ''
          },
          environmentDetails: {
            environment: ''
          },
          exchangeDetails: {
            exchange: ''
          },
          genderDetails: {
            gender: ''
          },
          geoRegionDetails: {
            displayName: '',
            geoRegionType: '',
            negative: false,
            targetingOptionId: ''
          },
          householdIncomeDetails: {
            householdIncome: ''
          },
          inheritance: '',
          inventorySourceDetails: {
            inventorySourceId: ''
          },
          inventorySourceGroupDetails: {
            inventorySourceGroupId: ''
          },
          keywordDetails: {
            keyword: '',
            negative: false
          },
          languageDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          name: '',
          nativeContentPositionDetails: {
            contentPosition: ''
          },
          negativeKeywordListDetails: {
            negativeKeywordListId: ''
          },
          omidDetails: {
            omid: ''
          },
          onScreenPositionDetails: {
            adType: '',
            onScreenPosition: '',
            targetingOptionId: ''
          },
          operatingSystemDetails: {
            displayName: '',
            negative: false,
            targetingOptionId: ''
          },
          parentalStatusDetails: {
            parentalStatus: ''
          },
          poiDetails: {
            displayName: '',
            latitude: '',
            longitude: '',
            proximityRadiusAmount: '',
            proximityRadiusUnit: '',
            targetingOptionId: ''
          },
          proximityLocationListDetails: {
            proximityLocationListId: '',
            proximityRadius: '',
            proximityRadiusUnit: ''
          },
          regionalLocationListDetails: {
            negative: false,
            regionalLocationListId: ''
          },
          sensitiveCategoryExclusionDetails: {
            excludedSensitiveCategory: ''
          },
          sessionPositionDetails: {
            sessionPosition: ''
          },
          subExchangeDetails: {
            targetingOptionId: ''
          },
          targetingType: '',
          thirdPartyVerifierDetails: {
            adloox: {
              excludedAdlooxCategories: []
            },
            doubleVerify: {
              appStarRating: {
                avoidInsufficientStarRating: false,
                avoidedStarRating: ''
              },
              avoidedAgeRatings: [],
              brandSafetyCategories: {
                avoidUnknownBrandSafetyCategory: false,
                avoidedHighSeverityCategories: [],
                avoidedMediumSeverityCategories: []
              },
              customSegmentId: '',
              displayViewability: {
                iab: '',
                viewableDuring: ''
              },
              fraudInvalidTraffic: {
                avoidInsufficientOption: false,
                avoidedFraudOption: ''
              },
              videoViewability: {
                playerImpressionRate: '',
                videoIab: '',
                videoViewableRate: ''
              }
            },
            integralAdScience: {
              customSegmentId: [],
              displayViewability: '',
              excludeUnrateable: false,
              excludedAdFraudRisk: '',
              excludedAdultRisk: '',
              excludedAlcoholRisk: '',
              excludedDrugsRisk: '',
              excludedGamblingRisk: '',
              excludedHateSpeechRisk: '',
              excludedIllegalDownloadsRisk: '',
              excludedOffensiveLanguageRisk: '',
              excludedViolenceRisk: '',
              traqScoreOption: '',
              videoViewability: ''
            }
          },
          urlDetails: {
            negative: false,
            url: ''
          },
          userRewardedContentDetails: {
            targetingOptionId: '',
            userRewardedContent: ''
          },
          videoPlayerSizeDetails: {
            videoPlayerSize: ''
          },
          viewabilityDetails: {
            viewability: ''
          },
          youtubeChannelDetails: {
            channelId: '',
            negative: false
          },
          youtubeVideoDetails: {
            negative: false,
            videoId: ''
          }
        }
      ],
      targetingType: ''
    }
  ],
  deleteRequests: [
    {
      assignedTargetingOptionIds: [],
      targetingType: ''
    }
  ]
});

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}}/v2/partners/:partnerId:editAssignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    createRequests: [
      {
        assignedTargetingOptions: [
          {
            ageRangeDetails: {ageRange: ''},
            appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
            assignedTargetingOptionId: '',
            assignedTargetingOptionIdAlias: '',
            audienceGroupDetails: {
              excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
              excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
              includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
              includedCustomListGroup: {settings: [{customListId: ''}]},
              includedFirstAndThirdPartyAudienceGroups: [{}],
              includedGoogleAudienceGroup: {}
            },
            audioContentTypeDetails: {audioContentType: ''},
            authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
            browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
            businessChainDetails: {
              displayName: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
            categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
            channelDetails: {channelId: '', negative: false},
            contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
            contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
            contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
            contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
            contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
            dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
            deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
            deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
            digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
            environmentDetails: {environment: ''},
            exchangeDetails: {exchange: ''},
            genderDetails: {gender: ''},
            geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
            householdIncomeDetails: {householdIncome: ''},
            inheritance: '',
            inventorySourceDetails: {inventorySourceId: ''},
            inventorySourceGroupDetails: {inventorySourceGroupId: ''},
            keywordDetails: {keyword: '', negative: false},
            languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
            name: '',
            nativeContentPositionDetails: {contentPosition: ''},
            negativeKeywordListDetails: {negativeKeywordListId: ''},
            omidDetails: {omid: ''},
            onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
            operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
            parentalStatusDetails: {parentalStatus: ''},
            poiDetails: {
              displayName: '',
              latitude: '',
              longitude: '',
              proximityRadiusAmount: '',
              proximityRadiusUnit: '',
              targetingOptionId: ''
            },
            proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
            regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
            sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
            sessionPositionDetails: {sessionPosition: ''},
            subExchangeDetails: {targetingOptionId: ''},
            targetingType: '',
            thirdPartyVerifierDetails: {
              adloox: {excludedAdlooxCategories: []},
              doubleVerify: {
                appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
                avoidedAgeRatings: [],
                brandSafetyCategories: {
                  avoidUnknownBrandSafetyCategory: false,
                  avoidedHighSeverityCategories: [],
                  avoidedMediumSeverityCategories: []
                },
                customSegmentId: '',
                displayViewability: {iab: '', viewableDuring: ''},
                fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
                videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
              },
              integralAdScience: {
                customSegmentId: [],
                displayViewability: '',
                excludeUnrateable: false,
                excludedAdFraudRisk: '',
                excludedAdultRisk: '',
                excludedAlcoholRisk: '',
                excludedDrugsRisk: '',
                excludedGamblingRisk: '',
                excludedHateSpeechRisk: '',
                excludedIllegalDownloadsRisk: '',
                excludedOffensiveLanguageRisk: '',
                excludedViolenceRisk: '',
                traqScoreOption: '',
                videoViewability: ''
              }
            },
            urlDetails: {negative: false, url: ''},
            userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
            videoPlayerSizeDetails: {videoPlayerSize: ''},
            viewabilityDetails: {viewability: ''},
            youtubeChannelDetails: {channelId: '', negative: false},
            youtubeVideoDetails: {negative: false, videoId: ''}
          }
        ],
        targetingType: ''
      }
    ],
    deleteRequests: [{assignedTargetingOptionIds: [], targetingType: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createRequests":[{"assignedTargetingOptions":[{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}],"targetingType":""}],"deleteRequests":[{"assignedTargetingOptionIds":[],"targetingType":""}]}'
};

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 = @{ @"createRequests": @[ @{ @"assignedTargetingOptions": @[ @{ @"ageRangeDetails": @{ @"ageRange": @"" }, @"appCategoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"appDetails": @{ @"appId": @"", @"appPlatform": @"", @"displayName": @"", @"negative": @NO }, @"assignedTargetingOptionId": @"", @"assignedTargetingOptionIdAlias": @"", @"audienceGroupDetails": @{ @"excludedFirstAndThirdPartyAudienceGroup": @{ @"settings": @[ @{ @"firstAndThirdPartyAudienceId": @"", @"recency": @"" } ] }, @"excludedGoogleAudienceGroup": @{ @"settings": @[ @{ @"googleAudienceId": @"" } ] }, @"includedCombinedAudienceGroup": @{ @"settings": @[ @{ @"combinedAudienceId": @"" } ] }, @"includedCustomListGroup": @{ @"settings": @[ @{ @"customListId": @"" } ] }, @"includedFirstAndThirdPartyAudienceGroups": @[ @{  } ], @"includedGoogleAudienceGroup": @{  } }, @"audioContentTypeDetails": @{ @"audioContentType": @"" }, @"authorizedSellerStatusDetails": @{ @"authorizedSellerStatus": @"", @"targetingOptionId": @"" }, @"browserDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"businessChainDetails": @{ @"displayName": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" }, @"carrierAndIspDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"categoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"channelDetails": @{ @"channelId": @"", @"negative": @NO }, @"contentDurationDetails": @{ @"contentDuration": @"", @"targetingOptionId": @"" }, @"contentGenreDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"contentInstreamPositionDetails": @{ @"adType": @"", @"contentInstreamPosition": @"" }, @"contentOutstreamPositionDetails": @{ @"adType": @"", @"contentOutstreamPosition": @"" }, @"contentStreamTypeDetails": @{ @"contentStreamType": @"", @"targetingOptionId": @"" }, @"dayAndTimeDetails": @{ @"dayOfWeek": @"", @"endHour": @0, @"startHour": @0, @"timeZoneResolution": @"" }, @"deviceMakeModelDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"deviceTypeDetails": @{ @"deviceType": @"", @"youtubeAndPartnersBidMultiplier": @"" }, @"digitalContentLabelExclusionDetails": @{ @"excludedContentRatingTier": @"" }, @"environmentDetails": @{ @"environment": @"" }, @"exchangeDetails": @{ @"exchange": @"" }, @"genderDetails": @{ @"gender": @"" }, @"geoRegionDetails": @{ @"displayName": @"", @"geoRegionType": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"householdIncomeDetails": @{ @"householdIncome": @"" }, @"inheritance": @"", @"inventorySourceDetails": @{ @"inventorySourceId": @"" }, @"inventorySourceGroupDetails": @{ @"inventorySourceGroupId": @"" }, @"keywordDetails": @{ @"keyword": @"", @"negative": @NO }, @"languageDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"name": @"", @"nativeContentPositionDetails": @{ @"contentPosition": @"" }, @"negativeKeywordListDetails": @{ @"negativeKeywordListId": @"" }, @"omidDetails": @{ @"omid": @"" }, @"onScreenPositionDetails": @{ @"adType": @"", @"onScreenPosition": @"", @"targetingOptionId": @"" }, @"operatingSystemDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" }, @"parentalStatusDetails": @{ @"parentalStatus": @"" }, @"poiDetails": @{ @"displayName": @"", @"latitude": @"", @"longitude": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" }, @"proximityLocationListDetails": @{ @"proximityLocationListId": @"", @"proximityRadius": @"", @"proximityRadiusUnit": @"" }, @"regionalLocationListDetails": @{ @"negative": @NO, @"regionalLocationListId": @"" }, @"sensitiveCategoryExclusionDetails": @{ @"excludedSensitiveCategory": @"" }, @"sessionPositionDetails": @{ @"sessionPosition": @"" }, @"subExchangeDetails": @{ @"targetingOptionId": @"" }, @"targetingType": @"", @"thirdPartyVerifierDetails": @{ @"adloox": @{ @"excludedAdlooxCategories": @[  ] }, @"doubleVerify": @{ @"appStarRating": @{ @"avoidInsufficientStarRating": @NO, @"avoidedStarRating": @"" }, @"avoidedAgeRatings": @[  ], @"brandSafetyCategories": @{ @"avoidUnknownBrandSafetyCategory": @NO, @"avoidedHighSeverityCategories": @[  ], @"avoidedMediumSeverityCategories": @[  ] }, @"customSegmentId": @"", @"displayViewability": @{ @"iab": @"", @"viewableDuring": @"" }, @"fraudInvalidTraffic": @{ @"avoidInsufficientOption": @NO, @"avoidedFraudOption": @"" }, @"videoViewability": @{ @"playerImpressionRate": @"", @"videoIab": @"", @"videoViewableRate": @"" } }, @"integralAdScience": @{ @"customSegmentId": @[  ], @"displayViewability": @"", @"excludeUnrateable": @NO, @"excludedAdFraudRisk": @"", @"excludedAdultRisk": @"", @"excludedAlcoholRisk": @"", @"excludedDrugsRisk": @"", @"excludedGamblingRisk": @"", @"excludedHateSpeechRisk": @"", @"excludedIllegalDownloadsRisk": @"", @"excludedOffensiveLanguageRisk": @"", @"excludedViolenceRisk": @"", @"traqScoreOption": @"", @"videoViewability": @"" } }, @"urlDetails": @{ @"negative": @NO, @"url": @"" }, @"userRewardedContentDetails": @{ @"targetingOptionId": @"", @"userRewardedContent": @"" }, @"videoPlayerSizeDetails": @{ @"videoPlayerSize": @"" }, @"viewabilityDetails": @{ @"viewability": @"" }, @"youtubeChannelDetails": @{ @"channelId": @"", @"negative": @NO }, @"youtubeVideoDetails": @{ @"negative": @NO, @"videoId": @"" } } ], @"targetingType": @"" } ],
                              @"deleteRequests": @[ @{ @"assignedTargetingOptionIds": @[  ], @"targetingType": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions"]
                                                       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}}/v2/partners/:partnerId:editAssignedTargetingOptions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions",
  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([
    'createRequests' => [
        [
                'assignedTargetingOptions' => [
                                [
                                                                'ageRangeDetails' => [
                                                                                                                                'ageRange' => ''
                                                                ],
                                                                'appCategoryDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'appDetails' => [
                                                                                                                                'appId' => '',
                                                                                                                                'appPlatform' => '',
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null
                                                                ],
                                                                'assignedTargetingOptionId' => '',
                                                                'assignedTargetingOptionIdAlias' => '',
                                                                'audienceGroupDetails' => [
                                                                                                                                'excludedFirstAndThirdPartyAudienceGroup' => [
                                                                                                                                                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'firstAndThirdPartyAudienceId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'recency' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'excludedGoogleAudienceGroup' => [
                                                                                                                                                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'googleAudienceId' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'includedCombinedAudienceGroup' => [
                                                                                                                                                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'combinedAudienceId' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'includedCustomListGroup' => [
                                                                                                                                                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'customListId' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'includedFirstAndThirdPartyAudienceGroups' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'includedGoogleAudienceGroup' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'audioContentTypeDetails' => [
                                                                                                                                'audioContentType' => ''
                                                                ],
                                                                'authorizedSellerStatusDetails' => [
                                                                                                                                'authorizedSellerStatus' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'browserDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'businessChainDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'proximityRadiusAmount' => '',
                                                                                                                                'proximityRadiusUnit' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'carrierAndIspDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'categoryDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'channelDetails' => [
                                                                                                                                'channelId' => '',
                                                                                                                                'negative' => null
                                                                ],
                                                                'contentDurationDetails' => [
                                                                                                                                'contentDuration' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'contentGenreDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'contentInstreamPositionDetails' => [
                                                                                                                                'adType' => '',
                                                                                                                                'contentInstreamPosition' => ''
                                                                ],
                                                                'contentOutstreamPositionDetails' => [
                                                                                                                                'adType' => '',
                                                                                                                                'contentOutstreamPosition' => ''
                                                                ],
                                                                'contentStreamTypeDetails' => [
                                                                                                                                'contentStreamType' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'dayAndTimeDetails' => [
                                                                                                                                'dayOfWeek' => '',
                                                                                                                                'endHour' => 0,
                                                                                                                                'startHour' => 0,
                                                                                                                                'timeZoneResolution' => ''
                                                                ],
                                                                'deviceMakeModelDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'deviceTypeDetails' => [
                                                                                                                                'deviceType' => '',
                                                                                                                                'youtubeAndPartnersBidMultiplier' => ''
                                                                ],
                                                                'digitalContentLabelExclusionDetails' => [
                                                                                                                                'excludedContentRatingTier' => ''
                                                                ],
                                                                'environmentDetails' => [
                                                                                                                                'environment' => ''
                                                                ],
                                                                'exchangeDetails' => [
                                                                                                                                'exchange' => ''
                                                                ],
                                                                'genderDetails' => [
                                                                                                                                'gender' => ''
                                                                ],
                                                                'geoRegionDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'geoRegionType' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'householdIncomeDetails' => [
                                                                                                                                'householdIncome' => ''
                                                                ],
                                                                'inheritance' => '',
                                                                'inventorySourceDetails' => [
                                                                                                                                'inventorySourceId' => ''
                                                                ],
                                                                'inventorySourceGroupDetails' => [
                                                                                                                                'inventorySourceGroupId' => ''
                                                                ],
                                                                'keywordDetails' => [
                                                                                                                                'keyword' => '',
                                                                                                                                'negative' => null
                                                                ],
                                                                'languageDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'name' => '',
                                                                'nativeContentPositionDetails' => [
                                                                                                                                'contentPosition' => ''
                                                                ],
                                                                'negativeKeywordListDetails' => [
                                                                                                                                'negativeKeywordListId' => ''
                                                                ],
                                                                'omidDetails' => [
                                                                                                                                'omid' => ''
                                                                ],
                                                                'onScreenPositionDetails' => [
                                                                                                                                'adType' => '',
                                                                                                                                'onScreenPosition' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'operatingSystemDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'negative' => null,
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'parentalStatusDetails' => [
                                                                                                                                'parentalStatus' => ''
                                                                ],
                                                                'poiDetails' => [
                                                                                                                                'displayName' => '',
                                                                                                                                'latitude' => '',
                                                                                                                                'longitude' => '',
                                                                                                                                'proximityRadiusAmount' => '',
                                                                                                                                'proximityRadiusUnit' => '',
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'proximityLocationListDetails' => [
                                                                                                                                'proximityLocationListId' => '',
                                                                                                                                'proximityRadius' => '',
                                                                                                                                'proximityRadiusUnit' => ''
                                                                ],
                                                                'regionalLocationListDetails' => [
                                                                                                                                'negative' => null,
                                                                                                                                'regionalLocationListId' => ''
                                                                ],
                                                                'sensitiveCategoryExclusionDetails' => [
                                                                                                                                'excludedSensitiveCategory' => ''
                                                                ],
                                                                'sessionPositionDetails' => [
                                                                                                                                'sessionPosition' => ''
                                                                ],
                                                                'subExchangeDetails' => [
                                                                                                                                'targetingOptionId' => ''
                                                                ],
                                                                'targetingType' => '',
                                                                'thirdPartyVerifierDetails' => [
                                                                                                                                'adloox' => [
                                                                                                                                                                                                                                                                'excludedAdlooxCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'doubleVerify' => [
                                                                                                                                                                                                                                                                'appStarRating' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidInsufficientStarRating' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidedStarRating' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'avoidedAgeRatings' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'brandSafetyCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidUnknownBrandSafetyCategory' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidedHighSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidedMediumSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'customSegmentId' => '',
                                                                                                                                                                                                                                                                'displayViewability' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iab' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'viewableDuring' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'fraudInvalidTraffic' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidInsufficientOption' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'avoidedFraudOption' => ''
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'videoViewability' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'playerImpressionRate' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'videoIab' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'videoViewableRate' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'integralAdScience' => [
                                                                                                                                                                                                                                                                'customSegmentId' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'displayViewability' => '',
                                                                                                                                                                                                                                                                'excludeUnrateable' => null,
                                                                                                                                                                                                                                                                'excludedAdFraudRisk' => '',
                                                                                                                                                                                                                                                                'excludedAdultRisk' => '',
                                                                                                                                                                                                                                                                'excludedAlcoholRisk' => '',
                                                                                                                                                                                                                                                                'excludedDrugsRisk' => '',
                                                                                                                                                                                                                                                                'excludedGamblingRisk' => '',
                                                                                                                                                                                                                                                                'excludedHateSpeechRisk' => '',
                                                                                                                                                                                                                                                                'excludedIllegalDownloadsRisk' => '',
                                                                                                                                                                                                                                                                'excludedOffensiveLanguageRisk' => '',
                                                                                                                                                                                                                                                                'excludedViolenceRisk' => '',
                                                                                                                                                                                                                                                                'traqScoreOption' => '',
                                                                                                                                                                                                                                                                'videoViewability' => ''
                                                                                                                                ]
                                                                ],
                                                                'urlDetails' => [
                                                                                                                                'negative' => null,
                                                                                                                                'url' => ''
                                                                ],
                                                                'userRewardedContentDetails' => [
                                                                                                                                'targetingOptionId' => '',
                                                                                                                                'userRewardedContent' => ''
                                                                ],
                                                                'videoPlayerSizeDetails' => [
                                                                                                                                'videoPlayerSize' => ''
                                                                ],
                                                                'viewabilityDetails' => [
                                                                                                                                'viewability' => ''
                                                                ],
                                                                'youtubeChannelDetails' => [
                                                                                                                                'channelId' => '',
                                                                                                                                'negative' => null
                                                                ],
                                                                'youtubeVideoDetails' => [
                                                                                                                                'negative' => null,
                                                                                                                                'videoId' => ''
                                                                ]
                                ]
                ],
                'targetingType' => ''
        ]
    ],
    'deleteRequests' => [
        [
                'assignedTargetingOptionIds' => [
                                
                ],
                'targetingType' => ''
        ]
    ]
  ]),
  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}}/v2/partners/:partnerId:editAssignedTargetingOptions', [
  'body' => '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'createRequests' => [
    [
        'assignedTargetingOptions' => [
                [
                                'ageRangeDetails' => [
                                                                'ageRange' => ''
                                ],
                                'appCategoryDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'appDetails' => [
                                                                'appId' => '',
                                                                'appPlatform' => '',
                                                                'displayName' => '',
                                                                'negative' => null
                                ],
                                'assignedTargetingOptionId' => '',
                                'assignedTargetingOptionIdAlias' => '',
                                'audienceGroupDetails' => [
                                                                'excludedFirstAndThirdPartyAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'firstAndThirdPartyAudienceId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'recency' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'excludedGoogleAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'googleAudienceId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedCombinedAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'combinedAudienceId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedCustomListGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'customListId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedFirstAndThirdPartyAudienceGroups' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'includedGoogleAudienceGroup' => [
                                                                                                                                
                                                                ]
                                ],
                                'audioContentTypeDetails' => [
                                                                'audioContentType' => ''
                                ],
                                'authorizedSellerStatusDetails' => [
                                                                'authorizedSellerStatus' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'browserDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'businessChainDetails' => [
                                                                'displayName' => '',
                                                                'proximityRadiusAmount' => '',
                                                                'proximityRadiusUnit' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'carrierAndIspDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'categoryDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'channelDetails' => [
                                                                'channelId' => '',
                                                                'negative' => null
                                ],
                                'contentDurationDetails' => [
                                                                'contentDuration' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'contentGenreDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'contentInstreamPositionDetails' => [
                                                                'adType' => '',
                                                                'contentInstreamPosition' => ''
                                ],
                                'contentOutstreamPositionDetails' => [
                                                                'adType' => '',
                                                                'contentOutstreamPosition' => ''
                                ],
                                'contentStreamTypeDetails' => [
                                                                'contentStreamType' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'dayAndTimeDetails' => [
                                                                'dayOfWeek' => '',
                                                                'endHour' => 0,
                                                                'startHour' => 0,
                                                                'timeZoneResolution' => ''
                                ],
                                'deviceMakeModelDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'deviceTypeDetails' => [
                                                                'deviceType' => '',
                                                                'youtubeAndPartnersBidMultiplier' => ''
                                ],
                                'digitalContentLabelExclusionDetails' => [
                                                                'excludedContentRatingTier' => ''
                                ],
                                'environmentDetails' => [
                                                                'environment' => ''
                                ],
                                'exchangeDetails' => [
                                                                'exchange' => ''
                                ],
                                'genderDetails' => [
                                                                'gender' => ''
                                ],
                                'geoRegionDetails' => [
                                                                'displayName' => '',
                                                                'geoRegionType' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'householdIncomeDetails' => [
                                                                'householdIncome' => ''
                                ],
                                'inheritance' => '',
                                'inventorySourceDetails' => [
                                                                'inventorySourceId' => ''
                                ],
                                'inventorySourceGroupDetails' => [
                                                                'inventorySourceGroupId' => ''
                                ],
                                'keywordDetails' => [
                                                                'keyword' => '',
                                                                'negative' => null
                                ],
                                'languageDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'name' => '',
                                'nativeContentPositionDetails' => [
                                                                'contentPosition' => ''
                                ],
                                'negativeKeywordListDetails' => [
                                                                'negativeKeywordListId' => ''
                                ],
                                'omidDetails' => [
                                                                'omid' => ''
                                ],
                                'onScreenPositionDetails' => [
                                                                'adType' => '',
                                                                'onScreenPosition' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'operatingSystemDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'parentalStatusDetails' => [
                                                                'parentalStatus' => ''
                                ],
                                'poiDetails' => [
                                                                'displayName' => '',
                                                                'latitude' => '',
                                                                'longitude' => '',
                                                                'proximityRadiusAmount' => '',
                                                                'proximityRadiusUnit' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'proximityLocationListDetails' => [
                                                                'proximityLocationListId' => '',
                                                                'proximityRadius' => '',
                                                                'proximityRadiusUnit' => ''
                                ],
                                'regionalLocationListDetails' => [
                                                                'negative' => null,
                                                                'regionalLocationListId' => ''
                                ],
                                'sensitiveCategoryExclusionDetails' => [
                                                                'excludedSensitiveCategory' => ''
                                ],
                                'sessionPositionDetails' => [
                                                                'sessionPosition' => ''
                                ],
                                'subExchangeDetails' => [
                                                                'targetingOptionId' => ''
                                ],
                                'targetingType' => '',
                                'thirdPartyVerifierDetails' => [
                                                                'adloox' => [
                                                                                                                                'excludedAdlooxCategories' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'doubleVerify' => [
                                                                                                                                'appStarRating' => [
                                                                                                                                                                                                                                                                'avoidInsufficientStarRating' => null,
                                                                                                                                                                                                                                                                'avoidedStarRating' => ''
                                                                                                                                ],
                                                                                                                                'avoidedAgeRatings' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'brandSafetyCategories' => [
                                                                                                                                                                                                                                                                'avoidUnknownBrandSafetyCategory' => null,
                                                                                                                                                                                                                                                                'avoidedHighSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'avoidedMediumSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'customSegmentId' => '',
                                                                                                                                'displayViewability' => [
                                                                                                                                                                                                                                                                'iab' => '',
                                                                                                                                                                                                                                                                'viewableDuring' => ''
                                                                                                                                ],
                                                                                                                                'fraudInvalidTraffic' => [
                                                                                                                                                                                                                                                                'avoidInsufficientOption' => null,
                                                                                                                                                                                                                                                                'avoidedFraudOption' => ''
                                                                                                                                ],
                                                                                                                                'videoViewability' => [
                                                                                                                                                                                                                                                                'playerImpressionRate' => '',
                                                                                                                                                                                                                                                                'videoIab' => '',
                                                                                                                                                                                                                                                                'videoViewableRate' => ''
                                                                                                                                ]
                                                                ],
                                                                'integralAdScience' => [
                                                                                                                                'customSegmentId' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'displayViewability' => '',
                                                                                                                                'excludeUnrateable' => null,
                                                                                                                                'excludedAdFraudRisk' => '',
                                                                                                                                'excludedAdultRisk' => '',
                                                                                                                                'excludedAlcoholRisk' => '',
                                                                                                                                'excludedDrugsRisk' => '',
                                                                                                                                'excludedGamblingRisk' => '',
                                                                                                                                'excludedHateSpeechRisk' => '',
                                                                                                                                'excludedIllegalDownloadsRisk' => '',
                                                                                                                                'excludedOffensiveLanguageRisk' => '',
                                                                                                                                'excludedViolenceRisk' => '',
                                                                                                                                'traqScoreOption' => '',
                                                                                                                                'videoViewability' => ''
                                                                ]
                                ],
                                'urlDetails' => [
                                                                'negative' => null,
                                                                'url' => ''
                                ],
                                'userRewardedContentDetails' => [
                                                                'targetingOptionId' => '',
                                                                'userRewardedContent' => ''
                                ],
                                'videoPlayerSizeDetails' => [
                                                                'videoPlayerSize' => ''
                                ],
                                'viewabilityDetails' => [
                                                                'viewability' => ''
                                ],
                                'youtubeChannelDetails' => [
                                                                'channelId' => '',
                                                                'negative' => null
                                ],
                                'youtubeVideoDetails' => [
                                                                'negative' => null,
                                                                'videoId' => ''
                                ]
                ]
        ],
        'targetingType' => ''
    ]
  ],
  'deleteRequests' => [
    [
        'assignedTargetingOptionIds' => [
                
        ],
        'targetingType' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'createRequests' => [
    [
        'assignedTargetingOptions' => [
                [
                                'ageRangeDetails' => [
                                                                'ageRange' => ''
                                ],
                                'appCategoryDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'appDetails' => [
                                                                'appId' => '',
                                                                'appPlatform' => '',
                                                                'displayName' => '',
                                                                'negative' => null
                                ],
                                'assignedTargetingOptionId' => '',
                                'assignedTargetingOptionIdAlias' => '',
                                'audienceGroupDetails' => [
                                                                'excludedFirstAndThirdPartyAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'firstAndThirdPartyAudienceId' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'recency' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'excludedGoogleAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'googleAudienceId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedCombinedAudienceGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'combinedAudienceId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedCustomListGroup' => [
                                                                                                                                'settings' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'customListId' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'includedFirstAndThirdPartyAudienceGroups' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'includedGoogleAudienceGroup' => [
                                                                                                                                
                                                                ]
                                ],
                                'audioContentTypeDetails' => [
                                                                'audioContentType' => ''
                                ],
                                'authorizedSellerStatusDetails' => [
                                                                'authorizedSellerStatus' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'browserDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'businessChainDetails' => [
                                                                'displayName' => '',
                                                                'proximityRadiusAmount' => '',
                                                                'proximityRadiusUnit' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'carrierAndIspDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'categoryDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'channelDetails' => [
                                                                'channelId' => '',
                                                                'negative' => null
                                ],
                                'contentDurationDetails' => [
                                                                'contentDuration' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'contentGenreDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'contentInstreamPositionDetails' => [
                                                                'adType' => '',
                                                                'contentInstreamPosition' => ''
                                ],
                                'contentOutstreamPositionDetails' => [
                                                                'adType' => '',
                                                                'contentOutstreamPosition' => ''
                                ],
                                'contentStreamTypeDetails' => [
                                                                'contentStreamType' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'dayAndTimeDetails' => [
                                                                'dayOfWeek' => '',
                                                                'endHour' => 0,
                                                                'startHour' => 0,
                                                                'timeZoneResolution' => ''
                                ],
                                'deviceMakeModelDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'deviceTypeDetails' => [
                                                                'deviceType' => '',
                                                                'youtubeAndPartnersBidMultiplier' => ''
                                ],
                                'digitalContentLabelExclusionDetails' => [
                                                                'excludedContentRatingTier' => ''
                                ],
                                'environmentDetails' => [
                                                                'environment' => ''
                                ],
                                'exchangeDetails' => [
                                                                'exchange' => ''
                                ],
                                'genderDetails' => [
                                                                'gender' => ''
                                ],
                                'geoRegionDetails' => [
                                                                'displayName' => '',
                                                                'geoRegionType' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'householdIncomeDetails' => [
                                                                'householdIncome' => ''
                                ],
                                'inheritance' => '',
                                'inventorySourceDetails' => [
                                                                'inventorySourceId' => ''
                                ],
                                'inventorySourceGroupDetails' => [
                                                                'inventorySourceGroupId' => ''
                                ],
                                'keywordDetails' => [
                                                                'keyword' => '',
                                                                'negative' => null
                                ],
                                'languageDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'name' => '',
                                'nativeContentPositionDetails' => [
                                                                'contentPosition' => ''
                                ],
                                'negativeKeywordListDetails' => [
                                                                'negativeKeywordListId' => ''
                                ],
                                'omidDetails' => [
                                                                'omid' => ''
                                ],
                                'onScreenPositionDetails' => [
                                                                'adType' => '',
                                                                'onScreenPosition' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'operatingSystemDetails' => [
                                                                'displayName' => '',
                                                                'negative' => null,
                                                                'targetingOptionId' => ''
                                ],
                                'parentalStatusDetails' => [
                                                                'parentalStatus' => ''
                                ],
                                'poiDetails' => [
                                                                'displayName' => '',
                                                                'latitude' => '',
                                                                'longitude' => '',
                                                                'proximityRadiusAmount' => '',
                                                                'proximityRadiusUnit' => '',
                                                                'targetingOptionId' => ''
                                ],
                                'proximityLocationListDetails' => [
                                                                'proximityLocationListId' => '',
                                                                'proximityRadius' => '',
                                                                'proximityRadiusUnit' => ''
                                ],
                                'regionalLocationListDetails' => [
                                                                'negative' => null,
                                                                'regionalLocationListId' => ''
                                ],
                                'sensitiveCategoryExclusionDetails' => [
                                                                'excludedSensitiveCategory' => ''
                                ],
                                'sessionPositionDetails' => [
                                                                'sessionPosition' => ''
                                ],
                                'subExchangeDetails' => [
                                                                'targetingOptionId' => ''
                                ],
                                'targetingType' => '',
                                'thirdPartyVerifierDetails' => [
                                                                'adloox' => [
                                                                                                                                'excludedAdlooxCategories' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'doubleVerify' => [
                                                                                                                                'appStarRating' => [
                                                                                                                                                                                                                                                                'avoidInsufficientStarRating' => null,
                                                                                                                                                                                                                                                                'avoidedStarRating' => ''
                                                                                                                                ],
                                                                                                                                'avoidedAgeRatings' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'brandSafetyCategories' => [
                                                                                                                                                                                                                                                                'avoidUnknownBrandSafetyCategory' => null,
                                                                                                                                                                                                                                                                'avoidedHighSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'avoidedMediumSeverityCategories' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'customSegmentId' => '',
                                                                                                                                'displayViewability' => [
                                                                                                                                                                                                                                                                'iab' => '',
                                                                                                                                                                                                                                                                'viewableDuring' => ''
                                                                                                                                ],
                                                                                                                                'fraudInvalidTraffic' => [
                                                                                                                                                                                                                                                                'avoidInsufficientOption' => null,
                                                                                                                                                                                                                                                                'avoidedFraudOption' => ''
                                                                                                                                ],
                                                                                                                                'videoViewability' => [
                                                                                                                                                                                                                                                                'playerImpressionRate' => '',
                                                                                                                                                                                                                                                                'videoIab' => '',
                                                                                                                                                                                                                                                                'videoViewableRate' => ''
                                                                                                                                ]
                                                                ],
                                                                'integralAdScience' => [
                                                                                                                                'customSegmentId' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'displayViewability' => '',
                                                                                                                                'excludeUnrateable' => null,
                                                                                                                                'excludedAdFraudRisk' => '',
                                                                                                                                'excludedAdultRisk' => '',
                                                                                                                                'excludedAlcoholRisk' => '',
                                                                                                                                'excludedDrugsRisk' => '',
                                                                                                                                'excludedGamblingRisk' => '',
                                                                                                                                'excludedHateSpeechRisk' => '',
                                                                                                                                'excludedIllegalDownloadsRisk' => '',
                                                                                                                                'excludedOffensiveLanguageRisk' => '',
                                                                                                                                'excludedViolenceRisk' => '',
                                                                                                                                'traqScoreOption' => '',
                                                                                                                                'videoViewability' => ''
                                                                ]
                                ],
                                'urlDetails' => [
                                                                'negative' => null,
                                                                'url' => ''
                                ],
                                'userRewardedContentDetails' => [
                                                                'targetingOptionId' => '',
                                                                'userRewardedContent' => ''
                                ],
                                'videoPlayerSizeDetails' => [
                                                                'videoPlayerSize' => ''
                                ],
                                'viewabilityDetails' => [
                                                                'viewability' => ''
                                ],
                                'youtubeChannelDetails' => [
                                                                'channelId' => '',
                                                                'negative' => null
                                ],
                                'youtubeVideoDetails' => [
                                                                'negative' => null,
                                                                'videoId' => ''
                                ]
                ]
        ],
        'targetingType' => ''
    ]
  ],
  'deleteRequests' => [
    [
        'assignedTargetingOptionIds' => [
                
        ],
        'targetingType' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions');
$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}}/v2/partners/:partnerId:editAssignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/partners/:partnerId:editAssignedTargetingOptions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions"

payload = {
    "createRequests": [
        {
            "assignedTargetingOptions": [
                {
                    "ageRangeDetails": { "ageRange": "" },
                    "appCategoryDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "appDetails": {
                        "appId": "",
                        "appPlatform": "",
                        "displayName": "",
                        "negative": False
                    },
                    "assignedTargetingOptionId": "",
                    "assignedTargetingOptionIdAlias": "",
                    "audienceGroupDetails": {
                        "excludedFirstAndThirdPartyAudienceGroup": { "settings": [
                                {
                                    "firstAndThirdPartyAudienceId": "",
                                    "recency": ""
                                }
                            ] },
                        "excludedGoogleAudienceGroup": { "settings": [{ "googleAudienceId": "" }] },
                        "includedCombinedAudienceGroup": { "settings": [{ "combinedAudienceId": "" }] },
                        "includedCustomListGroup": { "settings": [{ "customListId": "" }] },
                        "includedFirstAndThirdPartyAudienceGroups": [{}],
                        "includedGoogleAudienceGroup": {}
                    },
                    "audioContentTypeDetails": { "audioContentType": "" },
                    "authorizedSellerStatusDetails": {
                        "authorizedSellerStatus": "",
                        "targetingOptionId": ""
                    },
                    "browserDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "businessChainDetails": {
                        "displayName": "",
                        "proximityRadiusAmount": "",
                        "proximityRadiusUnit": "",
                        "targetingOptionId": ""
                    },
                    "carrierAndIspDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "categoryDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "channelDetails": {
                        "channelId": "",
                        "negative": False
                    },
                    "contentDurationDetails": {
                        "contentDuration": "",
                        "targetingOptionId": ""
                    },
                    "contentGenreDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "contentInstreamPositionDetails": {
                        "adType": "",
                        "contentInstreamPosition": ""
                    },
                    "contentOutstreamPositionDetails": {
                        "adType": "",
                        "contentOutstreamPosition": ""
                    },
                    "contentStreamTypeDetails": {
                        "contentStreamType": "",
                        "targetingOptionId": ""
                    },
                    "dayAndTimeDetails": {
                        "dayOfWeek": "",
                        "endHour": 0,
                        "startHour": 0,
                        "timeZoneResolution": ""
                    },
                    "deviceMakeModelDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "deviceTypeDetails": {
                        "deviceType": "",
                        "youtubeAndPartnersBidMultiplier": ""
                    },
                    "digitalContentLabelExclusionDetails": { "excludedContentRatingTier": "" },
                    "environmentDetails": { "environment": "" },
                    "exchangeDetails": { "exchange": "" },
                    "genderDetails": { "gender": "" },
                    "geoRegionDetails": {
                        "displayName": "",
                        "geoRegionType": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "householdIncomeDetails": { "householdIncome": "" },
                    "inheritance": "",
                    "inventorySourceDetails": { "inventorySourceId": "" },
                    "inventorySourceGroupDetails": { "inventorySourceGroupId": "" },
                    "keywordDetails": {
                        "keyword": "",
                        "negative": False
                    },
                    "languageDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "name": "",
                    "nativeContentPositionDetails": { "contentPosition": "" },
                    "negativeKeywordListDetails": { "negativeKeywordListId": "" },
                    "omidDetails": { "omid": "" },
                    "onScreenPositionDetails": {
                        "adType": "",
                        "onScreenPosition": "",
                        "targetingOptionId": ""
                    },
                    "operatingSystemDetails": {
                        "displayName": "",
                        "negative": False,
                        "targetingOptionId": ""
                    },
                    "parentalStatusDetails": { "parentalStatus": "" },
                    "poiDetails": {
                        "displayName": "",
                        "latitude": "",
                        "longitude": "",
                        "proximityRadiusAmount": "",
                        "proximityRadiusUnit": "",
                        "targetingOptionId": ""
                    },
                    "proximityLocationListDetails": {
                        "proximityLocationListId": "",
                        "proximityRadius": "",
                        "proximityRadiusUnit": ""
                    },
                    "regionalLocationListDetails": {
                        "negative": False,
                        "regionalLocationListId": ""
                    },
                    "sensitiveCategoryExclusionDetails": { "excludedSensitiveCategory": "" },
                    "sessionPositionDetails": { "sessionPosition": "" },
                    "subExchangeDetails": { "targetingOptionId": "" },
                    "targetingType": "",
                    "thirdPartyVerifierDetails": {
                        "adloox": { "excludedAdlooxCategories": [] },
                        "doubleVerify": {
                            "appStarRating": {
                                "avoidInsufficientStarRating": False,
                                "avoidedStarRating": ""
                            },
                            "avoidedAgeRatings": [],
                            "brandSafetyCategories": {
                                "avoidUnknownBrandSafetyCategory": False,
                                "avoidedHighSeverityCategories": [],
                                "avoidedMediumSeverityCategories": []
                            },
                            "customSegmentId": "",
                            "displayViewability": {
                                "iab": "",
                                "viewableDuring": ""
                            },
                            "fraudInvalidTraffic": {
                                "avoidInsufficientOption": False,
                                "avoidedFraudOption": ""
                            },
                            "videoViewability": {
                                "playerImpressionRate": "",
                                "videoIab": "",
                                "videoViewableRate": ""
                            }
                        },
                        "integralAdScience": {
                            "customSegmentId": [],
                            "displayViewability": "",
                            "excludeUnrateable": False,
                            "excludedAdFraudRisk": "",
                            "excludedAdultRisk": "",
                            "excludedAlcoholRisk": "",
                            "excludedDrugsRisk": "",
                            "excludedGamblingRisk": "",
                            "excludedHateSpeechRisk": "",
                            "excludedIllegalDownloadsRisk": "",
                            "excludedOffensiveLanguageRisk": "",
                            "excludedViolenceRisk": "",
                            "traqScoreOption": "",
                            "videoViewability": ""
                        }
                    },
                    "urlDetails": {
                        "negative": False,
                        "url": ""
                    },
                    "userRewardedContentDetails": {
                        "targetingOptionId": "",
                        "userRewardedContent": ""
                    },
                    "videoPlayerSizeDetails": { "videoPlayerSize": "" },
                    "viewabilityDetails": { "viewability": "" },
                    "youtubeChannelDetails": {
                        "channelId": "",
                        "negative": False
                    },
                    "youtubeVideoDetails": {
                        "negative": False,
                        "videoId": ""
                    }
                }
            ],
            "targetingType": ""
        }
    ],
    "deleteRequests": [
        {
            "assignedTargetingOptionIds": [],
            "targetingType": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions"

payload <- "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\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}}/v2/partners/:partnerId:editAssignedTargetingOptions")

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  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\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/v2/partners/:partnerId:editAssignedTargetingOptions') do |req|
  req.body = "{\n  \"createRequests\": [\n    {\n      \"assignedTargetingOptions\": [\n        {\n          \"ageRangeDetails\": {\n            \"ageRange\": \"\"\n          },\n          \"appCategoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"appDetails\": {\n            \"appId\": \"\",\n            \"appPlatform\": \"\",\n            \"displayName\": \"\",\n            \"negative\": false\n          },\n          \"assignedTargetingOptionId\": \"\",\n          \"assignedTargetingOptionIdAlias\": \"\",\n          \"audienceGroupDetails\": {\n            \"excludedFirstAndThirdPartyAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"firstAndThirdPartyAudienceId\": \"\",\n                  \"recency\": \"\"\n                }\n              ]\n            },\n            \"excludedGoogleAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"googleAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCombinedAudienceGroup\": {\n              \"settings\": [\n                {\n                  \"combinedAudienceId\": \"\"\n                }\n              ]\n            },\n            \"includedCustomListGroup\": {\n              \"settings\": [\n                {\n                  \"customListId\": \"\"\n                }\n              ]\n            },\n            \"includedFirstAndThirdPartyAudienceGroups\": [\n              {}\n            ],\n            \"includedGoogleAudienceGroup\": {}\n          },\n          \"audioContentTypeDetails\": {\n            \"audioContentType\": \"\"\n          },\n          \"authorizedSellerStatusDetails\": {\n            \"authorizedSellerStatus\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"browserDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"businessChainDetails\": {\n            \"displayName\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"carrierAndIspDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"categoryDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"channelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"contentDurationDetails\": {\n            \"contentDuration\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"contentGenreDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"contentInstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentInstreamPosition\": \"\"\n          },\n          \"contentOutstreamPositionDetails\": {\n            \"adType\": \"\",\n            \"contentOutstreamPosition\": \"\"\n          },\n          \"contentStreamTypeDetails\": {\n            \"contentStreamType\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"dayAndTimeDetails\": {\n            \"dayOfWeek\": \"\",\n            \"endHour\": 0,\n            \"startHour\": 0,\n            \"timeZoneResolution\": \"\"\n          },\n          \"deviceMakeModelDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"deviceTypeDetails\": {\n            \"deviceType\": \"\",\n            \"youtubeAndPartnersBidMultiplier\": \"\"\n          },\n          \"digitalContentLabelExclusionDetails\": {\n            \"excludedContentRatingTier\": \"\"\n          },\n          \"environmentDetails\": {\n            \"environment\": \"\"\n          },\n          \"exchangeDetails\": {\n            \"exchange\": \"\"\n          },\n          \"genderDetails\": {\n            \"gender\": \"\"\n          },\n          \"geoRegionDetails\": {\n            \"displayName\": \"\",\n            \"geoRegionType\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"householdIncomeDetails\": {\n            \"householdIncome\": \"\"\n          },\n          \"inheritance\": \"\",\n          \"inventorySourceDetails\": {\n            \"inventorySourceId\": \"\"\n          },\n          \"inventorySourceGroupDetails\": {\n            \"inventorySourceGroupId\": \"\"\n          },\n          \"keywordDetails\": {\n            \"keyword\": \"\",\n            \"negative\": false\n          },\n          \"languageDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"name\": \"\",\n          \"nativeContentPositionDetails\": {\n            \"contentPosition\": \"\"\n          },\n          \"negativeKeywordListDetails\": {\n            \"negativeKeywordListId\": \"\"\n          },\n          \"omidDetails\": {\n            \"omid\": \"\"\n          },\n          \"onScreenPositionDetails\": {\n            \"adType\": \"\",\n            \"onScreenPosition\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"operatingSystemDetails\": {\n            \"displayName\": \"\",\n            \"negative\": false,\n            \"targetingOptionId\": \"\"\n          },\n          \"parentalStatusDetails\": {\n            \"parentalStatus\": \"\"\n          },\n          \"poiDetails\": {\n            \"displayName\": \"\",\n            \"latitude\": \"\",\n            \"longitude\": \"\",\n            \"proximityRadiusAmount\": \"\",\n            \"proximityRadiusUnit\": \"\",\n            \"targetingOptionId\": \"\"\n          },\n          \"proximityLocationListDetails\": {\n            \"proximityLocationListId\": \"\",\n            \"proximityRadius\": \"\",\n            \"proximityRadiusUnit\": \"\"\n          },\n          \"regionalLocationListDetails\": {\n            \"negative\": false,\n            \"regionalLocationListId\": \"\"\n          },\n          \"sensitiveCategoryExclusionDetails\": {\n            \"excludedSensitiveCategory\": \"\"\n          },\n          \"sessionPositionDetails\": {\n            \"sessionPosition\": \"\"\n          },\n          \"subExchangeDetails\": {\n            \"targetingOptionId\": \"\"\n          },\n          \"targetingType\": \"\",\n          \"thirdPartyVerifierDetails\": {\n            \"adloox\": {\n              \"excludedAdlooxCategories\": []\n            },\n            \"doubleVerify\": {\n              \"appStarRating\": {\n                \"avoidInsufficientStarRating\": false,\n                \"avoidedStarRating\": \"\"\n              },\n              \"avoidedAgeRatings\": [],\n              \"brandSafetyCategories\": {\n                \"avoidUnknownBrandSafetyCategory\": false,\n                \"avoidedHighSeverityCategories\": [],\n                \"avoidedMediumSeverityCategories\": []\n              },\n              \"customSegmentId\": \"\",\n              \"displayViewability\": {\n                \"iab\": \"\",\n                \"viewableDuring\": \"\"\n              },\n              \"fraudInvalidTraffic\": {\n                \"avoidInsufficientOption\": false,\n                \"avoidedFraudOption\": \"\"\n              },\n              \"videoViewability\": {\n                \"playerImpressionRate\": \"\",\n                \"videoIab\": \"\",\n                \"videoViewableRate\": \"\"\n              }\n            },\n            \"integralAdScience\": {\n              \"customSegmentId\": [],\n              \"displayViewability\": \"\",\n              \"excludeUnrateable\": false,\n              \"excludedAdFraudRisk\": \"\",\n              \"excludedAdultRisk\": \"\",\n              \"excludedAlcoholRisk\": \"\",\n              \"excludedDrugsRisk\": \"\",\n              \"excludedGamblingRisk\": \"\",\n              \"excludedHateSpeechRisk\": \"\",\n              \"excludedIllegalDownloadsRisk\": \"\",\n              \"excludedOffensiveLanguageRisk\": \"\",\n              \"excludedViolenceRisk\": \"\",\n              \"traqScoreOption\": \"\",\n              \"videoViewability\": \"\"\n            }\n          },\n          \"urlDetails\": {\n            \"negative\": false,\n            \"url\": \"\"\n          },\n          \"userRewardedContentDetails\": {\n            \"targetingOptionId\": \"\",\n            \"userRewardedContent\": \"\"\n          },\n          \"videoPlayerSizeDetails\": {\n            \"videoPlayerSize\": \"\"\n          },\n          \"viewabilityDetails\": {\n            \"viewability\": \"\"\n          },\n          \"youtubeChannelDetails\": {\n            \"channelId\": \"\",\n            \"negative\": false\n          },\n          \"youtubeVideoDetails\": {\n            \"negative\": false,\n            \"videoId\": \"\"\n          }\n        }\n      ],\n      \"targetingType\": \"\"\n    }\n  ],\n  \"deleteRequests\": [\n    {\n      \"assignedTargetingOptionIds\": [],\n      \"targetingType\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions";

    let payload = json!({
        "createRequests": (
            json!({
                "assignedTargetingOptions": (
                    json!({
                        "ageRangeDetails": json!({"ageRange": ""}),
                        "appCategoryDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "appDetails": json!({
                            "appId": "",
                            "appPlatform": "",
                            "displayName": "",
                            "negative": false
                        }),
                        "assignedTargetingOptionId": "",
                        "assignedTargetingOptionIdAlias": "",
                        "audienceGroupDetails": json!({
                            "excludedFirstAndThirdPartyAudienceGroup": json!({"settings": (
                                    json!({
                                        "firstAndThirdPartyAudienceId": "",
                                        "recency": ""
                                    })
                                )}),
                            "excludedGoogleAudienceGroup": json!({"settings": (json!({"googleAudienceId": ""}))}),
                            "includedCombinedAudienceGroup": json!({"settings": (json!({"combinedAudienceId": ""}))}),
                            "includedCustomListGroup": json!({"settings": (json!({"customListId": ""}))}),
                            "includedFirstAndThirdPartyAudienceGroups": (json!({})),
                            "includedGoogleAudienceGroup": json!({})
                        }),
                        "audioContentTypeDetails": json!({"audioContentType": ""}),
                        "authorizedSellerStatusDetails": json!({
                            "authorizedSellerStatus": "",
                            "targetingOptionId": ""
                        }),
                        "browserDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "businessChainDetails": json!({
                            "displayName": "",
                            "proximityRadiusAmount": "",
                            "proximityRadiusUnit": "",
                            "targetingOptionId": ""
                        }),
                        "carrierAndIspDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "categoryDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "channelDetails": json!({
                            "channelId": "",
                            "negative": false
                        }),
                        "contentDurationDetails": json!({
                            "contentDuration": "",
                            "targetingOptionId": ""
                        }),
                        "contentGenreDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "contentInstreamPositionDetails": json!({
                            "adType": "",
                            "contentInstreamPosition": ""
                        }),
                        "contentOutstreamPositionDetails": json!({
                            "adType": "",
                            "contentOutstreamPosition": ""
                        }),
                        "contentStreamTypeDetails": json!({
                            "contentStreamType": "",
                            "targetingOptionId": ""
                        }),
                        "dayAndTimeDetails": json!({
                            "dayOfWeek": "",
                            "endHour": 0,
                            "startHour": 0,
                            "timeZoneResolution": ""
                        }),
                        "deviceMakeModelDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "deviceTypeDetails": json!({
                            "deviceType": "",
                            "youtubeAndPartnersBidMultiplier": ""
                        }),
                        "digitalContentLabelExclusionDetails": json!({"excludedContentRatingTier": ""}),
                        "environmentDetails": json!({"environment": ""}),
                        "exchangeDetails": json!({"exchange": ""}),
                        "genderDetails": json!({"gender": ""}),
                        "geoRegionDetails": json!({
                            "displayName": "",
                            "geoRegionType": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "householdIncomeDetails": json!({"householdIncome": ""}),
                        "inheritance": "",
                        "inventorySourceDetails": json!({"inventorySourceId": ""}),
                        "inventorySourceGroupDetails": json!({"inventorySourceGroupId": ""}),
                        "keywordDetails": json!({
                            "keyword": "",
                            "negative": false
                        }),
                        "languageDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "name": "",
                        "nativeContentPositionDetails": json!({"contentPosition": ""}),
                        "negativeKeywordListDetails": json!({"negativeKeywordListId": ""}),
                        "omidDetails": json!({"omid": ""}),
                        "onScreenPositionDetails": json!({
                            "adType": "",
                            "onScreenPosition": "",
                            "targetingOptionId": ""
                        }),
                        "operatingSystemDetails": json!({
                            "displayName": "",
                            "negative": false,
                            "targetingOptionId": ""
                        }),
                        "parentalStatusDetails": json!({"parentalStatus": ""}),
                        "poiDetails": json!({
                            "displayName": "",
                            "latitude": "",
                            "longitude": "",
                            "proximityRadiusAmount": "",
                            "proximityRadiusUnit": "",
                            "targetingOptionId": ""
                        }),
                        "proximityLocationListDetails": json!({
                            "proximityLocationListId": "",
                            "proximityRadius": "",
                            "proximityRadiusUnit": ""
                        }),
                        "regionalLocationListDetails": json!({
                            "negative": false,
                            "regionalLocationListId": ""
                        }),
                        "sensitiveCategoryExclusionDetails": json!({"excludedSensitiveCategory": ""}),
                        "sessionPositionDetails": json!({"sessionPosition": ""}),
                        "subExchangeDetails": json!({"targetingOptionId": ""}),
                        "targetingType": "",
                        "thirdPartyVerifierDetails": json!({
                            "adloox": json!({"excludedAdlooxCategories": ()}),
                            "doubleVerify": json!({
                                "appStarRating": json!({
                                    "avoidInsufficientStarRating": false,
                                    "avoidedStarRating": ""
                                }),
                                "avoidedAgeRatings": (),
                                "brandSafetyCategories": json!({
                                    "avoidUnknownBrandSafetyCategory": false,
                                    "avoidedHighSeverityCategories": (),
                                    "avoidedMediumSeverityCategories": ()
                                }),
                                "customSegmentId": "",
                                "displayViewability": json!({
                                    "iab": "",
                                    "viewableDuring": ""
                                }),
                                "fraudInvalidTraffic": json!({
                                    "avoidInsufficientOption": false,
                                    "avoidedFraudOption": ""
                                }),
                                "videoViewability": json!({
                                    "playerImpressionRate": "",
                                    "videoIab": "",
                                    "videoViewableRate": ""
                                })
                            }),
                            "integralAdScience": json!({
                                "customSegmentId": (),
                                "displayViewability": "",
                                "excludeUnrateable": false,
                                "excludedAdFraudRisk": "",
                                "excludedAdultRisk": "",
                                "excludedAlcoholRisk": "",
                                "excludedDrugsRisk": "",
                                "excludedGamblingRisk": "",
                                "excludedHateSpeechRisk": "",
                                "excludedIllegalDownloadsRisk": "",
                                "excludedOffensiveLanguageRisk": "",
                                "excludedViolenceRisk": "",
                                "traqScoreOption": "",
                                "videoViewability": ""
                            })
                        }),
                        "urlDetails": json!({
                            "negative": false,
                            "url": ""
                        }),
                        "userRewardedContentDetails": json!({
                            "targetingOptionId": "",
                            "userRewardedContent": ""
                        }),
                        "videoPlayerSizeDetails": json!({"videoPlayerSize": ""}),
                        "viewabilityDetails": json!({"viewability": ""}),
                        "youtubeChannelDetails": json!({
                            "channelId": "",
                            "negative": false
                        }),
                        "youtubeVideoDetails": json!({
                            "negative": false,
                            "videoId": ""
                        })
                    })
                ),
                "targetingType": ""
            })
        ),
        "deleteRequests": (
            json!({
                "assignedTargetingOptionIds": (),
                "targetingType": ""
            })
        )
    });

    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}}/v2/partners/:partnerId:editAssignedTargetingOptions \
  --header 'content-type: application/json' \
  --data '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}'
echo '{
  "createRequests": [
    {
      "assignedTargetingOptions": [
        {
          "ageRangeDetails": {
            "ageRange": ""
          },
          "appCategoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "appDetails": {
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          },
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": {
            "excludedFirstAndThirdPartyAudienceGroup": {
              "settings": [
                {
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                }
              ]
            },
            "excludedGoogleAudienceGroup": {
              "settings": [
                {
                  "googleAudienceId": ""
                }
              ]
            },
            "includedCombinedAudienceGroup": {
              "settings": [
                {
                  "combinedAudienceId": ""
                }
              ]
            },
            "includedCustomListGroup": {
              "settings": [
                {
                  "customListId": ""
                }
              ]
            },
            "includedFirstAndThirdPartyAudienceGroups": [
              {}
            ],
            "includedGoogleAudienceGroup": {}
          },
          "audioContentTypeDetails": {
            "audioContentType": ""
          },
          "authorizedSellerStatusDetails": {
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          },
          "browserDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "businessChainDetails": {
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "carrierAndIspDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "categoryDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "channelDetails": {
            "channelId": "",
            "negative": false
          },
          "contentDurationDetails": {
            "contentDuration": "",
            "targetingOptionId": ""
          },
          "contentGenreDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "contentInstreamPositionDetails": {
            "adType": "",
            "contentInstreamPosition": ""
          },
          "contentOutstreamPositionDetails": {
            "adType": "",
            "contentOutstreamPosition": ""
          },
          "contentStreamTypeDetails": {
            "contentStreamType": "",
            "targetingOptionId": ""
          },
          "dayAndTimeDetails": {
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          },
          "deviceMakeModelDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "deviceTypeDetails": {
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          },
          "digitalContentLabelExclusionDetails": {
            "excludedContentRatingTier": ""
          },
          "environmentDetails": {
            "environment": ""
          },
          "exchangeDetails": {
            "exchange": ""
          },
          "genderDetails": {
            "gender": ""
          },
          "geoRegionDetails": {
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "householdIncomeDetails": {
            "householdIncome": ""
          },
          "inheritance": "",
          "inventorySourceDetails": {
            "inventorySourceId": ""
          },
          "inventorySourceGroupDetails": {
            "inventorySourceGroupId": ""
          },
          "keywordDetails": {
            "keyword": "",
            "negative": false
          },
          "languageDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "name": "",
          "nativeContentPositionDetails": {
            "contentPosition": ""
          },
          "negativeKeywordListDetails": {
            "negativeKeywordListId": ""
          },
          "omidDetails": {
            "omid": ""
          },
          "onScreenPositionDetails": {
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          },
          "operatingSystemDetails": {
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          },
          "parentalStatusDetails": {
            "parentalStatus": ""
          },
          "poiDetails": {
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          },
          "proximityLocationListDetails": {
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          },
          "regionalLocationListDetails": {
            "negative": false,
            "regionalLocationListId": ""
          },
          "sensitiveCategoryExclusionDetails": {
            "excludedSensitiveCategory": ""
          },
          "sessionPositionDetails": {
            "sessionPosition": ""
          },
          "subExchangeDetails": {
            "targetingOptionId": ""
          },
          "targetingType": "",
          "thirdPartyVerifierDetails": {
            "adloox": {
              "excludedAdlooxCategories": []
            },
            "doubleVerify": {
              "appStarRating": {
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              },
              "avoidedAgeRatings": [],
              "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              },
              "customSegmentId": "",
              "displayViewability": {
                "iab": "",
                "viewableDuring": ""
              },
              "fraudInvalidTraffic": {
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              },
              "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              }
            },
            "integralAdScience": {
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            }
          },
          "urlDetails": {
            "negative": false,
            "url": ""
          },
          "userRewardedContentDetails": {
            "targetingOptionId": "",
            "userRewardedContent": ""
          },
          "videoPlayerSizeDetails": {
            "videoPlayerSize": ""
          },
          "viewabilityDetails": {
            "viewability": ""
          },
          "youtubeChannelDetails": {
            "channelId": "",
            "negative": false
          },
          "youtubeVideoDetails": {
            "negative": false,
            "videoId": ""
          }
        }
      ],
      "targetingType": ""
    }
  ],
  "deleteRequests": [
    {
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "createRequests": [\n    {\n      "assignedTargetingOptions": [\n        {\n          "ageRangeDetails": {\n            "ageRange": ""\n          },\n          "appCategoryDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "appDetails": {\n            "appId": "",\n            "appPlatform": "",\n            "displayName": "",\n            "negative": false\n          },\n          "assignedTargetingOptionId": "",\n          "assignedTargetingOptionIdAlias": "",\n          "audienceGroupDetails": {\n            "excludedFirstAndThirdPartyAudienceGroup": {\n              "settings": [\n                {\n                  "firstAndThirdPartyAudienceId": "",\n                  "recency": ""\n                }\n              ]\n            },\n            "excludedGoogleAudienceGroup": {\n              "settings": [\n                {\n                  "googleAudienceId": ""\n                }\n              ]\n            },\n            "includedCombinedAudienceGroup": {\n              "settings": [\n                {\n                  "combinedAudienceId": ""\n                }\n              ]\n            },\n            "includedCustomListGroup": {\n              "settings": [\n                {\n                  "customListId": ""\n                }\n              ]\n            },\n            "includedFirstAndThirdPartyAudienceGroups": [\n              {}\n            ],\n            "includedGoogleAudienceGroup": {}\n          },\n          "audioContentTypeDetails": {\n            "audioContentType": ""\n          },\n          "authorizedSellerStatusDetails": {\n            "authorizedSellerStatus": "",\n            "targetingOptionId": ""\n          },\n          "browserDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "businessChainDetails": {\n            "displayName": "",\n            "proximityRadiusAmount": "",\n            "proximityRadiusUnit": "",\n            "targetingOptionId": ""\n          },\n          "carrierAndIspDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "categoryDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "channelDetails": {\n            "channelId": "",\n            "negative": false\n          },\n          "contentDurationDetails": {\n            "contentDuration": "",\n            "targetingOptionId": ""\n          },\n          "contentGenreDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "contentInstreamPositionDetails": {\n            "adType": "",\n            "contentInstreamPosition": ""\n          },\n          "contentOutstreamPositionDetails": {\n            "adType": "",\n            "contentOutstreamPosition": ""\n          },\n          "contentStreamTypeDetails": {\n            "contentStreamType": "",\n            "targetingOptionId": ""\n          },\n          "dayAndTimeDetails": {\n            "dayOfWeek": "",\n            "endHour": 0,\n            "startHour": 0,\n            "timeZoneResolution": ""\n          },\n          "deviceMakeModelDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "deviceTypeDetails": {\n            "deviceType": "",\n            "youtubeAndPartnersBidMultiplier": ""\n          },\n          "digitalContentLabelExclusionDetails": {\n            "excludedContentRatingTier": ""\n          },\n          "environmentDetails": {\n            "environment": ""\n          },\n          "exchangeDetails": {\n            "exchange": ""\n          },\n          "genderDetails": {\n            "gender": ""\n          },\n          "geoRegionDetails": {\n            "displayName": "",\n            "geoRegionType": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "householdIncomeDetails": {\n            "householdIncome": ""\n          },\n          "inheritance": "",\n          "inventorySourceDetails": {\n            "inventorySourceId": ""\n          },\n          "inventorySourceGroupDetails": {\n            "inventorySourceGroupId": ""\n          },\n          "keywordDetails": {\n            "keyword": "",\n            "negative": false\n          },\n          "languageDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "name": "",\n          "nativeContentPositionDetails": {\n            "contentPosition": ""\n          },\n          "negativeKeywordListDetails": {\n            "negativeKeywordListId": ""\n          },\n          "omidDetails": {\n            "omid": ""\n          },\n          "onScreenPositionDetails": {\n            "adType": "",\n            "onScreenPosition": "",\n            "targetingOptionId": ""\n          },\n          "operatingSystemDetails": {\n            "displayName": "",\n            "negative": false,\n            "targetingOptionId": ""\n          },\n          "parentalStatusDetails": {\n            "parentalStatus": ""\n          },\n          "poiDetails": {\n            "displayName": "",\n            "latitude": "",\n            "longitude": "",\n            "proximityRadiusAmount": "",\n            "proximityRadiusUnit": "",\n            "targetingOptionId": ""\n          },\n          "proximityLocationListDetails": {\n            "proximityLocationListId": "",\n            "proximityRadius": "",\n            "proximityRadiusUnit": ""\n          },\n          "regionalLocationListDetails": {\n            "negative": false,\n            "regionalLocationListId": ""\n          },\n          "sensitiveCategoryExclusionDetails": {\n            "excludedSensitiveCategory": ""\n          },\n          "sessionPositionDetails": {\n            "sessionPosition": ""\n          },\n          "subExchangeDetails": {\n            "targetingOptionId": ""\n          },\n          "targetingType": "",\n          "thirdPartyVerifierDetails": {\n            "adloox": {\n              "excludedAdlooxCategories": []\n            },\n            "doubleVerify": {\n              "appStarRating": {\n                "avoidInsufficientStarRating": false,\n                "avoidedStarRating": ""\n              },\n              "avoidedAgeRatings": [],\n              "brandSafetyCategories": {\n                "avoidUnknownBrandSafetyCategory": false,\n                "avoidedHighSeverityCategories": [],\n                "avoidedMediumSeverityCategories": []\n              },\n              "customSegmentId": "",\n              "displayViewability": {\n                "iab": "",\n                "viewableDuring": ""\n              },\n              "fraudInvalidTraffic": {\n                "avoidInsufficientOption": false,\n                "avoidedFraudOption": ""\n              },\n              "videoViewability": {\n                "playerImpressionRate": "",\n                "videoIab": "",\n                "videoViewableRate": ""\n              }\n            },\n            "integralAdScience": {\n              "customSegmentId": [],\n              "displayViewability": "",\n              "excludeUnrateable": false,\n              "excludedAdFraudRisk": "",\n              "excludedAdultRisk": "",\n              "excludedAlcoholRisk": "",\n              "excludedDrugsRisk": "",\n              "excludedGamblingRisk": "",\n              "excludedHateSpeechRisk": "",\n              "excludedIllegalDownloadsRisk": "",\n              "excludedOffensiveLanguageRisk": "",\n              "excludedViolenceRisk": "",\n              "traqScoreOption": "",\n              "videoViewability": ""\n            }\n          },\n          "urlDetails": {\n            "negative": false,\n            "url": ""\n          },\n          "userRewardedContentDetails": {\n            "targetingOptionId": "",\n            "userRewardedContent": ""\n          },\n          "videoPlayerSizeDetails": {\n            "videoPlayerSize": ""\n          },\n          "viewabilityDetails": {\n            "viewability": ""\n          },\n          "youtubeChannelDetails": {\n            "channelId": "",\n            "negative": false\n          },\n          "youtubeVideoDetails": {\n            "negative": false,\n            "videoId": ""\n          }\n        }\n      ],\n      "targetingType": ""\n    }\n  ],\n  "deleteRequests": [\n    {\n      "assignedTargetingOptionIds": [],\n      "targetingType": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "createRequests": [
    [
      "assignedTargetingOptions": [
        [
          "ageRangeDetails": ["ageRange": ""],
          "appCategoryDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "appDetails": [
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
          ],
          "assignedTargetingOptionId": "",
          "assignedTargetingOptionIdAlias": "",
          "audienceGroupDetails": [
            "excludedFirstAndThirdPartyAudienceGroup": ["settings": [
                [
                  "firstAndThirdPartyAudienceId": "",
                  "recency": ""
                ]
              ]],
            "excludedGoogleAudienceGroup": ["settings": [["googleAudienceId": ""]]],
            "includedCombinedAudienceGroup": ["settings": [["combinedAudienceId": ""]]],
            "includedCustomListGroup": ["settings": [["customListId": ""]]],
            "includedFirstAndThirdPartyAudienceGroups": [[]],
            "includedGoogleAudienceGroup": []
          ],
          "audioContentTypeDetails": ["audioContentType": ""],
          "authorizedSellerStatusDetails": [
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
          ],
          "browserDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "businessChainDetails": [
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          ],
          "carrierAndIspDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "categoryDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "channelDetails": [
            "channelId": "",
            "negative": false
          ],
          "contentDurationDetails": [
            "contentDuration": "",
            "targetingOptionId": ""
          ],
          "contentGenreDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "contentInstreamPositionDetails": [
            "adType": "",
            "contentInstreamPosition": ""
          ],
          "contentOutstreamPositionDetails": [
            "adType": "",
            "contentOutstreamPosition": ""
          ],
          "contentStreamTypeDetails": [
            "contentStreamType": "",
            "targetingOptionId": ""
          ],
          "dayAndTimeDetails": [
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
          ],
          "deviceMakeModelDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "deviceTypeDetails": [
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
          ],
          "digitalContentLabelExclusionDetails": ["excludedContentRatingTier": ""],
          "environmentDetails": ["environment": ""],
          "exchangeDetails": ["exchange": ""],
          "genderDetails": ["gender": ""],
          "geoRegionDetails": [
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "householdIncomeDetails": ["householdIncome": ""],
          "inheritance": "",
          "inventorySourceDetails": ["inventorySourceId": ""],
          "inventorySourceGroupDetails": ["inventorySourceGroupId": ""],
          "keywordDetails": [
            "keyword": "",
            "negative": false
          ],
          "languageDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "name": "",
          "nativeContentPositionDetails": ["contentPosition": ""],
          "negativeKeywordListDetails": ["negativeKeywordListId": ""],
          "omidDetails": ["omid": ""],
          "onScreenPositionDetails": [
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
          ],
          "operatingSystemDetails": [
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
          ],
          "parentalStatusDetails": ["parentalStatus": ""],
          "poiDetails": [
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
          ],
          "proximityLocationListDetails": [
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
          ],
          "regionalLocationListDetails": [
            "negative": false,
            "regionalLocationListId": ""
          ],
          "sensitiveCategoryExclusionDetails": ["excludedSensitiveCategory": ""],
          "sessionPositionDetails": ["sessionPosition": ""],
          "subExchangeDetails": ["targetingOptionId": ""],
          "targetingType": "",
          "thirdPartyVerifierDetails": [
            "adloox": ["excludedAdlooxCategories": []],
            "doubleVerify": [
              "appStarRating": [
                "avoidInsufficientStarRating": false,
                "avoidedStarRating": ""
              ],
              "avoidedAgeRatings": [],
              "brandSafetyCategories": [
                "avoidUnknownBrandSafetyCategory": false,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
              ],
              "customSegmentId": "",
              "displayViewability": [
                "iab": "",
                "viewableDuring": ""
              ],
              "fraudInvalidTraffic": [
                "avoidInsufficientOption": false,
                "avoidedFraudOption": ""
              ],
              "videoViewability": [
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
              ]
            ],
            "integralAdScience": [
              "customSegmentId": [],
              "displayViewability": "",
              "excludeUnrateable": false,
              "excludedAdFraudRisk": "",
              "excludedAdultRisk": "",
              "excludedAlcoholRisk": "",
              "excludedDrugsRisk": "",
              "excludedGamblingRisk": "",
              "excludedHateSpeechRisk": "",
              "excludedIllegalDownloadsRisk": "",
              "excludedOffensiveLanguageRisk": "",
              "excludedViolenceRisk": "",
              "traqScoreOption": "",
              "videoViewability": ""
            ]
          ],
          "urlDetails": [
            "negative": false,
            "url": ""
          ],
          "userRewardedContentDetails": [
            "targetingOptionId": "",
            "userRewardedContent": ""
          ],
          "videoPlayerSizeDetails": ["videoPlayerSize": ""],
          "viewabilityDetails": ["viewability": ""],
          "youtubeChannelDetails": [
            "channelId": "",
            "negative": false
          ],
          "youtubeVideoDetails": [
            "negative": false,
            "videoId": ""
          ]
        ]
      ],
      "targetingType": ""
    ]
  ],
  "deleteRequests": [
    [
      "assignedTargetingOptionIds": [],
      "targetingType": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners/:partnerId:editAssignedTargetingOptions")! 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 displayvideo.partners.get
{{baseUrl}}/v2/partners/:partnerId
QUERY PARAMS

partnerId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners/:partnerId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/partners/:partnerId")
require "http/client"

url = "{{baseUrl}}/v2/partners/:partnerId"

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}}/v2/partners/:partnerId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/partners/:partnerId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners/:partnerId"

	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/v2/partners/:partnerId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/partners/:partnerId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners/:partnerId"))
    .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}}/v2/partners/:partnerId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/partners/:partnerId")
  .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}}/v2/partners/:partnerId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/partners/:partnerId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners/:partnerId';
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}}/v2/partners/:partnerId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/partners/:partnerId',
  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}}/v2/partners/:partnerId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/partners/:partnerId');

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}}/v2/partners/:partnerId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners/:partnerId';
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}}/v2/partners/:partnerId"]
                                                       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}}/v2/partners/:partnerId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners/:partnerId",
  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}}/v2/partners/:partnerId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners/:partnerId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/partners/:partnerId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/partners/:partnerId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners/:partnerId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/partners/:partnerId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners/:partnerId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners/:partnerId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/partners/:partnerId")

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/v2/partners/:partnerId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/partners/:partnerId";

    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}}/v2/partners/:partnerId
http GET {{baseUrl}}/v2/partners/:partnerId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/partners/:partnerId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners/:partnerId")! 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 displayvideo.partners.list
{{baseUrl}}/v2/partners
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/partners")
require "http/client"

url = "{{baseUrl}}/v2/partners"

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}}/v2/partners"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/partners");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners"

	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/v2/partners HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/partners")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners"))
    .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}}/v2/partners")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/partners")
  .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}}/v2/partners');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/partners'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners';
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}}/v2/partners',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/partners',
  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}}/v2/partners'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/partners');

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}}/v2/partners'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners';
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}}/v2/partners"]
                                                       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}}/v2/partners" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners",
  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}}/v2/partners');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/partners');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/partners' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/partners")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/partners")

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/v2/partners') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/partners";

    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}}/v2/partners
http GET {{baseUrl}}/v2/partners
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/partners
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners")! 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 displayvideo.partners.targetingTypes.assignedTargetingOptions.create
{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions
QUERY PARAMS

partnerId
targetingType
BODY json

{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions");

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  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions" {:content-type :json
                                                                                                                          :form-params {:ageRangeDetails {:ageRange ""}
                                                                                                                                        :appCategoryDetails {:displayName ""
                                                                                                                                                             :negative false
                                                                                                                                                             :targetingOptionId ""}
                                                                                                                                        :appDetails {:appId ""
                                                                                                                                                     :appPlatform ""
                                                                                                                                                     :displayName ""
                                                                                                                                                     :negative false}
                                                                                                                                        :assignedTargetingOptionId ""
                                                                                                                                        :assignedTargetingOptionIdAlias ""
                                                                                                                                        :audienceGroupDetails {:excludedFirstAndThirdPartyAudienceGroup {:settings [{:firstAndThirdPartyAudienceId ""
                                                                                                                                                                                                                     :recency ""}]}
                                                                                                                                                               :excludedGoogleAudienceGroup {:settings [{:googleAudienceId ""}]}
                                                                                                                                                               :includedCombinedAudienceGroup {:settings [{:combinedAudienceId ""}]}
                                                                                                                                                               :includedCustomListGroup {:settings [{:customListId ""}]}
                                                                                                                                                               :includedFirstAndThirdPartyAudienceGroups [{}]
                                                                                                                                                               :includedGoogleAudienceGroup {}}
                                                                                                                                        :audioContentTypeDetails {:audioContentType ""}
                                                                                                                                        :authorizedSellerStatusDetails {:authorizedSellerStatus ""
                                                                                                                                                                        :targetingOptionId ""}
                                                                                                                                        :browserDetails {:displayName ""
                                                                                                                                                         :negative false
                                                                                                                                                         :targetingOptionId ""}
                                                                                                                                        :businessChainDetails {:displayName ""
                                                                                                                                                               :proximityRadiusAmount ""
                                                                                                                                                               :proximityRadiusUnit ""
                                                                                                                                                               :targetingOptionId ""}
                                                                                                                                        :carrierAndIspDetails {:displayName ""
                                                                                                                                                               :negative false
                                                                                                                                                               :targetingOptionId ""}
                                                                                                                                        :categoryDetails {:displayName ""
                                                                                                                                                          :negative false
                                                                                                                                                          :targetingOptionId ""}
                                                                                                                                        :channelDetails {:channelId ""
                                                                                                                                                         :negative false}
                                                                                                                                        :contentDurationDetails {:contentDuration ""
                                                                                                                                                                 :targetingOptionId ""}
                                                                                                                                        :contentGenreDetails {:displayName ""
                                                                                                                                                              :negative false
                                                                                                                                                              :targetingOptionId ""}
                                                                                                                                        :contentInstreamPositionDetails {:adType ""
                                                                                                                                                                         :contentInstreamPosition ""}
                                                                                                                                        :contentOutstreamPositionDetails {:adType ""
                                                                                                                                                                          :contentOutstreamPosition ""}
                                                                                                                                        :contentStreamTypeDetails {:contentStreamType ""
                                                                                                                                                                   :targetingOptionId ""}
                                                                                                                                        :dayAndTimeDetails {:dayOfWeek ""
                                                                                                                                                            :endHour 0
                                                                                                                                                            :startHour 0
                                                                                                                                                            :timeZoneResolution ""}
                                                                                                                                        :deviceMakeModelDetails {:displayName ""
                                                                                                                                                                 :negative false
                                                                                                                                                                 :targetingOptionId ""}
                                                                                                                                        :deviceTypeDetails {:deviceType ""
                                                                                                                                                            :youtubeAndPartnersBidMultiplier ""}
                                                                                                                                        :digitalContentLabelExclusionDetails {:excludedContentRatingTier ""}
                                                                                                                                        :environmentDetails {:environment ""}
                                                                                                                                        :exchangeDetails {:exchange ""}
                                                                                                                                        :genderDetails {:gender ""}
                                                                                                                                        :geoRegionDetails {:displayName ""
                                                                                                                                                           :geoRegionType ""
                                                                                                                                                           :negative false
                                                                                                                                                           :targetingOptionId ""}
                                                                                                                                        :householdIncomeDetails {:householdIncome ""}
                                                                                                                                        :inheritance ""
                                                                                                                                        :inventorySourceDetails {:inventorySourceId ""}
                                                                                                                                        :inventorySourceGroupDetails {:inventorySourceGroupId ""}
                                                                                                                                        :keywordDetails {:keyword ""
                                                                                                                                                         :negative false}
                                                                                                                                        :languageDetails {:displayName ""
                                                                                                                                                          :negative false
                                                                                                                                                          :targetingOptionId ""}
                                                                                                                                        :name ""
                                                                                                                                        :nativeContentPositionDetails {:contentPosition ""}
                                                                                                                                        :negativeKeywordListDetails {:negativeKeywordListId ""}
                                                                                                                                        :omidDetails {:omid ""}
                                                                                                                                        :onScreenPositionDetails {:adType ""
                                                                                                                                                                  :onScreenPosition ""
                                                                                                                                                                  :targetingOptionId ""}
                                                                                                                                        :operatingSystemDetails {:displayName ""
                                                                                                                                                                 :negative false
                                                                                                                                                                 :targetingOptionId ""}
                                                                                                                                        :parentalStatusDetails {:parentalStatus ""}
                                                                                                                                        :poiDetails {:displayName ""
                                                                                                                                                     :latitude ""
                                                                                                                                                     :longitude ""
                                                                                                                                                     :proximityRadiusAmount ""
                                                                                                                                                     :proximityRadiusUnit ""
                                                                                                                                                     :targetingOptionId ""}
                                                                                                                                        :proximityLocationListDetails {:proximityLocationListId ""
                                                                                                                                                                       :proximityRadius ""
                                                                                                                                                                       :proximityRadiusUnit ""}
                                                                                                                                        :regionalLocationListDetails {:negative false
                                                                                                                                                                      :regionalLocationListId ""}
                                                                                                                                        :sensitiveCategoryExclusionDetails {:excludedSensitiveCategory ""}
                                                                                                                                        :sessionPositionDetails {:sessionPosition ""}
                                                                                                                                        :subExchangeDetails {:targetingOptionId ""}
                                                                                                                                        :targetingType ""
                                                                                                                                        :thirdPartyVerifierDetails {:adloox {:excludedAdlooxCategories []}
                                                                                                                                                                    :doubleVerify {:appStarRating {:avoidInsufficientStarRating false
                                                                                                                                                                                                   :avoidedStarRating ""}
                                                                                                                                                                                   :avoidedAgeRatings []
                                                                                                                                                                                   :brandSafetyCategories {:avoidUnknownBrandSafetyCategory false
                                                                                                                                                                                                           :avoidedHighSeverityCategories []
                                                                                                                                                                                                           :avoidedMediumSeverityCategories []}
                                                                                                                                                                                   :customSegmentId ""
                                                                                                                                                                                   :displayViewability {:iab ""
                                                                                                                                                                                                        :viewableDuring ""}
                                                                                                                                                                                   :fraudInvalidTraffic {:avoidInsufficientOption false
                                                                                                                                                                                                         :avoidedFraudOption ""}
                                                                                                                                                                                   :videoViewability {:playerImpressionRate ""
                                                                                                                                                                                                      :videoIab ""
                                                                                                                                                                                                      :videoViewableRate ""}}
                                                                                                                                                                    :integralAdScience {:customSegmentId []
                                                                                                                                                                                        :displayViewability ""
                                                                                                                                                                                        :excludeUnrateable false
                                                                                                                                                                                        :excludedAdFraudRisk ""
                                                                                                                                                                                        :excludedAdultRisk ""
                                                                                                                                                                                        :excludedAlcoholRisk ""
                                                                                                                                                                                        :excludedDrugsRisk ""
                                                                                                                                                                                        :excludedGamblingRisk ""
                                                                                                                                                                                        :excludedHateSpeechRisk ""
                                                                                                                                                                                        :excludedIllegalDownloadsRisk ""
                                                                                                                                                                                        :excludedOffensiveLanguageRisk ""
                                                                                                                                                                                        :excludedViolenceRisk ""
                                                                                                                                                                                        :traqScoreOption ""
                                                                                                                                                                                        :videoViewability ""}}
                                                                                                                                        :urlDetails {:negative false
                                                                                                                                                     :url ""}
                                                                                                                                        :userRewardedContentDetails {:targetingOptionId ""
                                                                                                                                                                     :userRewardedContent ""}
                                                                                                                                        :videoPlayerSizeDetails {:videoPlayerSize ""}
                                                                                                                                        :viewabilityDetails {:viewability ""}
                                                                                                                                        :youtubeChannelDetails {:channelId ""
                                                                                                                                                                :negative false}
                                                                                                                                        :youtubeVideoDetails {:negative false
                                                                                                                                                              :videoId ""}}})
require "http/client"

url = "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"),
    Content = new StringContent("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"

	payload := strings.NewReader("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 6099

{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")
  .header("content-type", "application/json")
  .body("{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  ageRangeDetails: {
    ageRange: ''
  },
  appCategoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  appDetails: {
    appId: '',
    appPlatform: '',
    displayName: '',
    negative: false
  },
  assignedTargetingOptionId: '',
  assignedTargetingOptionIdAlias: '',
  audienceGroupDetails: {
    excludedFirstAndThirdPartyAudienceGroup: {
      settings: [
        {
          firstAndThirdPartyAudienceId: '',
          recency: ''
        }
      ]
    },
    excludedGoogleAudienceGroup: {
      settings: [
        {
          googleAudienceId: ''
        }
      ]
    },
    includedCombinedAudienceGroup: {
      settings: [
        {
          combinedAudienceId: ''
        }
      ]
    },
    includedCustomListGroup: {
      settings: [
        {
          customListId: ''
        }
      ]
    },
    includedFirstAndThirdPartyAudienceGroups: [
      {}
    ],
    includedGoogleAudienceGroup: {}
  },
  audioContentTypeDetails: {
    audioContentType: ''
  },
  authorizedSellerStatusDetails: {
    authorizedSellerStatus: '',
    targetingOptionId: ''
  },
  browserDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  businessChainDetails: {
    displayName: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  carrierAndIspDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  categoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  channelDetails: {
    channelId: '',
    negative: false
  },
  contentDurationDetails: {
    contentDuration: '',
    targetingOptionId: ''
  },
  contentGenreDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  contentInstreamPositionDetails: {
    adType: '',
    contentInstreamPosition: ''
  },
  contentOutstreamPositionDetails: {
    adType: '',
    contentOutstreamPosition: ''
  },
  contentStreamTypeDetails: {
    contentStreamType: '',
    targetingOptionId: ''
  },
  dayAndTimeDetails: {
    dayOfWeek: '',
    endHour: 0,
    startHour: 0,
    timeZoneResolution: ''
  },
  deviceMakeModelDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  deviceTypeDetails: {
    deviceType: '',
    youtubeAndPartnersBidMultiplier: ''
  },
  digitalContentLabelExclusionDetails: {
    excludedContentRatingTier: ''
  },
  environmentDetails: {
    environment: ''
  },
  exchangeDetails: {
    exchange: ''
  },
  genderDetails: {
    gender: ''
  },
  geoRegionDetails: {
    displayName: '',
    geoRegionType: '',
    negative: false,
    targetingOptionId: ''
  },
  householdIncomeDetails: {
    householdIncome: ''
  },
  inheritance: '',
  inventorySourceDetails: {
    inventorySourceId: ''
  },
  inventorySourceGroupDetails: {
    inventorySourceGroupId: ''
  },
  keywordDetails: {
    keyword: '',
    negative: false
  },
  languageDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  name: '',
  nativeContentPositionDetails: {
    contentPosition: ''
  },
  negativeKeywordListDetails: {
    negativeKeywordListId: ''
  },
  omidDetails: {
    omid: ''
  },
  onScreenPositionDetails: {
    adType: '',
    onScreenPosition: '',
    targetingOptionId: ''
  },
  operatingSystemDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  parentalStatusDetails: {
    parentalStatus: ''
  },
  poiDetails: {
    displayName: '',
    latitude: '',
    longitude: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  proximityLocationListDetails: {
    proximityLocationListId: '',
    proximityRadius: '',
    proximityRadiusUnit: ''
  },
  regionalLocationListDetails: {
    negative: false,
    regionalLocationListId: ''
  },
  sensitiveCategoryExclusionDetails: {
    excludedSensitiveCategory: ''
  },
  sessionPositionDetails: {
    sessionPosition: ''
  },
  subExchangeDetails: {
    targetingOptionId: ''
  },
  targetingType: '',
  thirdPartyVerifierDetails: {
    adloox: {
      excludedAdlooxCategories: []
    },
    doubleVerify: {
      appStarRating: {
        avoidInsufficientStarRating: false,
        avoidedStarRating: ''
      },
      avoidedAgeRatings: [],
      brandSafetyCategories: {
        avoidUnknownBrandSafetyCategory: false,
        avoidedHighSeverityCategories: [],
        avoidedMediumSeverityCategories: []
      },
      customSegmentId: '',
      displayViewability: {
        iab: '',
        viewableDuring: ''
      },
      fraudInvalidTraffic: {
        avoidInsufficientOption: false,
        avoidedFraudOption: ''
      },
      videoViewability: {
        playerImpressionRate: '',
        videoIab: '',
        videoViewableRate: ''
      }
    },
    integralAdScience: {
      customSegmentId: [],
      displayViewability: '',
      excludeUnrateable: false,
      excludedAdFraudRisk: '',
      excludedAdultRisk: '',
      excludedAlcoholRisk: '',
      excludedDrugsRisk: '',
      excludedGamblingRisk: '',
      excludedHateSpeechRisk: '',
      excludedIllegalDownloadsRisk: '',
      excludedOffensiveLanguageRisk: '',
      excludedViolenceRisk: '',
      traqScoreOption: '',
      videoViewability: ''
    }
  },
  urlDetails: {
    negative: false,
    url: ''
  },
  userRewardedContentDetails: {
    targetingOptionId: '',
    userRewardedContent: ''
  },
  videoPlayerSizeDetails: {
    videoPlayerSize: ''
  },
  viewabilityDetails: {
    viewability: ''
  },
  youtubeChannelDetails: {
    channelId: '',
    negative: false
  },
  youtubeVideoDetails: {
    negative: false,
    videoId: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    ageRangeDetails: {ageRange: ''},
    appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
    assignedTargetingOptionId: '',
    assignedTargetingOptionIdAlias: '',
    audienceGroupDetails: {
      excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
      excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
      includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
      includedCustomListGroup: {settings: [{customListId: ''}]},
      includedFirstAndThirdPartyAudienceGroups: [{}],
      includedGoogleAudienceGroup: {}
    },
    audioContentTypeDetails: {audioContentType: ''},
    authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
    browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
    businessChainDetails: {
      displayName: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
    categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    channelDetails: {channelId: '', negative: false},
    contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
    contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
    contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
    contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
    contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
    dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
    deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
    deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
    digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
    environmentDetails: {environment: ''},
    exchangeDetails: {exchange: ''},
    genderDetails: {gender: ''},
    geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
    householdIncomeDetails: {householdIncome: ''},
    inheritance: '',
    inventorySourceDetails: {inventorySourceId: ''},
    inventorySourceGroupDetails: {inventorySourceGroupId: ''},
    keywordDetails: {keyword: '', negative: false},
    languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
    name: '',
    nativeContentPositionDetails: {contentPosition: ''},
    negativeKeywordListDetails: {negativeKeywordListId: ''},
    omidDetails: {omid: ''},
    onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
    operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
    parentalStatusDetails: {parentalStatus: ''},
    poiDetails: {
      displayName: '',
      latitude: '',
      longitude: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
    regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
    sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
    sessionPositionDetails: {sessionPosition: ''},
    subExchangeDetails: {targetingOptionId: ''},
    targetingType: '',
    thirdPartyVerifierDetails: {
      adloox: {excludedAdlooxCategories: []},
      doubleVerify: {
        appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
        avoidedAgeRatings: [],
        brandSafetyCategories: {
          avoidUnknownBrandSafetyCategory: false,
          avoidedHighSeverityCategories: [],
          avoidedMediumSeverityCategories: []
        },
        customSegmentId: '',
        displayViewability: {iab: '', viewableDuring: ''},
        fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
        videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
      },
      integralAdScience: {
        customSegmentId: [],
        displayViewability: '',
        excludeUnrateable: false,
        excludedAdFraudRisk: '',
        excludedAdultRisk: '',
        excludedAlcoholRisk: '',
        excludedDrugsRisk: '',
        excludedGamblingRisk: '',
        excludedHateSpeechRisk: '',
        excludedIllegalDownloadsRisk: '',
        excludedOffensiveLanguageRisk: '',
        excludedViolenceRisk: '',
        traqScoreOption: '',
        videoViewability: ''
      }
    },
    urlDetails: {negative: false, url: ''},
    userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
    videoPlayerSizeDetails: {videoPlayerSize: ''},
    viewabilityDetails: {viewability: ''},
    youtubeChannelDetails: {channelId: '', negative: false},
    youtubeVideoDetails: {negative: false, videoId: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}'
};

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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "ageRangeDetails": {\n    "ageRange": ""\n  },\n  "appCategoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "appDetails": {\n    "appId": "",\n    "appPlatform": "",\n    "displayName": "",\n    "negative": false\n  },\n  "assignedTargetingOptionId": "",\n  "assignedTargetingOptionIdAlias": "",\n  "audienceGroupDetails": {\n    "excludedFirstAndThirdPartyAudienceGroup": {\n      "settings": [\n        {\n          "firstAndThirdPartyAudienceId": "",\n          "recency": ""\n        }\n      ]\n    },\n    "excludedGoogleAudienceGroup": {\n      "settings": [\n        {\n          "googleAudienceId": ""\n        }\n      ]\n    },\n    "includedCombinedAudienceGroup": {\n      "settings": [\n        {\n          "combinedAudienceId": ""\n        }\n      ]\n    },\n    "includedCustomListGroup": {\n      "settings": [\n        {\n          "customListId": ""\n        }\n      ]\n    },\n    "includedFirstAndThirdPartyAudienceGroups": [\n      {}\n    ],\n    "includedGoogleAudienceGroup": {}\n  },\n  "audioContentTypeDetails": {\n    "audioContentType": ""\n  },\n  "authorizedSellerStatusDetails": {\n    "authorizedSellerStatus": "",\n    "targetingOptionId": ""\n  },\n  "browserDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "businessChainDetails": {\n    "displayName": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "carrierAndIspDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "categoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "channelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "contentDurationDetails": {\n    "contentDuration": "",\n    "targetingOptionId": ""\n  },\n  "contentGenreDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "contentInstreamPositionDetails": {\n    "adType": "",\n    "contentInstreamPosition": ""\n  },\n  "contentOutstreamPositionDetails": {\n    "adType": "",\n    "contentOutstreamPosition": ""\n  },\n  "contentStreamTypeDetails": {\n    "contentStreamType": "",\n    "targetingOptionId": ""\n  },\n  "dayAndTimeDetails": {\n    "dayOfWeek": "",\n    "endHour": 0,\n    "startHour": 0,\n    "timeZoneResolution": ""\n  },\n  "deviceMakeModelDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "deviceTypeDetails": {\n    "deviceType": "",\n    "youtubeAndPartnersBidMultiplier": ""\n  },\n  "digitalContentLabelExclusionDetails": {\n    "excludedContentRatingTier": ""\n  },\n  "environmentDetails": {\n    "environment": ""\n  },\n  "exchangeDetails": {\n    "exchange": ""\n  },\n  "genderDetails": {\n    "gender": ""\n  },\n  "geoRegionDetails": {\n    "displayName": "",\n    "geoRegionType": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "householdIncomeDetails": {\n    "householdIncome": ""\n  },\n  "inheritance": "",\n  "inventorySourceDetails": {\n    "inventorySourceId": ""\n  },\n  "inventorySourceGroupDetails": {\n    "inventorySourceGroupId": ""\n  },\n  "keywordDetails": {\n    "keyword": "",\n    "negative": false\n  },\n  "languageDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "name": "",\n  "nativeContentPositionDetails": {\n    "contentPosition": ""\n  },\n  "negativeKeywordListDetails": {\n    "negativeKeywordListId": ""\n  },\n  "omidDetails": {\n    "omid": ""\n  },\n  "onScreenPositionDetails": {\n    "adType": "",\n    "onScreenPosition": "",\n    "targetingOptionId": ""\n  },\n  "operatingSystemDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "parentalStatusDetails": {\n    "parentalStatus": ""\n  },\n  "poiDetails": {\n    "displayName": "",\n    "latitude": "",\n    "longitude": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "proximityLocationListDetails": {\n    "proximityLocationListId": "",\n    "proximityRadius": "",\n    "proximityRadiusUnit": ""\n  },\n  "regionalLocationListDetails": {\n    "negative": false,\n    "regionalLocationListId": ""\n  },\n  "sensitiveCategoryExclusionDetails": {\n    "excludedSensitiveCategory": ""\n  },\n  "sessionPositionDetails": {\n    "sessionPosition": ""\n  },\n  "subExchangeDetails": {\n    "targetingOptionId": ""\n  },\n  "targetingType": "",\n  "thirdPartyVerifierDetails": {\n    "adloox": {\n      "excludedAdlooxCategories": []\n    },\n    "doubleVerify": {\n      "appStarRating": {\n        "avoidInsufficientStarRating": false,\n        "avoidedStarRating": ""\n      },\n      "avoidedAgeRatings": [],\n      "brandSafetyCategories": {\n        "avoidUnknownBrandSafetyCategory": false,\n        "avoidedHighSeverityCategories": [],\n        "avoidedMediumSeverityCategories": []\n      },\n      "customSegmentId": "",\n      "displayViewability": {\n        "iab": "",\n        "viewableDuring": ""\n      },\n      "fraudInvalidTraffic": {\n        "avoidInsufficientOption": false,\n        "avoidedFraudOption": ""\n      },\n      "videoViewability": {\n        "playerImpressionRate": "",\n        "videoIab": "",\n        "videoViewableRate": ""\n      }\n    },\n    "integralAdScience": {\n      "customSegmentId": [],\n      "displayViewability": "",\n      "excludeUnrateable": false,\n      "excludedAdFraudRisk": "",\n      "excludedAdultRisk": "",\n      "excludedAlcoholRisk": "",\n      "excludedDrugsRisk": "",\n      "excludedGamblingRisk": "",\n      "excludedHateSpeechRisk": "",\n      "excludedIllegalDownloadsRisk": "",\n      "excludedOffensiveLanguageRisk": "",\n      "excludedViolenceRisk": "",\n      "traqScoreOption": "",\n      "videoViewability": ""\n    }\n  },\n  "urlDetails": {\n    "negative": false,\n    "url": ""\n  },\n  "userRewardedContentDetails": {\n    "targetingOptionId": "",\n    "userRewardedContent": ""\n  },\n  "videoPlayerSizeDetails": {\n    "videoPlayerSize": ""\n  },\n  "viewabilityDetails": {\n    "viewability": ""\n  },\n  "youtubeChannelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "youtubeVideoDetails": {\n    "negative": false,\n    "videoId": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")
  .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/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions',
  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({
  ageRangeDetails: {ageRange: ''},
  appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
  appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
  assignedTargetingOptionId: '',
  assignedTargetingOptionIdAlias: '',
  audienceGroupDetails: {
    excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
    excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
    includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
    includedCustomListGroup: {settings: [{customListId: ''}]},
    includedFirstAndThirdPartyAudienceGroups: [{}],
    includedGoogleAudienceGroup: {}
  },
  audioContentTypeDetails: {audioContentType: ''},
  authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
  browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
  businessChainDetails: {
    displayName: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
  categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
  channelDetails: {channelId: '', negative: false},
  contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
  contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
  contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
  contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
  contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
  dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
  deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
  deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
  digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
  environmentDetails: {environment: ''},
  exchangeDetails: {exchange: ''},
  genderDetails: {gender: ''},
  geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
  householdIncomeDetails: {householdIncome: ''},
  inheritance: '',
  inventorySourceDetails: {inventorySourceId: ''},
  inventorySourceGroupDetails: {inventorySourceGroupId: ''},
  keywordDetails: {keyword: '', negative: false},
  languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
  name: '',
  nativeContentPositionDetails: {contentPosition: ''},
  negativeKeywordListDetails: {negativeKeywordListId: ''},
  omidDetails: {omid: ''},
  onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
  operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
  parentalStatusDetails: {parentalStatus: ''},
  poiDetails: {
    displayName: '',
    latitude: '',
    longitude: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
  regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
  sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
  sessionPositionDetails: {sessionPosition: ''},
  subExchangeDetails: {targetingOptionId: ''},
  targetingType: '',
  thirdPartyVerifierDetails: {
    adloox: {excludedAdlooxCategories: []},
    doubleVerify: {
      appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
      avoidedAgeRatings: [],
      brandSafetyCategories: {
        avoidUnknownBrandSafetyCategory: false,
        avoidedHighSeverityCategories: [],
        avoidedMediumSeverityCategories: []
      },
      customSegmentId: '',
      displayViewability: {iab: '', viewableDuring: ''},
      fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
      videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
    },
    integralAdScience: {
      customSegmentId: [],
      displayViewability: '',
      excludeUnrateable: false,
      excludedAdFraudRisk: '',
      excludedAdultRisk: '',
      excludedAlcoholRisk: '',
      excludedDrugsRisk: '',
      excludedGamblingRisk: '',
      excludedHateSpeechRisk: '',
      excludedIllegalDownloadsRisk: '',
      excludedOffensiveLanguageRisk: '',
      excludedViolenceRisk: '',
      traqScoreOption: '',
      videoViewability: ''
    }
  },
  urlDetails: {negative: false, url: ''},
  userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
  videoPlayerSizeDetails: {videoPlayerSize: ''},
  viewabilityDetails: {viewability: ''},
  youtubeChannelDetails: {channelId: '', negative: false},
  youtubeVideoDetails: {negative: false, videoId: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  body: {
    ageRangeDetails: {ageRange: ''},
    appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
    assignedTargetingOptionId: '',
    assignedTargetingOptionIdAlias: '',
    audienceGroupDetails: {
      excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
      excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
      includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
      includedCustomListGroup: {settings: [{customListId: ''}]},
      includedFirstAndThirdPartyAudienceGroups: [{}],
      includedGoogleAudienceGroup: {}
    },
    audioContentTypeDetails: {audioContentType: ''},
    authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
    browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
    businessChainDetails: {
      displayName: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
    categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    channelDetails: {channelId: '', negative: false},
    contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
    contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
    contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
    contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
    contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
    dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
    deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
    deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
    digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
    environmentDetails: {environment: ''},
    exchangeDetails: {exchange: ''},
    genderDetails: {gender: ''},
    geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
    householdIncomeDetails: {householdIncome: ''},
    inheritance: '',
    inventorySourceDetails: {inventorySourceId: ''},
    inventorySourceGroupDetails: {inventorySourceGroupId: ''},
    keywordDetails: {keyword: '', negative: false},
    languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
    name: '',
    nativeContentPositionDetails: {contentPosition: ''},
    negativeKeywordListDetails: {negativeKeywordListId: ''},
    omidDetails: {omid: ''},
    onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
    operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
    parentalStatusDetails: {parentalStatus: ''},
    poiDetails: {
      displayName: '',
      latitude: '',
      longitude: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
    regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
    sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
    sessionPositionDetails: {sessionPosition: ''},
    subExchangeDetails: {targetingOptionId: ''},
    targetingType: '',
    thirdPartyVerifierDetails: {
      adloox: {excludedAdlooxCategories: []},
      doubleVerify: {
        appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
        avoidedAgeRatings: [],
        brandSafetyCategories: {
          avoidUnknownBrandSafetyCategory: false,
          avoidedHighSeverityCategories: [],
          avoidedMediumSeverityCategories: []
        },
        customSegmentId: '',
        displayViewability: {iab: '', viewableDuring: ''},
        fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
        videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
      },
      integralAdScience: {
        customSegmentId: [],
        displayViewability: '',
        excludeUnrateable: false,
        excludedAdFraudRisk: '',
        excludedAdultRisk: '',
        excludedAlcoholRisk: '',
        excludedDrugsRisk: '',
        excludedGamblingRisk: '',
        excludedHateSpeechRisk: '',
        excludedIllegalDownloadsRisk: '',
        excludedOffensiveLanguageRisk: '',
        excludedViolenceRisk: '',
        traqScoreOption: '',
        videoViewability: ''
      }
    },
    urlDetails: {negative: false, url: ''},
    userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
    videoPlayerSizeDetails: {videoPlayerSize: ''},
    viewabilityDetails: {viewability: ''},
    youtubeChannelDetails: {channelId: '', negative: false},
    youtubeVideoDetails: {negative: false, videoId: ''}
  },
  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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  ageRangeDetails: {
    ageRange: ''
  },
  appCategoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  appDetails: {
    appId: '',
    appPlatform: '',
    displayName: '',
    negative: false
  },
  assignedTargetingOptionId: '',
  assignedTargetingOptionIdAlias: '',
  audienceGroupDetails: {
    excludedFirstAndThirdPartyAudienceGroup: {
      settings: [
        {
          firstAndThirdPartyAudienceId: '',
          recency: ''
        }
      ]
    },
    excludedGoogleAudienceGroup: {
      settings: [
        {
          googleAudienceId: ''
        }
      ]
    },
    includedCombinedAudienceGroup: {
      settings: [
        {
          combinedAudienceId: ''
        }
      ]
    },
    includedCustomListGroup: {
      settings: [
        {
          customListId: ''
        }
      ]
    },
    includedFirstAndThirdPartyAudienceGroups: [
      {}
    ],
    includedGoogleAudienceGroup: {}
  },
  audioContentTypeDetails: {
    audioContentType: ''
  },
  authorizedSellerStatusDetails: {
    authorizedSellerStatus: '',
    targetingOptionId: ''
  },
  browserDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  businessChainDetails: {
    displayName: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  carrierAndIspDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  categoryDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  channelDetails: {
    channelId: '',
    negative: false
  },
  contentDurationDetails: {
    contentDuration: '',
    targetingOptionId: ''
  },
  contentGenreDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  contentInstreamPositionDetails: {
    adType: '',
    contentInstreamPosition: ''
  },
  contentOutstreamPositionDetails: {
    adType: '',
    contentOutstreamPosition: ''
  },
  contentStreamTypeDetails: {
    contentStreamType: '',
    targetingOptionId: ''
  },
  dayAndTimeDetails: {
    dayOfWeek: '',
    endHour: 0,
    startHour: 0,
    timeZoneResolution: ''
  },
  deviceMakeModelDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  deviceTypeDetails: {
    deviceType: '',
    youtubeAndPartnersBidMultiplier: ''
  },
  digitalContentLabelExclusionDetails: {
    excludedContentRatingTier: ''
  },
  environmentDetails: {
    environment: ''
  },
  exchangeDetails: {
    exchange: ''
  },
  genderDetails: {
    gender: ''
  },
  geoRegionDetails: {
    displayName: '',
    geoRegionType: '',
    negative: false,
    targetingOptionId: ''
  },
  householdIncomeDetails: {
    householdIncome: ''
  },
  inheritance: '',
  inventorySourceDetails: {
    inventorySourceId: ''
  },
  inventorySourceGroupDetails: {
    inventorySourceGroupId: ''
  },
  keywordDetails: {
    keyword: '',
    negative: false
  },
  languageDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  name: '',
  nativeContentPositionDetails: {
    contentPosition: ''
  },
  negativeKeywordListDetails: {
    negativeKeywordListId: ''
  },
  omidDetails: {
    omid: ''
  },
  onScreenPositionDetails: {
    adType: '',
    onScreenPosition: '',
    targetingOptionId: ''
  },
  operatingSystemDetails: {
    displayName: '',
    negative: false,
    targetingOptionId: ''
  },
  parentalStatusDetails: {
    parentalStatus: ''
  },
  poiDetails: {
    displayName: '',
    latitude: '',
    longitude: '',
    proximityRadiusAmount: '',
    proximityRadiusUnit: '',
    targetingOptionId: ''
  },
  proximityLocationListDetails: {
    proximityLocationListId: '',
    proximityRadius: '',
    proximityRadiusUnit: ''
  },
  regionalLocationListDetails: {
    negative: false,
    regionalLocationListId: ''
  },
  sensitiveCategoryExclusionDetails: {
    excludedSensitiveCategory: ''
  },
  sessionPositionDetails: {
    sessionPosition: ''
  },
  subExchangeDetails: {
    targetingOptionId: ''
  },
  targetingType: '',
  thirdPartyVerifierDetails: {
    adloox: {
      excludedAdlooxCategories: []
    },
    doubleVerify: {
      appStarRating: {
        avoidInsufficientStarRating: false,
        avoidedStarRating: ''
      },
      avoidedAgeRatings: [],
      brandSafetyCategories: {
        avoidUnknownBrandSafetyCategory: false,
        avoidedHighSeverityCategories: [],
        avoidedMediumSeverityCategories: []
      },
      customSegmentId: '',
      displayViewability: {
        iab: '',
        viewableDuring: ''
      },
      fraudInvalidTraffic: {
        avoidInsufficientOption: false,
        avoidedFraudOption: ''
      },
      videoViewability: {
        playerImpressionRate: '',
        videoIab: '',
        videoViewableRate: ''
      }
    },
    integralAdScience: {
      customSegmentId: [],
      displayViewability: '',
      excludeUnrateable: false,
      excludedAdFraudRisk: '',
      excludedAdultRisk: '',
      excludedAlcoholRisk: '',
      excludedDrugsRisk: '',
      excludedGamblingRisk: '',
      excludedHateSpeechRisk: '',
      excludedIllegalDownloadsRisk: '',
      excludedOffensiveLanguageRisk: '',
      excludedViolenceRisk: '',
      traqScoreOption: '',
      videoViewability: ''
    }
  },
  urlDetails: {
    negative: false,
    url: ''
  },
  userRewardedContentDetails: {
    targetingOptionId: '',
    userRewardedContent: ''
  },
  videoPlayerSizeDetails: {
    videoPlayerSize: ''
  },
  viewabilityDetails: {
    viewability: ''
  },
  youtubeChannelDetails: {
    channelId: '',
    negative: false
  },
  youtubeVideoDetails: {
    negative: false,
    videoId: ''
  }
});

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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions',
  headers: {'content-type': 'application/json'},
  data: {
    ageRangeDetails: {ageRange: ''},
    appCategoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    appDetails: {appId: '', appPlatform: '', displayName: '', negative: false},
    assignedTargetingOptionId: '',
    assignedTargetingOptionIdAlias: '',
    audienceGroupDetails: {
      excludedFirstAndThirdPartyAudienceGroup: {settings: [{firstAndThirdPartyAudienceId: '', recency: ''}]},
      excludedGoogleAudienceGroup: {settings: [{googleAudienceId: ''}]},
      includedCombinedAudienceGroup: {settings: [{combinedAudienceId: ''}]},
      includedCustomListGroup: {settings: [{customListId: ''}]},
      includedFirstAndThirdPartyAudienceGroups: [{}],
      includedGoogleAudienceGroup: {}
    },
    audioContentTypeDetails: {audioContentType: ''},
    authorizedSellerStatusDetails: {authorizedSellerStatus: '', targetingOptionId: ''},
    browserDetails: {displayName: '', negative: false, targetingOptionId: ''},
    businessChainDetails: {
      displayName: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    carrierAndIspDetails: {displayName: '', negative: false, targetingOptionId: ''},
    categoryDetails: {displayName: '', negative: false, targetingOptionId: ''},
    channelDetails: {channelId: '', negative: false},
    contentDurationDetails: {contentDuration: '', targetingOptionId: ''},
    contentGenreDetails: {displayName: '', negative: false, targetingOptionId: ''},
    contentInstreamPositionDetails: {adType: '', contentInstreamPosition: ''},
    contentOutstreamPositionDetails: {adType: '', contentOutstreamPosition: ''},
    contentStreamTypeDetails: {contentStreamType: '', targetingOptionId: ''},
    dayAndTimeDetails: {dayOfWeek: '', endHour: 0, startHour: 0, timeZoneResolution: ''},
    deviceMakeModelDetails: {displayName: '', negative: false, targetingOptionId: ''},
    deviceTypeDetails: {deviceType: '', youtubeAndPartnersBidMultiplier: ''},
    digitalContentLabelExclusionDetails: {excludedContentRatingTier: ''},
    environmentDetails: {environment: ''},
    exchangeDetails: {exchange: ''},
    genderDetails: {gender: ''},
    geoRegionDetails: {displayName: '', geoRegionType: '', negative: false, targetingOptionId: ''},
    householdIncomeDetails: {householdIncome: ''},
    inheritance: '',
    inventorySourceDetails: {inventorySourceId: ''},
    inventorySourceGroupDetails: {inventorySourceGroupId: ''},
    keywordDetails: {keyword: '', negative: false},
    languageDetails: {displayName: '', negative: false, targetingOptionId: ''},
    name: '',
    nativeContentPositionDetails: {contentPosition: ''},
    negativeKeywordListDetails: {negativeKeywordListId: ''},
    omidDetails: {omid: ''},
    onScreenPositionDetails: {adType: '', onScreenPosition: '', targetingOptionId: ''},
    operatingSystemDetails: {displayName: '', negative: false, targetingOptionId: ''},
    parentalStatusDetails: {parentalStatus: ''},
    poiDetails: {
      displayName: '',
      latitude: '',
      longitude: '',
      proximityRadiusAmount: '',
      proximityRadiusUnit: '',
      targetingOptionId: ''
    },
    proximityLocationListDetails: {proximityLocationListId: '', proximityRadius: '', proximityRadiusUnit: ''},
    regionalLocationListDetails: {negative: false, regionalLocationListId: ''},
    sensitiveCategoryExclusionDetails: {excludedSensitiveCategory: ''},
    sessionPositionDetails: {sessionPosition: ''},
    subExchangeDetails: {targetingOptionId: ''},
    targetingType: '',
    thirdPartyVerifierDetails: {
      adloox: {excludedAdlooxCategories: []},
      doubleVerify: {
        appStarRating: {avoidInsufficientStarRating: false, avoidedStarRating: ''},
        avoidedAgeRatings: [],
        brandSafetyCategories: {
          avoidUnknownBrandSafetyCategory: false,
          avoidedHighSeverityCategories: [],
          avoidedMediumSeverityCategories: []
        },
        customSegmentId: '',
        displayViewability: {iab: '', viewableDuring: ''},
        fraudInvalidTraffic: {avoidInsufficientOption: false, avoidedFraudOption: ''},
        videoViewability: {playerImpressionRate: '', videoIab: '', videoViewableRate: ''}
      },
      integralAdScience: {
        customSegmentId: [],
        displayViewability: '',
        excludeUnrateable: false,
        excludedAdFraudRisk: '',
        excludedAdultRisk: '',
        excludedAlcoholRisk: '',
        excludedDrugsRisk: '',
        excludedGamblingRisk: '',
        excludedHateSpeechRisk: '',
        excludedIllegalDownloadsRisk: '',
        excludedOffensiveLanguageRisk: '',
        excludedViolenceRisk: '',
        traqScoreOption: '',
        videoViewability: ''
      }
    },
    urlDetails: {negative: false, url: ''},
    userRewardedContentDetails: {targetingOptionId: '', userRewardedContent: ''},
    videoPlayerSizeDetails: {videoPlayerSize: ''},
    viewabilityDetails: {viewability: ''},
    youtubeChannelDetails: {channelId: '', negative: false},
    youtubeVideoDetails: {negative: false, videoId: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"ageRangeDetails":{"ageRange":""},"appCategoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"appDetails":{"appId":"","appPlatform":"","displayName":"","negative":false},"assignedTargetingOptionId":"","assignedTargetingOptionIdAlias":"","audienceGroupDetails":{"excludedFirstAndThirdPartyAudienceGroup":{"settings":[{"firstAndThirdPartyAudienceId":"","recency":""}]},"excludedGoogleAudienceGroup":{"settings":[{"googleAudienceId":""}]},"includedCombinedAudienceGroup":{"settings":[{"combinedAudienceId":""}]},"includedCustomListGroup":{"settings":[{"customListId":""}]},"includedFirstAndThirdPartyAudienceGroups":[{}],"includedGoogleAudienceGroup":{}},"audioContentTypeDetails":{"audioContentType":""},"authorizedSellerStatusDetails":{"authorizedSellerStatus":"","targetingOptionId":""},"browserDetails":{"displayName":"","negative":false,"targetingOptionId":""},"businessChainDetails":{"displayName":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"carrierAndIspDetails":{"displayName":"","negative":false,"targetingOptionId":""},"categoryDetails":{"displayName":"","negative":false,"targetingOptionId":""},"channelDetails":{"channelId":"","negative":false},"contentDurationDetails":{"contentDuration":"","targetingOptionId":""},"contentGenreDetails":{"displayName":"","negative":false,"targetingOptionId":""},"contentInstreamPositionDetails":{"adType":"","contentInstreamPosition":""},"contentOutstreamPositionDetails":{"adType":"","contentOutstreamPosition":""},"contentStreamTypeDetails":{"contentStreamType":"","targetingOptionId":""},"dayAndTimeDetails":{"dayOfWeek":"","endHour":0,"startHour":0,"timeZoneResolution":""},"deviceMakeModelDetails":{"displayName":"","negative":false,"targetingOptionId":""},"deviceTypeDetails":{"deviceType":"","youtubeAndPartnersBidMultiplier":""},"digitalContentLabelExclusionDetails":{"excludedContentRatingTier":""},"environmentDetails":{"environment":""},"exchangeDetails":{"exchange":""},"genderDetails":{"gender":""},"geoRegionDetails":{"displayName":"","geoRegionType":"","negative":false,"targetingOptionId":""},"householdIncomeDetails":{"householdIncome":""},"inheritance":"","inventorySourceDetails":{"inventorySourceId":""},"inventorySourceGroupDetails":{"inventorySourceGroupId":""},"keywordDetails":{"keyword":"","negative":false},"languageDetails":{"displayName":"","negative":false,"targetingOptionId":""},"name":"","nativeContentPositionDetails":{"contentPosition":""},"negativeKeywordListDetails":{"negativeKeywordListId":""},"omidDetails":{"omid":""},"onScreenPositionDetails":{"adType":"","onScreenPosition":"","targetingOptionId":""},"operatingSystemDetails":{"displayName":"","negative":false,"targetingOptionId":""},"parentalStatusDetails":{"parentalStatus":""},"poiDetails":{"displayName":"","latitude":"","longitude":"","proximityRadiusAmount":"","proximityRadiusUnit":"","targetingOptionId":""},"proximityLocationListDetails":{"proximityLocationListId":"","proximityRadius":"","proximityRadiusUnit":""},"regionalLocationListDetails":{"negative":false,"regionalLocationListId":""},"sensitiveCategoryExclusionDetails":{"excludedSensitiveCategory":""},"sessionPositionDetails":{"sessionPosition":""},"subExchangeDetails":{"targetingOptionId":""},"targetingType":"","thirdPartyVerifierDetails":{"adloox":{"excludedAdlooxCategories":[]},"doubleVerify":{"appStarRating":{"avoidInsufficientStarRating":false,"avoidedStarRating":""},"avoidedAgeRatings":[],"brandSafetyCategories":{"avoidUnknownBrandSafetyCategory":false,"avoidedHighSeverityCategories":[],"avoidedMediumSeverityCategories":[]},"customSegmentId":"","displayViewability":{"iab":"","viewableDuring":""},"fraudInvalidTraffic":{"avoidInsufficientOption":false,"avoidedFraudOption":""},"videoViewability":{"playerImpressionRate":"","videoIab":"","videoViewableRate":""}},"integralAdScience":{"customSegmentId":[],"displayViewability":"","excludeUnrateable":false,"excludedAdFraudRisk":"","excludedAdultRisk":"","excludedAlcoholRisk":"","excludedDrugsRisk":"","excludedGamblingRisk":"","excludedHateSpeechRisk":"","excludedIllegalDownloadsRisk":"","excludedOffensiveLanguageRisk":"","excludedViolenceRisk":"","traqScoreOption":"","videoViewability":""}},"urlDetails":{"negative":false,"url":""},"userRewardedContentDetails":{"targetingOptionId":"","userRewardedContent":""},"videoPlayerSizeDetails":{"videoPlayerSize":""},"viewabilityDetails":{"viewability":""},"youtubeChannelDetails":{"channelId":"","negative":false},"youtubeVideoDetails":{"negative":false,"videoId":""}}'
};

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 = @{ @"ageRangeDetails": @{ @"ageRange": @"" },
                              @"appCategoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"appDetails": @{ @"appId": @"", @"appPlatform": @"", @"displayName": @"", @"negative": @NO },
                              @"assignedTargetingOptionId": @"",
                              @"assignedTargetingOptionIdAlias": @"",
                              @"audienceGroupDetails": @{ @"excludedFirstAndThirdPartyAudienceGroup": @{ @"settings": @[ @{ @"firstAndThirdPartyAudienceId": @"", @"recency": @"" } ] }, @"excludedGoogleAudienceGroup": @{ @"settings": @[ @{ @"googleAudienceId": @"" } ] }, @"includedCombinedAudienceGroup": @{ @"settings": @[ @{ @"combinedAudienceId": @"" } ] }, @"includedCustomListGroup": @{ @"settings": @[ @{ @"customListId": @"" } ] }, @"includedFirstAndThirdPartyAudienceGroups": @[ @{  } ], @"includedGoogleAudienceGroup": @{  } },
                              @"audioContentTypeDetails": @{ @"audioContentType": @"" },
                              @"authorizedSellerStatusDetails": @{ @"authorizedSellerStatus": @"", @"targetingOptionId": @"" },
                              @"browserDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"businessChainDetails": @{ @"displayName": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" },
                              @"carrierAndIspDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"categoryDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"channelDetails": @{ @"channelId": @"", @"negative": @NO },
                              @"contentDurationDetails": @{ @"contentDuration": @"", @"targetingOptionId": @"" },
                              @"contentGenreDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"contentInstreamPositionDetails": @{ @"adType": @"", @"contentInstreamPosition": @"" },
                              @"contentOutstreamPositionDetails": @{ @"adType": @"", @"contentOutstreamPosition": @"" },
                              @"contentStreamTypeDetails": @{ @"contentStreamType": @"", @"targetingOptionId": @"" },
                              @"dayAndTimeDetails": @{ @"dayOfWeek": @"", @"endHour": @0, @"startHour": @0, @"timeZoneResolution": @"" },
                              @"deviceMakeModelDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"deviceTypeDetails": @{ @"deviceType": @"", @"youtubeAndPartnersBidMultiplier": @"" },
                              @"digitalContentLabelExclusionDetails": @{ @"excludedContentRatingTier": @"" },
                              @"environmentDetails": @{ @"environment": @"" },
                              @"exchangeDetails": @{ @"exchange": @"" },
                              @"genderDetails": @{ @"gender": @"" },
                              @"geoRegionDetails": @{ @"displayName": @"", @"geoRegionType": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"householdIncomeDetails": @{ @"householdIncome": @"" },
                              @"inheritance": @"",
                              @"inventorySourceDetails": @{ @"inventorySourceId": @"" },
                              @"inventorySourceGroupDetails": @{ @"inventorySourceGroupId": @"" },
                              @"keywordDetails": @{ @"keyword": @"", @"negative": @NO },
                              @"languageDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"name": @"",
                              @"nativeContentPositionDetails": @{ @"contentPosition": @"" },
                              @"negativeKeywordListDetails": @{ @"negativeKeywordListId": @"" },
                              @"omidDetails": @{ @"omid": @"" },
                              @"onScreenPositionDetails": @{ @"adType": @"", @"onScreenPosition": @"", @"targetingOptionId": @"" },
                              @"operatingSystemDetails": @{ @"displayName": @"", @"negative": @NO, @"targetingOptionId": @"" },
                              @"parentalStatusDetails": @{ @"parentalStatus": @"" },
                              @"poiDetails": @{ @"displayName": @"", @"latitude": @"", @"longitude": @"", @"proximityRadiusAmount": @"", @"proximityRadiusUnit": @"", @"targetingOptionId": @"" },
                              @"proximityLocationListDetails": @{ @"proximityLocationListId": @"", @"proximityRadius": @"", @"proximityRadiusUnit": @"" },
                              @"regionalLocationListDetails": @{ @"negative": @NO, @"regionalLocationListId": @"" },
                              @"sensitiveCategoryExclusionDetails": @{ @"excludedSensitiveCategory": @"" },
                              @"sessionPositionDetails": @{ @"sessionPosition": @"" },
                              @"subExchangeDetails": @{ @"targetingOptionId": @"" },
                              @"targetingType": @"",
                              @"thirdPartyVerifierDetails": @{ @"adloox": @{ @"excludedAdlooxCategories": @[  ] }, @"doubleVerify": @{ @"appStarRating": @{ @"avoidInsufficientStarRating": @NO, @"avoidedStarRating": @"" }, @"avoidedAgeRatings": @[  ], @"brandSafetyCategories": @{ @"avoidUnknownBrandSafetyCategory": @NO, @"avoidedHighSeverityCategories": @[  ], @"avoidedMediumSeverityCategories": @[  ] }, @"customSegmentId": @"", @"displayViewability": @{ @"iab": @"", @"viewableDuring": @"" }, @"fraudInvalidTraffic": @{ @"avoidInsufficientOption": @NO, @"avoidedFraudOption": @"" }, @"videoViewability": @{ @"playerImpressionRate": @"", @"videoIab": @"", @"videoViewableRate": @"" } }, @"integralAdScience": @{ @"customSegmentId": @[  ], @"displayViewability": @"", @"excludeUnrateable": @NO, @"excludedAdFraudRisk": @"", @"excludedAdultRisk": @"", @"excludedAlcoholRisk": @"", @"excludedDrugsRisk": @"", @"excludedGamblingRisk": @"", @"excludedHateSpeechRisk": @"", @"excludedIllegalDownloadsRisk": @"", @"excludedOffensiveLanguageRisk": @"", @"excludedViolenceRisk": @"", @"traqScoreOption": @"", @"videoViewability": @"" } },
                              @"urlDetails": @{ @"negative": @NO, @"url": @"" },
                              @"userRewardedContentDetails": @{ @"targetingOptionId": @"", @"userRewardedContent": @"" },
                              @"videoPlayerSizeDetails": @{ @"videoPlayerSize": @"" },
                              @"viewabilityDetails": @{ @"viewability": @"" },
                              @"youtubeChannelDetails": @{ @"channelId": @"", @"negative": @NO },
                              @"youtubeVideoDetails": @{ @"negative": @NO, @"videoId": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"]
                                                       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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions",
  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([
    'ageRangeDetails' => [
        'ageRange' => ''
    ],
    'appCategoryDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'appDetails' => [
        'appId' => '',
        'appPlatform' => '',
        'displayName' => '',
        'negative' => null
    ],
    'assignedTargetingOptionId' => '',
    'assignedTargetingOptionIdAlias' => '',
    'audienceGroupDetails' => [
        'excludedFirstAndThirdPartyAudienceGroup' => [
                'settings' => [
                                [
                                                                'firstAndThirdPartyAudienceId' => '',
                                                                'recency' => ''
                                ]
                ]
        ],
        'excludedGoogleAudienceGroup' => [
                'settings' => [
                                [
                                                                'googleAudienceId' => ''
                                ]
                ]
        ],
        'includedCombinedAudienceGroup' => [
                'settings' => [
                                [
                                                                'combinedAudienceId' => ''
                                ]
                ]
        ],
        'includedCustomListGroup' => [
                'settings' => [
                                [
                                                                'customListId' => ''
                                ]
                ]
        ],
        'includedFirstAndThirdPartyAudienceGroups' => [
                [
                                
                ]
        ],
        'includedGoogleAudienceGroup' => [
                
        ]
    ],
    'audioContentTypeDetails' => [
        'audioContentType' => ''
    ],
    'authorizedSellerStatusDetails' => [
        'authorizedSellerStatus' => '',
        'targetingOptionId' => ''
    ],
    'browserDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'businessChainDetails' => [
        'displayName' => '',
        'proximityRadiusAmount' => '',
        'proximityRadiusUnit' => '',
        'targetingOptionId' => ''
    ],
    'carrierAndIspDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'categoryDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'channelDetails' => [
        'channelId' => '',
        'negative' => null
    ],
    'contentDurationDetails' => [
        'contentDuration' => '',
        'targetingOptionId' => ''
    ],
    'contentGenreDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'contentInstreamPositionDetails' => [
        'adType' => '',
        'contentInstreamPosition' => ''
    ],
    'contentOutstreamPositionDetails' => [
        'adType' => '',
        'contentOutstreamPosition' => ''
    ],
    'contentStreamTypeDetails' => [
        'contentStreamType' => '',
        'targetingOptionId' => ''
    ],
    'dayAndTimeDetails' => [
        'dayOfWeek' => '',
        'endHour' => 0,
        'startHour' => 0,
        'timeZoneResolution' => ''
    ],
    'deviceMakeModelDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'deviceTypeDetails' => [
        'deviceType' => '',
        'youtubeAndPartnersBidMultiplier' => ''
    ],
    'digitalContentLabelExclusionDetails' => [
        'excludedContentRatingTier' => ''
    ],
    'environmentDetails' => [
        'environment' => ''
    ],
    'exchangeDetails' => [
        'exchange' => ''
    ],
    'genderDetails' => [
        'gender' => ''
    ],
    'geoRegionDetails' => [
        'displayName' => '',
        'geoRegionType' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'householdIncomeDetails' => [
        'householdIncome' => ''
    ],
    'inheritance' => '',
    'inventorySourceDetails' => [
        'inventorySourceId' => ''
    ],
    'inventorySourceGroupDetails' => [
        'inventorySourceGroupId' => ''
    ],
    'keywordDetails' => [
        'keyword' => '',
        'negative' => null
    ],
    'languageDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'name' => '',
    'nativeContentPositionDetails' => [
        'contentPosition' => ''
    ],
    'negativeKeywordListDetails' => [
        'negativeKeywordListId' => ''
    ],
    'omidDetails' => [
        'omid' => ''
    ],
    'onScreenPositionDetails' => [
        'adType' => '',
        'onScreenPosition' => '',
        'targetingOptionId' => ''
    ],
    'operatingSystemDetails' => [
        'displayName' => '',
        'negative' => null,
        'targetingOptionId' => ''
    ],
    'parentalStatusDetails' => [
        'parentalStatus' => ''
    ],
    'poiDetails' => [
        'displayName' => '',
        'latitude' => '',
        'longitude' => '',
        'proximityRadiusAmount' => '',
        'proximityRadiusUnit' => '',
        'targetingOptionId' => ''
    ],
    'proximityLocationListDetails' => [
        'proximityLocationListId' => '',
        'proximityRadius' => '',
        'proximityRadiusUnit' => ''
    ],
    'regionalLocationListDetails' => [
        'negative' => null,
        'regionalLocationListId' => ''
    ],
    'sensitiveCategoryExclusionDetails' => [
        'excludedSensitiveCategory' => ''
    ],
    'sessionPositionDetails' => [
        'sessionPosition' => ''
    ],
    'subExchangeDetails' => [
        'targetingOptionId' => ''
    ],
    'targetingType' => '',
    'thirdPartyVerifierDetails' => [
        'adloox' => [
                'excludedAdlooxCategories' => [
                                
                ]
        ],
        'doubleVerify' => [
                'appStarRating' => [
                                'avoidInsufficientStarRating' => null,
                                'avoidedStarRating' => ''
                ],
                'avoidedAgeRatings' => [
                                
                ],
                'brandSafetyCategories' => [
                                'avoidUnknownBrandSafetyCategory' => null,
                                'avoidedHighSeverityCategories' => [
                                                                
                                ],
                                'avoidedMediumSeverityCategories' => [
                                                                
                                ]
                ],
                'customSegmentId' => '',
                'displayViewability' => [
                                'iab' => '',
                                'viewableDuring' => ''
                ],
                'fraudInvalidTraffic' => [
                                'avoidInsufficientOption' => null,
                                'avoidedFraudOption' => ''
                ],
                'videoViewability' => [
                                'playerImpressionRate' => '',
                                'videoIab' => '',
                                'videoViewableRate' => ''
                ]
        ],
        'integralAdScience' => [
                'customSegmentId' => [
                                
                ],
                'displayViewability' => '',
                'excludeUnrateable' => null,
                'excludedAdFraudRisk' => '',
                'excludedAdultRisk' => '',
                'excludedAlcoholRisk' => '',
                'excludedDrugsRisk' => '',
                'excludedGamblingRisk' => '',
                'excludedHateSpeechRisk' => '',
                'excludedIllegalDownloadsRisk' => '',
                'excludedOffensiveLanguageRisk' => '',
                'excludedViolenceRisk' => '',
                'traqScoreOption' => '',
                'videoViewability' => ''
        ]
    ],
    'urlDetails' => [
        'negative' => null,
        'url' => ''
    ],
    'userRewardedContentDetails' => [
        'targetingOptionId' => '',
        'userRewardedContent' => ''
    ],
    'videoPlayerSizeDetails' => [
        'videoPlayerSize' => ''
    ],
    'viewabilityDetails' => [
        'viewability' => ''
    ],
    'youtubeChannelDetails' => [
        'channelId' => '',
        'negative' => null
    ],
    'youtubeVideoDetails' => [
        'negative' => null,
        'videoId' => ''
    ]
  ]),
  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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions', [
  'body' => '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'ageRangeDetails' => [
    'ageRange' => ''
  ],
  'appCategoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'appDetails' => [
    'appId' => '',
    'appPlatform' => '',
    'displayName' => '',
    'negative' => null
  ],
  'assignedTargetingOptionId' => '',
  'assignedTargetingOptionIdAlias' => '',
  'audienceGroupDetails' => [
    'excludedFirstAndThirdPartyAudienceGroup' => [
        'settings' => [
                [
                                'firstAndThirdPartyAudienceId' => '',
                                'recency' => ''
                ]
        ]
    ],
    'excludedGoogleAudienceGroup' => [
        'settings' => [
                [
                                'googleAudienceId' => ''
                ]
        ]
    ],
    'includedCombinedAudienceGroup' => [
        'settings' => [
                [
                                'combinedAudienceId' => ''
                ]
        ]
    ],
    'includedCustomListGroup' => [
        'settings' => [
                [
                                'customListId' => ''
                ]
        ]
    ],
    'includedFirstAndThirdPartyAudienceGroups' => [
        [
                
        ]
    ],
    'includedGoogleAudienceGroup' => [
        
    ]
  ],
  'audioContentTypeDetails' => [
    'audioContentType' => ''
  ],
  'authorizedSellerStatusDetails' => [
    'authorizedSellerStatus' => '',
    'targetingOptionId' => ''
  ],
  'browserDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'businessChainDetails' => [
    'displayName' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'carrierAndIspDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'categoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'channelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'contentDurationDetails' => [
    'contentDuration' => '',
    'targetingOptionId' => ''
  ],
  'contentGenreDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'contentInstreamPositionDetails' => [
    'adType' => '',
    'contentInstreamPosition' => ''
  ],
  'contentOutstreamPositionDetails' => [
    'adType' => '',
    'contentOutstreamPosition' => ''
  ],
  'contentStreamTypeDetails' => [
    'contentStreamType' => '',
    'targetingOptionId' => ''
  ],
  'dayAndTimeDetails' => [
    'dayOfWeek' => '',
    'endHour' => 0,
    'startHour' => 0,
    'timeZoneResolution' => ''
  ],
  'deviceMakeModelDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'deviceTypeDetails' => [
    'deviceType' => '',
    'youtubeAndPartnersBidMultiplier' => ''
  ],
  'digitalContentLabelExclusionDetails' => [
    'excludedContentRatingTier' => ''
  ],
  'environmentDetails' => [
    'environment' => ''
  ],
  'exchangeDetails' => [
    'exchange' => ''
  ],
  'genderDetails' => [
    'gender' => ''
  ],
  'geoRegionDetails' => [
    'displayName' => '',
    'geoRegionType' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'householdIncomeDetails' => [
    'householdIncome' => ''
  ],
  'inheritance' => '',
  'inventorySourceDetails' => [
    'inventorySourceId' => ''
  ],
  'inventorySourceGroupDetails' => [
    'inventorySourceGroupId' => ''
  ],
  'keywordDetails' => [
    'keyword' => '',
    'negative' => null
  ],
  'languageDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'name' => '',
  'nativeContentPositionDetails' => [
    'contentPosition' => ''
  ],
  'negativeKeywordListDetails' => [
    'negativeKeywordListId' => ''
  ],
  'omidDetails' => [
    'omid' => ''
  ],
  'onScreenPositionDetails' => [
    'adType' => '',
    'onScreenPosition' => '',
    'targetingOptionId' => ''
  ],
  'operatingSystemDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'parentalStatusDetails' => [
    'parentalStatus' => ''
  ],
  'poiDetails' => [
    'displayName' => '',
    'latitude' => '',
    'longitude' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'proximityLocationListDetails' => [
    'proximityLocationListId' => '',
    'proximityRadius' => '',
    'proximityRadiusUnit' => ''
  ],
  'regionalLocationListDetails' => [
    'negative' => null,
    'regionalLocationListId' => ''
  ],
  'sensitiveCategoryExclusionDetails' => [
    'excludedSensitiveCategory' => ''
  ],
  'sessionPositionDetails' => [
    'sessionPosition' => ''
  ],
  'subExchangeDetails' => [
    'targetingOptionId' => ''
  ],
  'targetingType' => '',
  'thirdPartyVerifierDetails' => [
    'adloox' => [
        'excludedAdlooxCategories' => [
                
        ]
    ],
    'doubleVerify' => [
        'appStarRating' => [
                'avoidInsufficientStarRating' => null,
                'avoidedStarRating' => ''
        ],
        'avoidedAgeRatings' => [
                
        ],
        'brandSafetyCategories' => [
                'avoidUnknownBrandSafetyCategory' => null,
                'avoidedHighSeverityCategories' => [
                                
                ],
                'avoidedMediumSeverityCategories' => [
                                
                ]
        ],
        'customSegmentId' => '',
        'displayViewability' => [
                'iab' => '',
                'viewableDuring' => ''
        ],
        'fraudInvalidTraffic' => [
                'avoidInsufficientOption' => null,
                'avoidedFraudOption' => ''
        ],
        'videoViewability' => [
                'playerImpressionRate' => '',
                'videoIab' => '',
                'videoViewableRate' => ''
        ]
    ],
    'integralAdScience' => [
        'customSegmentId' => [
                
        ],
        'displayViewability' => '',
        'excludeUnrateable' => null,
        'excludedAdFraudRisk' => '',
        'excludedAdultRisk' => '',
        'excludedAlcoholRisk' => '',
        'excludedDrugsRisk' => '',
        'excludedGamblingRisk' => '',
        'excludedHateSpeechRisk' => '',
        'excludedIllegalDownloadsRisk' => '',
        'excludedOffensiveLanguageRisk' => '',
        'excludedViolenceRisk' => '',
        'traqScoreOption' => '',
        'videoViewability' => ''
    ]
  ],
  'urlDetails' => [
    'negative' => null,
    'url' => ''
  ],
  'userRewardedContentDetails' => [
    'targetingOptionId' => '',
    'userRewardedContent' => ''
  ],
  'videoPlayerSizeDetails' => [
    'videoPlayerSize' => ''
  ],
  'viewabilityDetails' => [
    'viewability' => ''
  ],
  'youtubeChannelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'youtubeVideoDetails' => [
    'negative' => null,
    'videoId' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'ageRangeDetails' => [
    'ageRange' => ''
  ],
  'appCategoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'appDetails' => [
    'appId' => '',
    'appPlatform' => '',
    'displayName' => '',
    'negative' => null
  ],
  'assignedTargetingOptionId' => '',
  'assignedTargetingOptionIdAlias' => '',
  'audienceGroupDetails' => [
    'excludedFirstAndThirdPartyAudienceGroup' => [
        'settings' => [
                [
                                'firstAndThirdPartyAudienceId' => '',
                                'recency' => ''
                ]
        ]
    ],
    'excludedGoogleAudienceGroup' => [
        'settings' => [
                [
                                'googleAudienceId' => ''
                ]
        ]
    ],
    'includedCombinedAudienceGroup' => [
        'settings' => [
                [
                                'combinedAudienceId' => ''
                ]
        ]
    ],
    'includedCustomListGroup' => [
        'settings' => [
                [
                                'customListId' => ''
                ]
        ]
    ],
    'includedFirstAndThirdPartyAudienceGroups' => [
        [
                
        ]
    ],
    'includedGoogleAudienceGroup' => [
        
    ]
  ],
  'audioContentTypeDetails' => [
    'audioContentType' => ''
  ],
  'authorizedSellerStatusDetails' => [
    'authorizedSellerStatus' => '',
    'targetingOptionId' => ''
  ],
  'browserDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'businessChainDetails' => [
    'displayName' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'carrierAndIspDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'categoryDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'channelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'contentDurationDetails' => [
    'contentDuration' => '',
    'targetingOptionId' => ''
  ],
  'contentGenreDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'contentInstreamPositionDetails' => [
    'adType' => '',
    'contentInstreamPosition' => ''
  ],
  'contentOutstreamPositionDetails' => [
    'adType' => '',
    'contentOutstreamPosition' => ''
  ],
  'contentStreamTypeDetails' => [
    'contentStreamType' => '',
    'targetingOptionId' => ''
  ],
  'dayAndTimeDetails' => [
    'dayOfWeek' => '',
    'endHour' => 0,
    'startHour' => 0,
    'timeZoneResolution' => ''
  ],
  'deviceMakeModelDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'deviceTypeDetails' => [
    'deviceType' => '',
    'youtubeAndPartnersBidMultiplier' => ''
  ],
  'digitalContentLabelExclusionDetails' => [
    'excludedContentRatingTier' => ''
  ],
  'environmentDetails' => [
    'environment' => ''
  ],
  'exchangeDetails' => [
    'exchange' => ''
  ],
  'genderDetails' => [
    'gender' => ''
  ],
  'geoRegionDetails' => [
    'displayName' => '',
    'geoRegionType' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'householdIncomeDetails' => [
    'householdIncome' => ''
  ],
  'inheritance' => '',
  'inventorySourceDetails' => [
    'inventorySourceId' => ''
  ],
  'inventorySourceGroupDetails' => [
    'inventorySourceGroupId' => ''
  ],
  'keywordDetails' => [
    'keyword' => '',
    'negative' => null
  ],
  'languageDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'name' => '',
  'nativeContentPositionDetails' => [
    'contentPosition' => ''
  ],
  'negativeKeywordListDetails' => [
    'negativeKeywordListId' => ''
  ],
  'omidDetails' => [
    'omid' => ''
  ],
  'onScreenPositionDetails' => [
    'adType' => '',
    'onScreenPosition' => '',
    'targetingOptionId' => ''
  ],
  'operatingSystemDetails' => [
    'displayName' => '',
    'negative' => null,
    'targetingOptionId' => ''
  ],
  'parentalStatusDetails' => [
    'parentalStatus' => ''
  ],
  'poiDetails' => [
    'displayName' => '',
    'latitude' => '',
    'longitude' => '',
    'proximityRadiusAmount' => '',
    'proximityRadiusUnit' => '',
    'targetingOptionId' => ''
  ],
  'proximityLocationListDetails' => [
    'proximityLocationListId' => '',
    'proximityRadius' => '',
    'proximityRadiusUnit' => ''
  ],
  'regionalLocationListDetails' => [
    'negative' => null,
    'regionalLocationListId' => ''
  ],
  'sensitiveCategoryExclusionDetails' => [
    'excludedSensitiveCategory' => ''
  ],
  'sessionPositionDetails' => [
    'sessionPosition' => ''
  ],
  'subExchangeDetails' => [
    'targetingOptionId' => ''
  ],
  'targetingType' => '',
  'thirdPartyVerifierDetails' => [
    'adloox' => [
        'excludedAdlooxCategories' => [
                
        ]
    ],
    'doubleVerify' => [
        'appStarRating' => [
                'avoidInsufficientStarRating' => null,
                'avoidedStarRating' => ''
        ],
        'avoidedAgeRatings' => [
                
        ],
        'brandSafetyCategories' => [
                'avoidUnknownBrandSafetyCategory' => null,
                'avoidedHighSeverityCategories' => [
                                
                ],
                'avoidedMediumSeverityCategories' => [
                                
                ]
        ],
        'customSegmentId' => '',
        'displayViewability' => [
                'iab' => '',
                'viewableDuring' => ''
        ],
        'fraudInvalidTraffic' => [
                'avoidInsufficientOption' => null,
                'avoidedFraudOption' => ''
        ],
        'videoViewability' => [
                'playerImpressionRate' => '',
                'videoIab' => '',
                'videoViewableRate' => ''
        ]
    ],
    'integralAdScience' => [
        'customSegmentId' => [
                
        ],
        'displayViewability' => '',
        'excludeUnrateable' => null,
        'excludedAdFraudRisk' => '',
        'excludedAdultRisk' => '',
        'excludedAlcoholRisk' => '',
        'excludedDrugsRisk' => '',
        'excludedGamblingRisk' => '',
        'excludedHateSpeechRisk' => '',
        'excludedIllegalDownloadsRisk' => '',
        'excludedOffensiveLanguageRisk' => '',
        'excludedViolenceRisk' => '',
        'traqScoreOption' => '',
        'videoViewability' => ''
    ]
  ],
  'urlDetails' => [
    'negative' => null,
    'url' => ''
  ],
  'userRewardedContentDetails' => [
    'targetingOptionId' => '',
    'userRewardedContent' => ''
  ],
  'videoPlayerSizeDetails' => [
    'videoPlayerSize' => ''
  ],
  'viewabilityDetails' => [
    'viewability' => ''
  ],
  'youtubeChannelDetails' => [
    'channelId' => '',
    'negative' => null
  ],
  'youtubeVideoDetails' => [
    'negative' => null,
    'videoId' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions');
$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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"

payload = {
    "ageRangeDetails": { "ageRange": "" },
    "appCategoryDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "appDetails": {
        "appId": "",
        "appPlatform": "",
        "displayName": "",
        "negative": False
    },
    "assignedTargetingOptionId": "",
    "assignedTargetingOptionIdAlias": "",
    "audienceGroupDetails": {
        "excludedFirstAndThirdPartyAudienceGroup": { "settings": [
                {
                    "firstAndThirdPartyAudienceId": "",
                    "recency": ""
                }
            ] },
        "excludedGoogleAudienceGroup": { "settings": [{ "googleAudienceId": "" }] },
        "includedCombinedAudienceGroup": { "settings": [{ "combinedAudienceId": "" }] },
        "includedCustomListGroup": { "settings": [{ "customListId": "" }] },
        "includedFirstAndThirdPartyAudienceGroups": [{}],
        "includedGoogleAudienceGroup": {}
    },
    "audioContentTypeDetails": { "audioContentType": "" },
    "authorizedSellerStatusDetails": {
        "authorizedSellerStatus": "",
        "targetingOptionId": ""
    },
    "browserDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "businessChainDetails": {
        "displayName": "",
        "proximityRadiusAmount": "",
        "proximityRadiusUnit": "",
        "targetingOptionId": ""
    },
    "carrierAndIspDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "categoryDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "channelDetails": {
        "channelId": "",
        "negative": False
    },
    "contentDurationDetails": {
        "contentDuration": "",
        "targetingOptionId": ""
    },
    "contentGenreDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "contentInstreamPositionDetails": {
        "adType": "",
        "contentInstreamPosition": ""
    },
    "contentOutstreamPositionDetails": {
        "adType": "",
        "contentOutstreamPosition": ""
    },
    "contentStreamTypeDetails": {
        "contentStreamType": "",
        "targetingOptionId": ""
    },
    "dayAndTimeDetails": {
        "dayOfWeek": "",
        "endHour": 0,
        "startHour": 0,
        "timeZoneResolution": ""
    },
    "deviceMakeModelDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "deviceTypeDetails": {
        "deviceType": "",
        "youtubeAndPartnersBidMultiplier": ""
    },
    "digitalContentLabelExclusionDetails": { "excludedContentRatingTier": "" },
    "environmentDetails": { "environment": "" },
    "exchangeDetails": { "exchange": "" },
    "genderDetails": { "gender": "" },
    "geoRegionDetails": {
        "displayName": "",
        "geoRegionType": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "householdIncomeDetails": { "householdIncome": "" },
    "inheritance": "",
    "inventorySourceDetails": { "inventorySourceId": "" },
    "inventorySourceGroupDetails": { "inventorySourceGroupId": "" },
    "keywordDetails": {
        "keyword": "",
        "negative": False
    },
    "languageDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "name": "",
    "nativeContentPositionDetails": { "contentPosition": "" },
    "negativeKeywordListDetails": { "negativeKeywordListId": "" },
    "omidDetails": { "omid": "" },
    "onScreenPositionDetails": {
        "adType": "",
        "onScreenPosition": "",
        "targetingOptionId": ""
    },
    "operatingSystemDetails": {
        "displayName": "",
        "negative": False,
        "targetingOptionId": ""
    },
    "parentalStatusDetails": { "parentalStatus": "" },
    "poiDetails": {
        "displayName": "",
        "latitude": "",
        "longitude": "",
        "proximityRadiusAmount": "",
        "proximityRadiusUnit": "",
        "targetingOptionId": ""
    },
    "proximityLocationListDetails": {
        "proximityLocationListId": "",
        "proximityRadius": "",
        "proximityRadiusUnit": ""
    },
    "regionalLocationListDetails": {
        "negative": False,
        "regionalLocationListId": ""
    },
    "sensitiveCategoryExclusionDetails": { "excludedSensitiveCategory": "" },
    "sessionPositionDetails": { "sessionPosition": "" },
    "subExchangeDetails": { "targetingOptionId": "" },
    "targetingType": "",
    "thirdPartyVerifierDetails": {
        "adloox": { "excludedAdlooxCategories": [] },
        "doubleVerify": {
            "appStarRating": {
                "avoidInsufficientStarRating": False,
                "avoidedStarRating": ""
            },
            "avoidedAgeRatings": [],
            "brandSafetyCategories": {
                "avoidUnknownBrandSafetyCategory": False,
                "avoidedHighSeverityCategories": [],
                "avoidedMediumSeverityCategories": []
            },
            "customSegmentId": "",
            "displayViewability": {
                "iab": "",
                "viewableDuring": ""
            },
            "fraudInvalidTraffic": {
                "avoidInsufficientOption": False,
                "avoidedFraudOption": ""
            },
            "videoViewability": {
                "playerImpressionRate": "",
                "videoIab": "",
                "videoViewableRate": ""
            }
        },
        "integralAdScience": {
            "customSegmentId": [],
            "displayViewability": "",
            "excludeUnrateable": False,
            "excludedAdFraudRisk": "",
            "excludedAdultRisk": "",
            "excludedAlcoholRisk": "",
            "excludedDrugsRisk": "",
            "excludedGamblingRisk": "",
            "excludedHateSpeechRisk": "",
            "excludedIllegalDownloadsRisk": "",
            "excludedOffensiveLanguageRisk": "",
            "excludedViolenceRisk": "",
            "traqScoreOption": "",
            "videoViewability": ""
        }
    },
    "urlDetails": {
        "negative": False,
        "url": ""
    },
    "userRewardedContentDetails": {
        "targetingOptionId": "",
        "userRewardedContent": ""
    },
    "videoPlayerSizeDetails": { "videoPlayerSize": "" },
    "viewabilityDetails": { "viewability": "" },
    "youtubeChannelDetails": {
        "channelId": "",
        "negative": False
    },
    "youtubeVideoDetails": {
        "negative": False,
        "videoId": ""
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"

payload <- "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")

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  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\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/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions') do |req|
  req.body = "{\n  \"ageRangeDetails\": {\n    \"ageRange\": \"\"\n  },\n  \"appCategoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"appDetails\": {\n    \"appId\": \"\",\n    \"appPlatform\": \"\",\n    \"displayName\": \"\",\n    \"negative\": false\n  },\n  \"assignedTargetingOptionId\": \"\",\n  \"assignedTargetingOptionIdAlias\": \"\",\n  \"audienceGroupDetails\": {\n    \"excludedFirstAndThirdPartyAudienceGroup\": {\n      \"settings\": [\n        {\n          \"firstAndThirdPartyAudienceId\": \"\",\n          \"recency\": \"\"\n        }\n      ]\n    },\n    \"excludedGoogleAudienceGroup\": {\n      \"settings\": [\n        {\n          \"googleAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCombinedAudienceGroup\": {\n      \"settings\": [\n        {\n          \"combinedAudienceId\": \"\"\n        }\n      ]\n    },\n    \"includedCustomListGroup\": {\n      \"settings\": [\n        {\n          \"customListId\": \"\"\n        }\n      ]\n    },\n    \"includedFirstAndThirdPartyAudienceGroups\": [\n      {}\n    ],\n    \"includedGoogleAudienceGroup\": {}\n  },\n  \"audioContentTypeDetails\": {\n    \"audioContentType\": \"\"\n  },\n  \"authorizedSellerStatusDetails\": {\n    \"authorizedSellerStatus\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"browserDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"businessChainDetails\": {\n    \"displayName\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"carrierAndIspDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"categoryDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"channelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"contentDurationDetails\": {\n    \"contentDuration\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"contentGenreDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"contentInstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentInstreamPosition\": \"\"\n  },\n  \"contentOutstreamPositionDetails\": {\n    \"adType\": \"\",\n    \"contentOutstreamPosition\": \"\"\n  },\n  \"contentStreamTypeDetails\": {\n    \"contentStreamType\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"dayAndTimeDetails\": {\n    \"dayOfWeek\": \"\",\n    \"endHour\": 0,\n    \"startHour\": 0,\n    \"timeZoneResolution\": \"\"\n  },\n  \"deviceMakeModelDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"deviceTypeDetails\": {\n    \"deviceType\": \"\",\n    \"youtubeAndPartnersBidMultiplier\": \"\"\n  },\n  \"digitalContentLabelExclusionDetails\": {\n    \"excludedContentRatingTier\": \"\"\n  },\n  \"environmentDetails\": {\n    \"environment\": \"\"\n  },\n  \"exchangeDetails\": {\n    \"exchange\": \"\"\n  },\n  \"genderDetails\": {\n    \"gender\": \"\"\n  },\n  \"geoRegionDetails\": {\n    \"displayName\": \"\",\n    \"geoRegionType\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"householdIncomeDetails\": {\n    \"householdIncome\": \"\"\n  },\n  \"inheritance\": \"\",\n  \"inventorySourceDetails\": {\n    \"inventorySourceId\": \"\"\n  },\n  \"inventorySourceGroupDetails\": {\n    \"inventorySourceGroupId\": \"\"\n  },\n  \"keywordDetails\": {\n    \"keyword\": \"\",\n    \"negative\": false\n  },\n  \"languageDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"name\": \"\",\n  \"nativeContentPositionDetails\": {\n    \"contentPosition\": \"\"\n  },\n  \"negativeKeywordListDetails\": {\n    \"negativeKeywordListId\": \"\"\n  },\n  \"omidDetails\": {\n    \"omid\": \"\"\n  },\n  \"onScreenPositionDetails\": {\n    \"adType\": \"\",\n    \"onScreenPosition\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"operatingSystemDetails\": {\n    \"displayName\": \"\",\n    \"negative\": false,\n    \"targetingOptionId\": \"\"\n  },\n  \"parentalStatusDetails\": {\n    \"parentalStatus\": \"\"\n  },\n  \"poiDetails\": {\n    \"displayName\": \"\",\n    \"latitude\": \"\",\n    \"longitude\": \"\",\n    \"proximityRadiusAmount\": \"\",\n    \"proximityRadiusUnit\": \"\",\n    \"targetingOptionId\": \"\"\n  },\n  \"proximityLocationListDetails\": {\n    \"proximityLocationListId\": \"\",\n    \"proximityRadius\": \"\",\n    \"proximityRadiusUnit\": \"\"\n  },\n  \"regionalLocationListDetails\": {\n    \"negative\": false,\n    \"regionalLocationListId\": \"\"\n  },\n  \"sensitiveCategoryExclusionDetails\": {\n    \"excludedSensitiveCategory\": \"\"\n  },\n  \"sessionPositionDetails\": {\n    \"sessionPosition\": \"\"\n  },\n  \"subExchangeDetails\": {\n    \"targetingOptionId\": \"\"\n  },\n  \"targetingType\": \"\",\n  \"thirdPartyVerifierDetails\": {\n    \"adloox\": {\n      \"excludedAdlooxCategories\": []\n    },\n    \"doubleVerify\": {\n      \"appStarRating\": {\n        \"avoidInsufficientStarRating\": false,\n        \"avoidedStarRating\": \"\"\n      },\n      \"avoidedAgeRatings\": [],\n      \"brandSafetyCategories\": {\n        \"avoidUnknownBrandSafetyCategory\": false,\n        \"avoidedHighSeverityCategories\": [],\n        \"avoidedMediumSeverityCategories\": []\n      },\n      \"customSegmentId\": \"\",\n      \"displayViewability\": {\n        \"iab\": \"\",\n        \"viewableDuring\": \"\"\n      },\n      \"fraudInvalidTraffic\": {\n        \"avoidInsufficientOption\": false,\n        \"avoidedFraudOption\": \"\"\n      },\n      \"videoViewability\": {\n        \"playerImpressionRate\": \"\",\n        \"videoIab\": \"\",\n        \"videoViewableRate\": \"\"\n      }\n    },\n    \"integralAdScience\": {\n      \"customSegmentId\": [],\n      \"displayViewability\": \"\",\n      \"excludeUnrateable\": false,\n      \"excludedAdFraudRisk\": \"\",\n      \"excludedAdultRisk\": \"\",\n      \"excludedAlcoholRisk\": \"\",\n      \"excludedDrugsRisk\": \"\",\n      \"excludedGamblingRisk\": \"\",\n      \"excludedHateSpeechRisk\": \"\",\n      \"excludedIllegalDownloadsRisk\": \"\",\n      \"excludedOffensiveLanguageRisk\": \"\",\n      \"excludedViolenceRisk\": \"\",\n      \"traqScoreOption\": \"\",\n      \"videoViewability\": \"\"\n    }\n  },\n  \"urlDetails\": {\n    \"negative\": false,\n    \"url\": \"\"\n  },\n  \"userRewardedContentDetails\": {\n    \"targetingOptionId\": \"\",\n    \"userRewardedContent\": \"\"\n  },\n  \"videoPlayerSizeDetails\": {\n    \"videoPlayerSize\": \"\"\n  },\n  \"viewabilityDetails\": {\n    \"viewability\": \"\"\n  },\n  \"youtubeChannelDetails\": {\n    \"channelId\": \"\",\n    \"negative\": false\n  },\n  \"youtubeVideoDetails\": {\n    \"negative\": false,\n    \"videoId\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions";

    let payload = json!({
        "ageRangeDetails": json!({"ageRange": ""}),
        "appCategoryDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "appDetails": json!({
            "appId": "",
            "appPlatform": "",
            "displayName": "",
            "negative": false
        }),
        "assignedTargetingOptionId": "",
        "assignedTargetingOptionIdAlias": "",
        "audienceGroupDetails": json!({
            "excludedFirstAndThirdPartyAudienceGroup": json!({"settings": (
                    json!({
                        "firstAndThirdPartyAudienceId": "",
                        "recency": ""
                    })
                )}),
            "excludedGoogleAudienceGroup": json!({"settings": (json!({"googleAudienceId": ""}))}),
            "includedCombinedAudienceGroup": json!({"settings": (json!({"combinedAudienceId": ""}))}),
            "includedCustomListGroup": json!({"settings": (json!({"customListId": ""}))}),
            "includedFirstAndThirdPartyAudienceGroups": (json!({})),
            "includedGoogleAudienceGroup": json!({})
        }),
        "audioContentTypeDetails": json!({"audioContentType": ""}),
        "authorizedSellerStatusDetails": json!({
            "authorizedSellerStatus": "",
            "targetingOptionId": ""
        }),
        "browserDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "businessChainDetails": json!({
            "displayName": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
        }),
        "carrierAndIspDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "categoryDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "channelDetails": json!({
            "channelId": "",
            "negative": false
        }),
        "contentDurationDetails": json!({
            "contentDuration": "",
            "targetingOptionId": ""
        }),
        "contentGenreDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "contentInstreamPositionDetails": json!({
            "adType": "",
            "contentInstreamPosition": ""
        }),
        "contentOutstreamPositionDetails": json!({
            "adType": "",
            "contentOutstreamPosition": ""
        }),
        "contentStreamTypeDetails": json!({
            "contentStreamType": "",
            "targetingOptionId": ""
        }),
        "dayAndTimeDetails": json!({
            "dayOfWeek": "",
            "endHour": 0,
            "startHour": 0,
            "timeZoneResolution": ""
        }),
        "deviceMakeModelDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "deviceTypeDetails": json!({
            "deviceType": "",
            "youtubeAndPartnersBidMultiplier": ""
        }),
        "digitalContentLabelExclusionDetails": json!({"excludedContentRatingTier": ""}),
        "environmentDetails": json!({"environment": ""}),
        "exchangeDetails": json!({"exchange": ""}),
        "genderDetails": json!({"gender": ""}),
        "geoRegionDetails": json!({
            "displayName": "",
            "geoRegionType": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "householdIncomeDetails": json!({"householdIncome": ""}),
        "inheritance": "",
        "inventorySourceDetails": json!({"inventorySourceId": ""}),
        "inventorySourceGroupDetails": json!({"inventorySourceGroupId": ""}),
        "keywordDetails": json!({
            "keyword": "",
            "negative": false
        }),
        "languageDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "name": "",
        "nativeContentPositionDetails": json!({"contentPosition": ""}),
        "negativeKeywordListDetails": json!({"negativeKeywordListId": ""}),
        "omidDetails": json!({"omid": ""}),
        "onScreenPositionDetails": json!({
            "adType": "",
            "onScreenPosition": "",
            "targetingOptionId": ""
        }),
        "operatingSystemDetails": json!({
            "displayName": "",
            "negative": false,
            "targetingOptionId": ""
        }),
        "parentalStatusDetails": json!({"parentalStatus": ""}),
        "poiDetails": json!({
            "displayName": "",
            "latitude": "",
            "longitude": "",
            "proximityRadiusAmount": "",
            "proximityRadiusUnit": "",
            "targetingOptionId": ""
        }),
        "proximityLocationListDetails": json!({
            "proximityLocationListId": "",
            "proximityRadius": "",
            "proximityRadiusUnit": ""
        }),
        "regionalLocationListDetails": json!({
            "negative": false,
            "regionalLocationListId": ""
        }),
        "sensitiveCategoryExclusionDetails": json!({"excludedSensitiveCategory": ""}),
        "sessionPositionDetails": json!({"sessionPosition": ""}),
        "subExchangeDetails": json!({"targetingOptionId": ""}),
        "targetingType": "",
        "thirdPartyVerifierDetails": json!({
            "adloox": json!({"excludedAdlooxCategories": ()}),
            "doubleVerify": json!({
                "appStarRating": json!({
                    "avoidInsufficientStarRating": false,
                    "avoidedStarRating": ""
                }),
                "avoidedAgeRatings": (),
                "brandSafetyCategories": json!({
                    "avoidUnknownBrandSafetyCategory": false,
                    "avoidedHighSeverityCategories": (),
                    "avoidedMediumSeverityCategories": ()
                }),
                "customSegmentId": "",
                "displayViewability": json!({
                    "iab": "",
                    "viewableDuring": ""
                }),
                "fraudInvalidTraffic": json!({
                    "avoidInsufficientOption": false,
                    "avoidedFraudOption": ""
                }),
                "videoViewability": json!({
                    "playerImpressionRate": "",
                    "videoIab": "",
                    "videoViewableRate": ""
                })
            }),
            "integralAdScience": json!({
                "customSegmentId": (),
                "displayViewability": "",
                "excludeUnrateable": false,
                "excludedAdFraudRisk": "",
                "excludedAdultRisk": "",
                "excludedAlcoholRisk": "",
                "excludedDrugsRisk": "",
                "excludedGamblingRisk": "",
                "excludedHateSpeechRisk": "",
                "excludedIllegalDownloadsRisk": "",
                "excludedOffensiveLanguageRisk": "",
                "excludedViolenceRisk": "",
                "traqScoreOption": "",
                "videoViewability": ""
            })
        }),
        "urlDetails": json!({
            "negative": false,
            "url": ""
        }),
        "userRewardedContentDetails": json!({
            "targetingOptionId": "",
            "userRewardedContent": ""
        }),
        "videoPlayerSizeDetails": json!({"videoPlayerSize": ""}),
        "viewabilityDetails": json!({"viewability": ""}),
        "youtubeChannelDetails": json!({
            "channelId": "",
            "negative": false
        }),
        "youtubeVideoDetails": json!({
            "negative": false,
            "videoId": ""
        })
    });

    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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions \
  --header 'content-type: application/json' \
  --data '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}'
echo '{
  "ageRangeDetails": {
    "ageRange": ""
  },
  "appCategoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "appDetails": {
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  },
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": {
    "excludedFirstAndThirdPartyAudienceGroup": {
      "settings": [
        {
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        }
      ]
    },
    "excludedGoogleAudienceGroup": {
      "settings": [
        {
          "googleAudienceId": ""
        }
      ]
    },
    "includedCombinedAudienceGroup": {
      "settings": [
        {
          "combinedAudienceId": ""
        }
      ]
    },
    "includedCustomListGroup": {
      "settings": [
        {
          "customListId": ""
        }
      ]
    },
    "includedFirstAndThirdPartyAudienceGroups": [
      {}
    ],
    "includedGoogleAudienceGroup": {}
  },
  "audioContentTypeDetails": {
    "audioContentType": ""
  },
  "authorizedSellerStatusDetails": {
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  },
  "browserDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "businessChainDetails": {
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "carrierAndIspDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "categoryDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "channelDetails": {
    "channelId": "",
    "negative": false
  },
  "contentDurationDetails": {
    "contentDuration": "",
    "targetingOptionId": ""
  },
  "contentGenreDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "contentInstreamPositionDetails": {
    "adType": "",
    "contentInstreamPosition": ""
  },
  "contentOutstreamPositionDetails": {
    "adType": "",
    "contentOutstreamPosition": ""
  },
  "contentStreamTypeDetails": {
    "contentStreamType": "",
    "targetingOptionId": ""
  },
  "dayAndTimeDetails": {
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  },
  "deviceMakeModelDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "deviceTypeDetails": {
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  },
  "digitalContentLabelExclusionDetails": {
    "excludedContentRatingTier": ""
  },
  "environmentDetails": {
    "environment": ""
  },
  "exchangeDetails": {
    "exchange": ""
  },
  "genderDetails": {
    "gender": ""
  },
  "geoRegionDetails": {
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "householdIncomeDetails": {
    "householdIncome": ""
  },
  "inheritance": "",
  "inventorySourceDetails": {
    "inventorySourceId": ""
  },
  "inventorySourceGroupDetails": {
    "inventorySourceGroupId": ""
  },
  "keywordDetails": {
    "keyword": "",
    "negative": false
  },
  "languageDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "name": "",
  "nativeContentPositionDetails": {
    "contentPosition": ""
  },
  "negativeKeywordListDetails": {
    "negativeKeywordListId": ""
  },
  "omidDetails": {
    "omid": ""
  },
  "onScreenPositionDetails": {
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  },
  "operatingSystemDetails": {
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  },
  "parentalStatusDetails": {
    "parentalStatus": ""
  },
  "poiDetails": {
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  },
  "proximityLocationListDetails": {
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  },
  "regionalLocationListDetails": {
    "negative": false,
    "regionalLocationListId": ""
  },
  "sensitiveCategoryExclusionDetails": {
    "excludedSensitiveCategory": ""
  },
  "sessionPositionDetails": {
    "sessionPosition": ""
  },
  "subExchangeDetails": {
    "targetingOptionId": ""
  },
  "targetingType": "",
  "thirdPartyVerifierDetails": {
    "adloox": {
      "excludedAdlooxCategories": []
    },
    "doubleVerify": {
      "appStarRating": {
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      },
      "avoidedAgeRatings": [],
      "brandSafetyCategories": {
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      },
      "customSegmentId": "",
      "displayViewability": {
        "iab": "",
        "viewableDuring": ""
      },
      "fraudInvalidTraffic": {
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      },
      "videoViewability": {
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      }
    },
    "integralAdScience": {
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    }
  },
  "urlDetails": {
    "negative": false,
    "url": ""
  },
  "userRewardedContentDetails": {
    "targetingOptionId": "",
    "userRewardedContent": ""
  },
  "videoPlayerSizeDetails": {
    "videoPlayerSize": ""
  },
  "viewabilityDetails": {
    "viewability": ""
  },
  "youtubeChannelDetails": {
    "channelId": "",
    "negative": false
  },
  "youtubeVideoDetails": {
    "negative": false,
    "videoId": ""
  }
}' |  \
  http POST {{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "ageRangeDetails": {\n    "ageRange": ""\n  },\n  "appCategoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "appDetails": {\n    "appId": "",\n    "appPlatform": "",\n    "displayName": "",\n    "negative": false\n  },\n  "assignedTargetingOptionId": "",\n  "assignedTargetingOptionIdAlias": "",\n  "audienceGroupDetails": {\n    "excludedFirstAndThirdPartyAudienceGroup": {\n      "settings": [\n        {\n          "firstAndThirdPartyAudienceId": "",\n          "recency": ""\n        }\n      ]\n    },\n    "excludedGoogleAudienceGroup": {\n      "settings": [\n        {\n          "googleAudienceId": ""\n        }\n      ]\n    },\n    "includedCombinedAudienceGroup": {\n      "settings": [\n        {\n          "combinedAudienceId": ""\n        }\n      ]\n    },\n    "includedCustomListGroup": {\n      "settings": [\n        {\n          "customListId": ""\n        }\n      ]\n    },\n    "includedFirstAndThirdPartyAudienceGroups": [\n      {}\n    ],\n    "includedGoogleAudienceGroup": {}\n  },\n  "audioContentTypeDetails": {\n    "audioContentType": ""\n  },\n  "authorizedSellerStatusDetails": {\n    "authorizedSellerStatus": "",\n    "targetingOptionId": ""\n  },\n  "browserDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "businessChainDetails": {\n    "displayName": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "carrierAndIspDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "categoryDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "channelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "contentDurationDetails": {\n    "contentDuration": "",\n    "targetingOptionId": ""\n  },\n  "contentGenreDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "contentInstreamPositionDetails": {\n    "adType": "",\n    "contentInstreamPosition": ""\n  },\n  "contentOutstreamPositionDetails": {\n    "adType": "",\n    "contentOutstreamPosition": ""\n  },\n  "contentStreamTypeDetails": {\n    "contentStreamType": "",\n    "targetingOptionId": ""\n  },\n  "dayAndTimeDetails": {\n    "dayOfWeek": "",\n    "endHour": 0,\n    "startHour": 0,\n    "timeZoneResolution": ""\n  },\n  "deviceMakeModelDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "deviceTypeDetails": {\n    "deviceType": "",\n    "youtubeAndPartnersBidMultiplier": ""\n  },\n  "digitalContentLabelExclusionDetails": {\n    "excludedContentRatingTier": ""\n  },\n  "environmentDetails": {\n    "environment": ""\n  },\n  "exchangeDetails": {\n    "exchange": ""\n  },\n  "genderDetails": {\n    "gender": ""\n  },\n  "geoRegionDetails": {\n    "displayName": "",\n    "geoRegionType": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "householdIncomeDetails": {\n    "householdIncome": ""\n  },\n  "inheritance": "",\n  "inventorySourceDetails": {\n    "inventorySourceId": ""\n  },\n  "inventorySourceGroupDetails": {\n    "inventorySourceGroupId": ""\n  },\n  "keywordDetails": {\n    "keyword": "",\n    "negative": false\n  },\n  "languageDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "name": "",\n  "nativeContentPositionDetails": {\n    "contentPosition": ""\n  },\n  "negativeKeywordListDetails": {\n    "negativeKeywordListId": ""\n  },\n  "omidDetails": {\n    "omid": ""\n  },\n  "onScreenPositionDetails": {\n    "adType": "",\n    "onScreenPosition": "",\n    "targetingOptionId": ""\n  },\n  "operatingSystemDetails": {\n    "displayName": "",\n    "negative": false,\n    "targetingOptionId": ""\n  },\n  "parentalStatusDetails": {\n    "parentalStatus": ""\n  },\n  "poiDetails": {\n    "displayName": "",\n    "latitude": "",\n    "longitude": "",\n    "proximityRadiusAmount": "",\n    "proximityRadiusUnit": "",\n    "targetingOptionId": ""\n  },\n  "proximityLocationListDetails": {\n    "proximityLocationListId": "",\n    "proximityRadius": "",\n    "proximityRadiusUnit": ""\n  },\n  "regionalLocationListDetails": {\n    "negative": false,\n    "regionalLocationListId": ""\n  },\n  "sensitiveCategoryExclusionDetails": {\n    "excludedSensitiveCategory": ""\n  },\n  "sessionPositionDetails": {\n    "sessionPosition": ""\n  },\n  "subExchangeDetails": {\n    "targetingOptionId": ""\n  },\n  "targetingType": "",\n  "thirdPartyVerifierDetails": {\n    "adloox": {\n      "excludedAdlooxCategories": []\n    },\n    "doubleVerify": {\n      "appStarRating": {\n        "avoidInsufficientStarRating": false,\n        "avoidedStarRating": ""\n      },\n      "avoidedAgeRatings": [],\n      "brandSafetyCategories": {\n        "avoidUnknownBrandSafetyCategory": false,\n        "avoidedHighSeverityCategories": [],\n        "avoidedMediumSeverityCategories": []\n      },\n      "customSegmentId": "",\n      "displayViewability": {\n        "iab": "",\n        "viewableDuring": ""\n      },\n      "fraudInvalidTraffic": {\n        "avoidInsufficientOption": false,\n        "avoidedFraudOption": ""\n      },\n      "videoViewability": {\n        "playerImpressionRate": "",\n        "videoIab": "",\n        "videoViewableRate": ""\n      }\n    },\n    "integralAdScience": {\n      "customSegmentId": [],\n      "displayViewability": "",\n      "excludeUnrateable": false,\n      "excludedAdFraudRisk": "",\n      "excludedAdultRisk": "",\n      "excludedAlcoholRisk": "",\n      "excludedDrugsRisk": "",\n      "excludedGamblingRisk": "",\n      "excludedHateSpeechRisk": "",\n      "excludedIllegalDownloadsRisk": "",\n      "excludedOffensiveLanguageRisk": "",\n      "excludedViolenceRisk": "",\n      "traqScoreOption": "",\n      "videoViewability": ""\n    }\n  },\n  "urlDetails": {\n    "negative": false,\n    "url": ""\n  },\n  "userRewardedContentDetails": {\n    "targetingOptionId": "",\n    "userRewardedContent": ""\n  },\n  "videoPlayerSizeDetails": {\n    "videoPlayerSize": ""\n  },\n  "viewabilityDetails": {\n    "viewability": ""\n  },\n  "youtubeChannelDetails": {\n    "channelId": "",\n    "negative": false\n  },\n  "youtubeVideoDetails": {\n    "negative": false,\n    "videoId": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "ageRangeDetails": ["ageRange": ""],
  "appCategoryDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "appDetails": [
    "appId": "",
    "appPlatform": "",
    "displayName": "",
    "negative": false
  ],
  "assignedTargetingOptionId": "",
  "assignedTargetingOptionIdAlias": "",
  "audienceGroupDetails": [
    "excludedFirstAndThirdPartyAudienceGroup": ["settings": [
        [
          "firstAndThirdPartyAudienceId": "",
          "recency": ""
        ]
      ]],
    "excludedGoogleAudienceGroup": ["settings": [["googleAudienceId": ""]]],
    "includedCombinedAudienceGroup": ["settings": [["combinedAudienceId": ""]]],
    "includedCustomListGroup": ["settings": [["customListId": ""]]],
    "includedFirstAndThirdPartyAudienceGroups": [[]],
    "includedGoogleAudienceGroup": []
  ],
  "audioContentTypeDetails": ["audioContentType": ""],
  "authorizedSellerStatusDetails": [
    "authorizedSellerStatus": "",
    "targetingOptionId": ""
  ],
  "browserDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "businessChainDetails": [
    "displayName": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  ],
  "carrierAndIspDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "categoryDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "channelDetails": [
    "channelId": "",
    "negative": false
  ],
  "contentDurationDetails": [
    "contentDuration": "",
    "targetingOptionId": ""
  ],
  "contentGenreDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "contentInstreamPositionDetails": [
    "adType": "",
    "contentInstreamPosition": ""
  ],
  "contentOutstreamPositionDetails": [
    "adType": "",
    "contentOutstreamPosition": ""
  ],
  "contentStreamTypeDetails": [
    "contentStreamType": "",
    "targetingOptionId": ""
  ],
  "dayAndTimeDetails": [
    "dayOfWeek": "",
    "endHour": 0,
    "startHour": 0,
    "timeZoneResolution": ""
  ],
  "deviceMakeModelDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "deviceTypeDetails": [
    "deviceType": "",
    "youtubeAndPartnersBidMultiplier": ""
  ],
  "digitalContentLabelExclusionDetails": ["excludedContentRatingTier": ""],
  "environmentDetails": ["environment": ""],
  "exchangeDetails": ["exchange": ""],
  "genderDetails": ["gender": ""],
  "geoRegionDetails": [
    "displayName": "",
    "geoRegionType": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "householdIncomeDetails": ["householdIncome": ""],
  "inheritance": "",
  "inventorySourceDetails": ["inventorySourceId": ""],
  "inventorySourceGroupDetails": ["inventorySourceGroupId": ""],
  "keywordDetails": [
    "keyword": "",
    "negative": false
  ],
  "languageDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "name": "",
  "nativeContentPositionDetails": ["contentPosition": ""],
  "negativeKeywordListDetails": ["negativeKeywordListId": ""],
  "omidDetails": ["omid": ""],
  "onScreenPositionDetails": [
    "adType": "",
    "onScreenPosition": "",
    "targetingOptionId": ""
  ],
  "operatingSystemDetails": [
    "displayName": "",
    "negative": false,
    "targetingOptionId": ""
  ],
  "parentalStatusDetails": ["parentalStatus": ""],
  "poiDetails": [
    "displayName": "",
    "latitude": "",
    "longitude": "",
    "proximityRadiusAmount": "",
    "proximityRadiusUnit": "",
    "targetingOptionId": ""
  ],
  "proximityLocationListDetails": [
    "proximityLocationListId": "",
    "proximityRadius": "",
    "proximityRadiusUnit": ""
  ],
  "regionalLocationListDetails": [
    "negative": false,
    "regionalLocationListId": ""
  ],
  "sensitiveCategoryExclusionDetails": ["excludedSensitiveCategory": ""],
  "sessionPositionDetails": ["sessionPosition": ""],
  "subExchangeDetails": ["targetingOptionId": ""],
  "targetingType": "",
  "thirdPartyVerifierDetails": [
    "adloox": ["excludedAdlooxCategories": []],
    "doubleVerify": [
      "appStarRating": [
        "avoidInsufficientStarRating": false,
        "avoidedStarRating": ""
      ],
      "avoidedAgeRatings": [],
      "brandSafetyCategories": [
        "avoidUnknownBrandSafetyCategory": false,
        "avoidedHighSeverityCategories": [],
        "avoidedMediumSeverityCategories": []
      ],
      "customSegmentId": "",
      "displayViewability": [
        "iab": "",
        "viewableDuring": ""
      ],
      "fraudInvalidTraffic": [
        "avoidInsufficientOption": false,
        "avoidedFraudOption": ""
      ],
      "videoViewability": [
        "playerImpressionRate": "",
        "videoIab": "",
        "videoViewableRate": ""
      ]
    ],
    "integralAdScience": [
      "customSegmentId": [],
      "displayViewability": "",
      "excludeUnrateable": false,
      "excludedAdFraudRisk": "",
      "excludedAdultRisk": "",
      "excludedAlcoholRisk": "",
      "excludedDrugsRisk": "",
      "excludedGamblingRisk": "",
      "excludedHateSpeechRisk": "",
      "excludedIllegalDownloadsRisk": "",
      "excludedOffensiveLanguageRisk": "",
      "excludedViolenceRisk": "",
      "traqScoreOption": "",
      "videoViewability": ""
    ]
  ],
  "urlDetails": [
    "negative": false,
    "url": ""
  ],
  "userRewardedContentDetails": [
    "targetingOptionId": "",
    "userRewardedContent": ""
  ],
  "videoPlayerSizeDetails": ["videoPlayerSize": ""],
  "viewabilityDetails": ["viewability": ""],
  "youtubeChannelDetails": [
    "channelId": "",
    "negative": false
  ],
  "youtubeVideoDetails": [
    "negative": false,
    "videoId": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")! 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()
DELETE displayvideo.partners.targetingTypes.assignedTargetingOptions.delete
{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
QUERY PARAMS

partnerId
targetingType
assignedTargetingOptionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
require "http/client"

url = "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

	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/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"))
    .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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"]
                                                       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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId",
  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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

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/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId";

    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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
http DELETE {{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")! 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 displayvideo.partners.targetingTypes.assignedTargetingOptions.get
{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
QUERY PARAMS

partnerId
targetingType
assignedTargetingOptionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
require "http/client"

url = "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

	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/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"))
    .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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId',
  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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId';
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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"]
                                                       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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId",
  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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")

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/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId";

    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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
http GET {{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions/:assignedTargetingOptionId")! 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 displayvideo.partners.targetingTypes.assignedTargetingOptions.list
{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions
QUERY PARAMS

partnerId
targetingType
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")
require "http/client"

url = "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"

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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"

	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/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"))
    .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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")
  .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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions';
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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions',
  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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions');

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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions';
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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"]
                                                       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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions",
  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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")

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/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions";

    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}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions
http GET {{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/partners/:partnerId/targetingTypes/:targetingType/assignedTargetingOptions")! 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 displayvideo.sdfdownloadtasks.create
{{baseUrl}}/v2/sdfdownloadtasks
BODY json

{
  "advertiserId": "",
  "idFilter": {
    "adGroupAdIds": [],
    "adGroupIds": [],
    "campaignIds": [],
    "insertionOrderIds": [],
    "lineItemIds": [],
    "mediaProductIds": []
  },
  "inventorySourceFilter": {
    "inventorySourceIds": []
  },
  "parentEntityFilter": {
    "fileType": [],
    "filterIds": [],
    "filterType": ""
  },
  "partnerId": "",
  "version": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/sdfdownloadtasks");

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  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/sdfdownloadtasks" {:content-type :json
                                                                :form-params {:advertiserId ""
                                                                              :idFilter {:adGroupAdIds []
                                                                                         :adGroupIds []
                                                                                         :campaignIds []
                                                                                         :insertionOrderIds []
                                                                                         :lineItemIds []
                                                                                         :mediaProductIds []}
                                                                              :inventorySourceFilter {:inventorySourceIds []}
                                                                              :parentEntityFilter {:fileType []
                                                                                                   :filterIds []
                                                                                                   :filterType ""}
                                                                              :partnerId ""
                                                                              :version ""}})
require "http/client"

url = "{{baseUrl}}/v2/sdfdownloadtasks"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\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}}/v2/sdfdownloadtasks"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\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}}/v2/sdfdownloadtasks");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/sdfdownloadtasks"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\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/v2/sdfdownloadtasks HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 384

{
  "advertiserId": "",
  "idFilter": {
    "adGroupAdIds": [],
    "adGroupIds": [],
    "campaignIds": [],
    "insertionOrderIds": [],
    "lineItemIds": [],
    "mediaProductIds": []
  },
  "inventorySourceFilter": {
    "inventorySourceIds": []
  },
  "parentEntityFilter": {
    "fileType": [],
    "filterIds": [],
    "filterType": ""
  },
  "partnerId": "",
  "version": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/sdfdownloadtasks")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/sdfdownloadtasks"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\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  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/sdfdownloadtasks")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/sdfdownloadtasks")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  idFilter: {
    adGroupAdIds: [],
    adGroupIds: [],
    campaignIds: [],
    insertionOrderIds: [],
    lineItemIds: [],
    mediaProductIds: []
  },
  inventorySourceFilter: {
    inventorySourceIds: []
  },
  parentEntityFilter: {
    fileType: [],
    filterIds: [],
    filterType: ''
  },
  partnerId: '',
  version: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/sdfdownloadtasks');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/sdfdownloadtasks',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    idFilter: {
      adGroupAdIds: [],
      adGroupIds: [],
      campaignIds: [],
      insertionOrderIds: [],
      lineItemIds: [],
      mediaProductIds: []
    },
    inventorySourceFilter: {inventorySourceIds: []},
    parentEntityFilter: {fileType: [], filterIds: [], filterType: ''},
    partnerId: '',
    version: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/sdfdownloadtasks';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","idFilter":{"adGroupAdIds":[],"adGroupIds":[],"campaignIds":[],"insertionOrderIds":[],"lineItemIds":[],"mediaProductIds":[]},"inventorySourceFilter":{"inventorySourceIds":[]},"parentEntityFilter":{"fileType":[],"filterIds":[],"filterType":""},"partnerId":"","version":""}'
};

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}}/v2/sdfdownloadtasks',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "idFilter": {\n    "adGroupAdIds": [],\n    "adGroupIds": [],\n    "campaignIds": [],\n    "insertionOrderIds": [],\n    "lineItemIds": [],\n    "mediaProductIds": []\n  },\n  "inventorySourceFilter": {\n    "inventorySourceIds": []\n  },\n  "parentEntityFilter": {\n    "fileType": [],\n    "filterIds": [],\n    "filterType": ""\n  },\n  "partnerId": "",\n  "version": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/sdfdownloadtasks")
  .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/v2/sdfdownloadtasks',
  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({
  advertiserId: '',
  idFilter: {
    adGroupAdIds: [],
    adGroupIds: [],
    campaignIds: [],
    insertionOrderIds: [],
    lineItemIds: [],
    mediaProductIds: []
  },
  inventorySourceFilter: {inventorySourceIds: []},
  parentEntityFilter: {fileType: [], filterIds: [], filterType: ''},
  partnerId: '',
  version: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/sdfdownloadtasks',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    idFilter: {
      adGroupAdIds: [],
      adGroupIds: [],
      campaignIds: [],
      insertionOrderIds: [],
      lineItemIds: [],
      mediaProductIds: []
    },
    inventorySourceFilter: {inventorySourceIds: []},
    parentEntityFilter: {fileType: [], filterIds: [], filterType: ''},
    partnerId: '',
    version: ''
  },
  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}}/v2/sdfdownloadtasks');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  idFilter: {
    adGroupAdIds: [],
    adGroupIds: [],
    campaignIds: [],
    insertionOrderIds: [],
    lineItemIds: [],
    mediaProductIds: []
  },
  inventorySourceFilter: {
    inventorySourceIds: []
  },
  parentEntityFilter: {
    fileType: [],
    filterIds: [],
    filterType: ''
  },
  partnerId: '',
  version: ''
});

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}}/v2/sdfdownloadtasks',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    idFilter: {
      adGroupAdIds: [],
      adGroupIds: [],
      campaignIds: [],
      insertionOrderIds: [],
      lineItemIds: [],
      mediaProductIds: []
    },
    inventorySourceFilter: {inventorySourceIds: []},
    parentEntityFilter: {fileType: [], filterIds: [], filterType: ''},
    partnerId: '',
    version: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/sdfdownloadtasks';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","idFilter":{"adGroupAdIds":[],"adGroupIds":[],"campaignIds":[],"insertionOrderIds":[],"lineItemIds":[],"mediaProductIds":[]},"inventorySourceFilter":{"inventorySourceIds":[]},"parentEntityFilter":{"fileType":[],"filterIds":[],"filterType":""},"partnerId":"","version":""}'
};

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 = @{ @"advertiserId": @"",
                              @"idFilter": @{ @"adGroupAdIds": @[  ], @"adGroupIds": @[  ], @"campaignIds": @[  ], @"insertionOrderIds": @[  ], @"lineItemIds": @[  ], @"mediaProductIds": @[  ] },
                              @"inventorySourceFilter": @{ @"inventorySourceIds": @[  ] },
                              @"parentEntityFilter": @{ @"fileType": @[  ], @"filterIds": @[  ], @"filterType": @"" },
                              @"partnerId": @"",
                              @"version": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/sdfdownloadtasks"]
                                                       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}}/v2/sdfdownloadtasks" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/sdfdownloadtasks",
  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([
    'advertiserId' => '',
    'idFilter' => [
        'adGroupAdIds' => [
                
        ],
        'adGroupIds' => [
                
        ],
        'campaignIds' => [
                
        ],
        'insertionOrderIds' => [
                
        ],
        'lineItemIds' => [
                
        ],
        'mediaProductIds' => [
                
        ]
    ],
    'inventorySourceFilter' => [
        'inventorySourceIds' => [
                
        ]
    ],
    'parentEntityFilter' => [
        'fileType' => [
                
        ],
        'filterIds' => [
                
        ],
        'filterType' => ''
    ],
    'partnerId' => '',
    'version' => ''
  ]),
  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}}/v2/sdfdownloadtasks', [
  'body' => '{
  "advertiserId": "",
  "idFilter": {
    "adGroupAdIds": [],
    "adGroupIds": [],
    "campaignIds": [],
    "insertionOrderIds": [],
    "lineItemIds": [],
    "mediaProductIds": []
  },
  "inventorySourceFilter": {
    "inventorySourceIds": []
  },
  "parentEntityFilter": {
    "fileType": [],
    "filterIds": [],
    "filterType": ""
  },
  "partnerId": "",
  "version": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/sdfdownloadtasks');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'idFilter' => [
    'adGroupAdIds' => [
        
    ],
    'adGroupIds' => [
        
    ],
    'campaignIds' => [
        
    ],
    'insertionOrderIds' => [
        
    ],
    'lineItemIds' => [
        
    ],
    'mediaProductIds' => [
        
    ]
  ],
  'inventorySourceFilter' => [
    'inventorySourceIds' => [
        
    ]
  ],
  'parentEntityFilter' => [
    'fileType' => [
        
    ],
    'filterIds' => [
        
    ],
    'filterType' => ''
  ],
  'partnerId' => '',
  'version' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'idFilter' => [
    'adGroupAdIds' => [
        
    ],
    'adGroupIds' => [
        
    ],
    'campaignIds' => [
        
    ],
    'insertionOrderIds' => [
        
    ],
    'lineItemIds' => [
        
    ],
    'mediaProductIds' => [
        
    ]
  ],
  'inventorySourceFilter' => [
    'inventorySourceIds' => [
        
    ]
  ],
  'parentEntityFilter' => [
    'fileType' => [
        
    ],
    'filterIds' => [
        
    ],
    'filterType' => ''
  ],
  'partnerId' => '',
  'version' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/sdfdownloadtasks');
$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}}/v2/sdfdownloadtasks' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "idFilter": {
    "adGroupAdIds": [],
    "adGroupIds": [],
    "campaignIds": [],
    "insertionOrderIds": [],
    "lineItemIds": [],
    "mediaProductIds": []
  },
  "inventorySourceFilter": {
    "inventorySourceIds": []
  },
  "parentEntityFilter": {
    "fileType": [],
    "filterIds": [],
    "filterType": ""
  },
  "partnerId": "",
  "version": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/sdfdownloadtasks' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "idFilter": {
    "adGroupAdIds": [],
    "adGroupIds": [],
    "campaignIds": [],
    "insertionOrderIds": [],
    "lineItemIds": [],
    "mediaProductIds": []
  },
  "inventorySourceFilter": {
    "inventorySourceIds": []
  },
  "parentEntityFilter": {
    "fileType": [],
    "filterIds": [],
    "filterType": ""
  },
  "partnerId": "",
  "version": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/sdfdownloadtasks", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/sdfdownloadtasks"

payload = {
    "advertiserId": "",
    "idFilter": {
        "adGroupAdIds": [],
        "adGroupIds": [],
        "campaignIds": [],
        "insertionOrderIds": [],
        "lineItemIds": [],
        "mediaProductIds": []
    },
    "inventorySourceFilter": { "inventorySourceIds": [] },
    "parentEntityFilter": {
        "fileType": [],
        "filterIds": [],
        "filterType": ""
    },
    "partnerId": "",
    "version": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/sdfdownloadtasks"

payload <- "{\n  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\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}}/v2/sdfdownloadtasks")

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  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\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/v2/sdfdownloadtasks') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"idFilter\": {\n    \"adGroupAdIds\": [],\n    \"adGroupIds\": [],\n    \"campaignIds\": [],\n    \"insertionOrderIds\": [],\n    \"lineItemIds\": [],\n    \"mediaProductIds\": []\n  },\n  \"inventorySourceFilter\": {\n    \"inventorySourceIds\": []\n  },\n  \"parentEntityFilter\": {\n    \"fileType\": [],\n    \"filterIds\": [],\n    \"filterType\": \"\"\n  },\n  \"partnerId\": \"\",\n  \"version\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/sdfdownloadtasks";

    let payload = json!({
        "advertiserId": "",
        "idFilter": json!({
            "adGroupAdIds": (),
            "adGroupIds": (),
            "campaignIds": (),
            "insertionOrderIds": (),
            "lineItemIds": (),
            "mediaProductIds": ()
        }),
        "inventorySourceFilter": json!({"inventorySourceIds": ()}),
        "parentEntityFilter": json!({
            "fileType": (),
            "filterIds": (),
            "filterType": ""
        }),
        "partnerId": "",
        "version": ""
    });

    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}}/v2/sdfdownloadtasks \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "idFilter": {
    "adGroupAdIds": [],
    "adGroupIds": [],
    "campaignIds": [],
    "insertionOrderIds": [],
    "lineItemIds": [],
    "mediaProductIds": []
  },
  "inventorySourceFilter": {
    "inventorySourceIds": []
  },
  "parentEntityFilter": {
    "fileType": [],
    "filterIds": [],
    "filterType": ""
  },
  "partnerId": "",
  "version": ""
}'
echo '{
  "advertiserId": "",
  "idFilter": {
    "adGroupAdIds": [],
    "adGroupIds": [],
    "campaignIds": [],
    "insertionOrderIds": [],
    "lineItemIds": [],
    "mediaProductIds": []
  },
  "inventorySourceFilter": {
    "inventorySourceIds": []
  },
  "parentEntityFilter": {
    "fileType": [],
    "filterIds": [],
    "filterType": ""
  },
  "partnerId": "",
  "version": ""
}' |  \
  http POST {{baseUrl}}/v2/sdfdownloadtasks \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "idFilter": {\n    "adGroupAdIds": [],\n    "adGroupIds": [],\n    "campaignIds": [],\n    "insertionOrderIds": [],\n    "lineItemIds": [],\n    "mediaProductIds": []\n  },\n  "inventorySourceFilter": {\n    "inventorySourceIds": []\n  },\n  "parentEntityFilter": {\n    "fileType": [],\n    "filterIds": [],\n    "filterType": ""\n  },\n  "partnerId": "",\n  "version": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/sdfdownloadtasks
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "idFilter": [
    "adGroupAdIds": [],
    "adGroupIds": [],
    "campaignIds": [],
    "insertionOrderIds": [],
    "lineItemIds": [],
    "mediaProductIds": []
  ],
  "inventorySourceFilter": ["inventorySourceIds": []],
  "parentEntityFilter": [
    "fileType": [],
    "filterIds": [],
    "filterType": ""
  ],
  "partnerId": "",
  "version": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/sdfdownloadtasks")! 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 displayvideo.sdfdownloadtasks.operations.get
{{baseUrl}}/v2/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/:name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/:name")
require "http/client"

url = "{{baseUrl}}/v2/:name"

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}}/v2/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/:name"

	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/v2/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/:name"))
    .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}}/v2/:name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/:name")
  .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}}/v2/:name');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/:name';
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}}/v2/:name',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/:name")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/:name',
  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}}/v2/:name'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/: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: 'GET', url: '{{baseUrl}}/v2/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/:name';
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}}/v2/:name"]
                                                       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}}/v2/:name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/:name",
  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}}/v2/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/:name');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/:name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/:name' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/:name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/:name"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/:name"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/:name")

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/v2/:name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/:name";

    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}}/v2/:name
http GET {{baseUrl}}/v2/:name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/:name")! 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 displayvideo.targetingTypes.targetingOptions.get
{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId
QUERY PARAMS

targetingType
targetingOptionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId")
require "http/client"

url = "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId"

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}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId"

	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/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId"))
    .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}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId")
  .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}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId';
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}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId',
  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}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId');

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}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId';
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}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId"]
                                                       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}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId",
  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}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId")

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/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId";

    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}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId
http GET {{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions/:targetingOptionId")! 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 displayvideo.targetingTypes.targetingOptions.list
{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions
QUERY PARAMS

targetingType
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions")
require "http/client"

url = "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions"

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}}/v2/targetingTypes/:targetingType/targetingOptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions"

	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/v2/targetingTypes/:targetingType/targetingOptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions"))
    .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}}/v2/targetingTypes/:targetingType/targetingOptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions")
  .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}}/v2/targetingTypes/:targetingType/targetingOptions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions';
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}}/v2/targetingTypes/:targetingType/targetingOptions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/targetingTypes/:targetingType/targetingOptions',
  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}}/v2/targetingTypes/:targetingType/targetingOptions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions');

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}}/v2/targetingTypes/:targetingType/targetingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions';
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}}/v2/targetingTypes/:targetingType/targetingOptions"]
                                                       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}}/v2/targetingTypes/:targetingType/targetingOptions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions",
  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}}/v2/targetingTypes/:targetingType/targetingOptions');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/targetingTypes/:targetingType/targetingOptions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions")

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/v2/targetingTypes/:targetingType/targetingOptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions";

    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}}/v2/targetingTypes/:targetingType/targetingOptions
http GET {{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions")! 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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search");

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  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search" {:content-type :json
                                                                                                     :form-params {:advertiserId ""
                                                                                                                   :businessChainSearchTerms {:businessChainQuery ""
                                                                                                                                              :regionQuery ""}
                                                                                                                   :geoRegionSearchTerms {:geoRegionQuery ""}
                                                                                                                   :pageSize 0
                                                                                                                   :pageToken ""
                                                                                                                   :poiSearchTerms {:poiQuery ""}}})
require "http/client"

url = "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\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}}/v2/targetingTypes/:targetingType/targetingOptions:search"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\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}}/v2/targetingTypes/:targetingType/targetingOptions:search");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\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/v2/targetingTypes/:targetingType/targetingOptions:search HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 253

{
  "advertiserId": "",
  "businessChainSearchTerms": {
    "businessChainQuery": "",
    "regionQuery": ""
  },
  "geoRegionSearchTerms": {
    "geoRegionQuery": ""
  },
  "pageSize": 0,
  "pageToken": "",
  "poiSearchTerms": {
    "poiQuery": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\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  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  businessChainSearchTerms: {
    businessChainQuery: '',
    regionQuery: ''
  },
  geoRegionSearchTerms: {
    geoRegionQuery: ''
  },
  pageSize: 0,
  pageToken: '',
  poiSearchTerms: {
    poiQuery: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    businessChainSearchTerms: {businessChainQuery: '', regionQuery: ''},
    geoRegionSearchTerms: {geoRegionQuery: ''},
    pageSize: 0,
    pageToken: '',
    poiSearchTerms: {poiQuery: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","businessChainSearchTerms":{"businessChainQuery":"","regionQuery":""},"geoRegionSearchTerms":{"geoRegionQuery":""},"pageSize":0,"pageToken":"","poiSearchTerms":{"poiQuery":""}}'
};

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}}/v2/targetingTypes/:targetingType/targetingOptions:search',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "businessChainSearchTerms": {\n    "businessChainQuery": "",\n    "regionQuery": ""\n  },\n  "geoRegionSearchTerms": {\n    "geoRegionQuery": ""\n  },\n  "pageSize": 0,\n  "pageToken": "",\n  "poiSearchTerms": {\n    "poiQuery": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search")
  .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/v2/targetingTypes/:targetingType/targetingOptions:search',
  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({
  advertiserId: '',
  businessChainSearchTerms: {businessChainQuery: '', regionQuery: ''},
  geoRegionSearchTerms: {geoRegionQuery: ''},
  pageSize: 0,
  pageToken: '',
  poiSearchTerms: {poiQuery: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    businessChainSearchTerms: {businessChainQuery: '', regionQuery: ''},
    geoRegionSearchTerms: {geoRegionQuery: ''},
    pageSize: 0,
    pageToken: '',
    poiSearchTerms: {poiQuery: ''}
  },
  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}}/v2/targetingTypes/:targetingType/targetingOptions:search');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  businessChainSearchTerms: {
    businessChainQuery: '',
    regionQuery: ''
  },
  geoRegionSearchTerms: {
    geoRegionQuery: ''
  },
  pageSize: 0,
  pageToken: '',
  poiSearchTerms: {
    poiQuery: ''
  }
});

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}}/v2/targetingTypes/:targetingType/targetingOptions:search',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    businessChainSearchTerms: {businessChainQuery: '', regionQuery: ''},
    geoRegionSearchTerms: {geoRegionQuery: ''},
    pageSize: 0,
    pageToken: '',
    poiSearchTerms: {poiQuery: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","businessChainSearchTerms":{"businessChainQuery":"","regionQuery":""},"geoRegionSearchTerms":{"geoRegionQuery":""},"pageSize":0,"pageToken":"","poiSearchTerms":{"poiQuery":""}}'
};

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 = @{ @"advertiserId": @"",
                              @"businessChainSearchTerms": @{ @"businessChainQuery": @"", @"regionQuery": @"" },
                              @"geoRegionSearchTerms": @{ @"geoRegionQuery": @"" },
                              @"pageSize": @0,
                              @"pageToken": @"",
                              @"poiSearchTerms": @{ @"poiQuery": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search"]
                                                       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}}/v2/targetingTypes/:targetingType/targetingOptions:search" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search",
  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([
    'advertiserId' => '',
    'businessChainSearchTerms' => [
        'businessChainQuery' => '',
        'regionQuery' => ''
    ],
    'geoRegionSearchTerms' => [
        'geoRegionQuery' => ''
    ],
    'pageSize' => 0,
    'pageToken' => '',
    'poiSearchTerms' => [
        'poiQuery' => ''
    ]
  ]),
  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}}/v2/targetingTypes/:targetingType/targetingOptions:search', [
  'body' => '{
  "advertiserId": "",
  "businessChainSearchTerms": {
    "businessChainQuery": "",
    "regionQuery": ""
  },
  "geoRegionSearchTerms": {
    "geoRegionQuery": ""
  },
  "pageSize": 0,
  "pageToken": "",
  "poiSearchTerms": {
    "poiQuery": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'businessChainSearchTerms' => [
    'businessChainQuery' => '',
    'regionQuery' => ''
  ],
  'geoRegionSearchTerms' => [
    'geoRegionQuery' => ''
  ],
  'pageSize' => 0,
  'pageToken' => '',
  'poiSearchTerms' => [
    'poiQuery' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'businessChainSearchTerms' => [
    'businessChainQuery' => '',
    'regionQuery' => ''
  ],
  'geoRegionSearchTerms' => [
    'geoRegionQuery' => ''
  ],
  'pageSize' => 0,
  'pageToken' => '',
  'poiSearchTerms' => [
    'poiQuery' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search');
$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}}/v2/targetingTypes/:targetingType/targetingOptions:search' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "businessChainSearchTerms": {
    "businessChainQuery": "",
    "regionQuery": ""
  },
  "geoRegionSearchTerms": {
    "geoRegionQuery": ""
  },
  "pageSize": 0,
  "pageToken": "",
  "poiSearchTerms": {
    "poiQuery": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "businessChainSearchTerms": {
    "businessChainQuery": "",
    "regionQuery": ""
  },
  "geoRegionSearchTerms": {
    "geoRegionQuery": ""
  },
  "pageSize": 0,
  "pageToken": "",
  "poiSearchTerms": {
    "poiQuery": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/targetingTypes/:targetingType/targetingOptions:search", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search"

payload = {
    "advertiserId": "",
    "businessChainSearchTerms": {
        "businessChainQuery": "",
        "regionQuery": ""
    },
    "geoRegionSearchTerms": { "geoRegionQuery": "" },
    "pageSize": 0,
    "pageToken": "",
    "poiSearchTerms": { "poiQuery": "" }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search"

payload <- "{\n  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\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}}/v2/targetingTypes/:targetingType/targetingOptions:search")

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  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\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/v2/targetingTypes/:targetingType/targetingOptions:search') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"businessChainSearchTerms\": {\n    \"businessChainQuery\": \"\",\n    \"regionQuery\": \"\"\n  },\n  \"geoRegionSearchTerms\": {\n    \"geoRegionQuery\": \"\"\n  },\n  \"pageSize\": 0,\n  \"pageToken\": \"\",\n  \"poiSearchTerms\": {\n    \"poiQuery\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search";

    let payload = json!({
        "advertiserId": "",
        "businessChainSearchTerms": json!({
            "businessChainQuery": "",
            "regionQuery": ""
        }),
        "geoRegionSearchTerms": json!({"geoRegionQuery": ""}),
        "pageSize": 0,
        "pageToken": "",
        "poiSearchTerms": json!({"poiQuery": ""})
    });

    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}}/v2/targetingTypes/:targetingType/targetingOptions:search \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "businessChainSearchTerms": {
    "businessChainQuery": "",
    "regionQuery": ""
  },
  "geoRegionSearchTerms": {
    "geoRegionQuery": ""
  },
  "pageSize": 0,
  "pageToken": "",
  "poiSearchTerms": {
    "poiQuery": ""
  }
}'
echo '{
  "advertiserId": "",
  "businessChainSearchTerms": {
    "businessChainQuery": "",
    "regionQuery": ""
  },
  "geoRegionSearchTerms": {
    "geoRegionQuery": ""
  },
  "pageSize": 0,
  "pageToken": "",
  "poiSearchTerms": {
    "poiQuery": ""
  }
}' |  \
  http POST {{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "businessChainSearchTerms": {\n    "businessChainQuery": "",\n    "regionQuery": ""\n  },\n  "geoRegionSearchTerms": {\n    "geoRegionQuery": ""\n  },\n  "pageSize": 0,\n  "pageToken": "",\n  "poiSearchTerms": {\n    "poiQuery": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "businessChainSearchTerms": [
    "businessChainQuery": "",
    "regionQuery": ""
  ],
  "geoRegionSearchTerms": ["geoRegionQuery": ""],
  "pageSize": 0,
  "pageToken": "",
  "poiSearchTerms": ["poiQuery": ""]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/targetingTypes/:targetingType/targetingOptions:search")! 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()
POST displayvideo.users.bulkEditAssignedUserRoles
{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles
QUERY PARAMS

userId
BODY json

{
  "createdAssignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "deletedAssignedUserRoles": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles");

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  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles" {:content-type :json
                                                                                       :form-params {:createdAssignedUserRoles [{:advertiserId ""
                                                                                                                                 :assignedUserRoleId ""
                                                                                                                                 :partnerId ""
                                                                                                                                 :userRole ""}]
                                                                                                     :deletedAssignedUserRoles []}})
require "http/client"

url = "{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\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}}/v2/users/:userId:bulkEditAssignedUserRoles"),
    Content = new StringContent("{\n  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\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}}/v2/users/:userId:bulkEditAssignedUserRoles");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles"

	payload := strings.NewReader("{\n  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\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/v2/users/:userId:bulkEditAssignedUserRoles HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 187

{
  "createdAssignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "deletedAssignedUserRoles": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\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  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles")
  .header("content-type", "application/json")
  .body("{\n  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\n}")
  .asString();
const data = JSON.stringify({
  createdAssignedUserRoles: [
    {
      advertiserId: '',
      assignedUserRoleId: '',
      partnerId: '',
      userRole: ''
    }
  ],
  deletedAssignedUserRoles: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles',
  headers: {'content-type': 'application/json'},
  data: {
    createdAssignedUserRoles: [{advertiserId: '', assignedUserRoleId: '', partnerId: '', userRole: ''}],
    deletedAssignedUserRoles: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createdAssignedUserRoles":[{"advertiserId":"","assignedUserRoleId":"","partnerId":"","userRole":""}],"deletedAssignedUserRoles":[]}'
};

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}}/v2/users/:userId:bulkEditAssignedUserRoles',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "createdAssignedUserRoles": [\n    {\n      "advertiserId": "",\n      "assignedUserRoleId": "",\n      "partnerId": "",\n      "userRole": ""\n    }\n  ],\n  "deletedAssignedUserRoles": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles")
  .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/v2/users/:userId:bulkEditAssignedUserRoles',
  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({
  createdAssignedUserRoles: [{advertiserId: '', assignedUserRoleId: '', partnerId: '', userRole: ''}],
  deletedAssignedUserRoles: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles',
  headers: {'content-type': 'application/json'},
  body: {
    createdAssignedUserRoles: [{advertiserId: '', assignedUserRoleId: '', partnerId: '', userRole: ''}],
    deletedAssignedUserRoles: []
  },
  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}}/v2/users/:userId:bulkEditAssignedUserRoles');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  createdAssignedUserRoles: [
    {
      advertiserId: '',
      assignedUserRoleId: '',
      partnerId: '',
      userRole: ''
    }
  ],
  deletedAssignedUserRoles: []
});

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}}/v2/users/:userId:bulkEditAssignedUserRoles',
  headers: {'content-type': 'application/json'},
  data: {
    createdAssignedUserRoles: [{advertiserId: '', assignedUserRoleId: '', partnerId: '', userRole: ''}],
    deletedAssignedUserRoles: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"createdAssignedUserRoles":[{"advertiserId":"","assignedUserRoleId":"","partnerId":"","userRole":""}],"deletedAssignedUserRoles":[]}'
};

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 = @{ @"createdAssignedUserRoles": @[ @{ @"advertiserId": @"", @"assignedUserRoleId": @"", @"partnerId": @"", @"userRole": @"" } ],
                              @"deletedAssignedUserRoles": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles"]
                                                       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}}/v2/users/:userId:bulkEditAssignedUserRoles" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles",
  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([
    'createdAssignedUserRoles' => [
        [
                'advertiserId' => '',
                'assignedUserRoleId' => '',
                'partnerId' => '',
                'userRole' => ''
        ]
    ],
    'deletedAssignedUserRoles' => [
        
    ]
  ]),
  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}}/v2/users/:userId:bulkEditAssignedUserRoles', [
  'body' => '{
  "createdAssignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "deletedAssignedUserRoles": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'createdAssignedUserRoles' => [
    [
        'advertiserId' => '',
        'assignedUserRoleId' => '',
        'partnerId' => '',
        'userRole' => ''
    ]
  ],
  'deletedAssignedUserRoles' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'createdAssignedUserRoles' => [
    [
        'advertiserId' => '',
        'assignedUserRoleId' => '',
        'partnerId' => '',
        'userRole' => ''
    ]
  ],
  'deletedAssignedUserRoles' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles');
$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}}/v2/users/:userId:bulkEditAssignedUserRoles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createdAssignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "deletedAssignedUserRoles": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "createdAssignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "deletedAssignedUserRoles": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/users/:userId:bulkEditAssignedUserRoles", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles"

payload = {
    "createdAssignedUserRoles": [
        {
            "advertiserId": "",
            "assignedUserRoleId": "",
            "partnerId": "",
            "userRole": ""
        }
    ],
    "deletedAssignedUserRoles": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles"

payload <- "{\n  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\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}}/v2/users/:userId:bulkEditAssignedUserRoles")

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  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\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/v2/users/:userId:bulkEditAssignedUserRoles') do |req|
  req.body = "{\n  \"createdAssignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"deletedAssignedUserRoles\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles";

    let payload = json!({
        "createdAssignedUserRoles": (
            json!({
                "advertiserId": "",
                "assignedUserRoleId": "",
                "partnerId": "",
                "userRole": ""
            })
        ),
        "deletedAssignedUserRoles": ()
    });

    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}}/v2/users/:userId:bulkEditAssignedUserRoles \
  --header 'content-type: application/json' \
  --data '{
  "createdAssignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "deletedAssignedUserRoles": []
}'
echo '{
  "createdAssignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "deletedAssignedUserRoles": []
}' |  \
  http POST {{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "createdAssignedUserRoles": [\n    {\n      "advertiserId": "",\n      "assignedUserRoleId": "",\n      "partnerId": "",\n      "userRole": ""\n    }\n  ],\n  "deletedAssignedUserRoles": []\n}' \
  --output-document \
  - {{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "createdAssignedUserRoles": [
    [
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    ]
  ],
  "deletedAssignedUserRoles": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/users/:userId:bulkEditAssignedUserRoles")! 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()
POST displayvideo.users.create
{{baseUrl}}/v2/users
BODY json

{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/users");

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  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v2/users" {:content-type :json
                                                     :form-params {:assignedUserRoles [{:advertiserId ""
                                                                                        :assignedUserRoleId ""
                                                                                        :partnerId ""
                                                                                        :userRole ""}]
                                                                   :displayName ""
                                                                   :email ""
                                                                   :name ""
                                                                   :userId ""}})
require "http/client"

url = "{{baseUrl}}/v2/users"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\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}}/v2/users"),
    Content = new StringContent("{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\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}}/v2/users");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/users"

	payload := strings.NewReader("{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\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/v2/users HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 212

{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v2/users")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/users"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\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  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/users")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v2/users")
  .header("content-type", "application/json")
  .body("{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  assignedUserRoles: [
    {
      advertiserId: '',
      assignedUserRoleId: '',
      partnerId: '',
      userRole: ''
    }
  ],
  displayName: '',
  email: '',
  name: '',
  userId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v2/users');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/users',
  headers: {'content-type': 'application/json'},
  data: {
    assignedUserRoles: [{advertiserId: '', assignedUserRoleId: '', partnerId: '', userRole: ''}],
    displayName: '',
    email: '',
    name: '',
    userId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/users';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"assignedUserRoles":[{"advertiserId":"","assignedUserRoleId":"","partnerId":"","userRole":""}],"displayName":"","email":"","name":"","userId":""}'
};

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}}/v2/users',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "assignedUserRoles": [\n    {\n      "advertiserId": "",\n      "assignedUserRoleId": "",\n      "partnerId": "",\n      "userRole": ""\n    }\n  ],\n  "displayName": "",\n  "email": "",\n  "name": "",\n  "userId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/users")
  .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/v2/users',
  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({
  assignedUserRoles: [{advertiserId: '', assignedUserRoleId: '', partnerId: '', userRole: ''}],
  displayName: '',
  email: '',
  name: '',
  userId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v2/users',
  headers: {'content-type': 'application/json'},
  body: {
    assignedUserRoles: [{advertiserId: '', assignedUserRoleId: '', partnerId: '', userRole: ''}],
    displayName: '',
    email: '',
    name: '',
    userId: ''
  },
  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}}/v2/users');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  assignedUserRoles: [
    {
      advertiserId: '',
      assignedUserRoleId: '',
      partnerId: '',
      userRole: ''
    }
  ],
  displayName: '',
  email: '',
  name: '',
  userId: ''
});

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}}/v2/users',
  headers: {'content-type': 'application/json'},
  data: {
    assignedUserRoles: [{advertiserId: '', assignedUserRoleId: '', partnerId: '', userRole: ''}],
    displayName: '',
    email: '',
    name: '',
    userId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/users';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"assignedUserRoles":[{"advertiserId":"","assignedUserRoleId":"","partnerId":"","userRole":""}],"displayName":"","email":"","name":"","userId":""}'
};

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 = @{ @"assignedUserRoles": @[ @{ @"advertiserId": @"", @"assignedUserRoleId": @"", @"partnerId": @"", @"userRole": @"" } ],
                              @"displayName": @"",
                              @"email": @"",
                              @"name": @"",
                              @"userId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/users"]
                                                       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}}/v2/users" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/users",
  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([
    'assignedUserRoles' => [
        [
                'advertiserId' => '',
                'assignedUserRoleId' => '',
                'partnerId' => '',
                'userRole' => ''
        ]
    ],
    'displayName' => '',
    'email' => '',
    'name' => '',
    'userId' => ''
  ]),
  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}}/v2/users', [
  'body' => '{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/users');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'assignedUserRoles' => [
    [
        'advertiserId' => '',
        'assignedUserRoleId' => '',
        'partnerId' => '',
        'userRole' => ''
    ]
  ],
  'displayName' => '',
  'email' => '',
  'name' => '',
  'userId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'assignedUserRoles' => [
    [
        'advertiserId' => '',
        'assignedUserRoleId' => '',
        'partnerId' => '',
        'userRole' => ''
    ]
  ],
  'displayName' => '',
  'email' => '',
  'name' => '',
  'userId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/users');
$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}}/v2/users' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/users' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v2/users", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/users"

payload = {
    "assignedUserRoles": [
        {
            "advertiserId": "",
            "assignedUserRoleId": "",
            "partnerId": "",
            "userRole": ""
        }
    ],
    "displayName": "",
    "email": "",
    "name": "",
    "userId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/users"

payload <- "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\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}}/v2/users")

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  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\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/v2/users') do |req|
  req.body = "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/users";

    let payload = json!({
        "assignedUserRoles": (
            json!({
                "advertiserId": "",
                "assignedUserRoleId": "",
                "partnerId": "",
                "userRole": ""
            })
        ),
        "displayName": "",
        "email": "",
        "name": "",
        "userId": ""
    });

    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}}/v2/users \
  --header 'content-type: application/json' \
  --data '{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}'
echo '{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}' |  \
  http POST {{baseUrl}}/v2/users \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "assignedUserRoles": [\n    {\n      "advertiserId": "",\n      "assignedUserRoleId": "",\n      "partnerId": "",\n      "userRole": ""\n    }\n  ],\n  "displayName": "",\n  "email": "",\n  "name": "",\n  "userId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/users
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "assignedUserRoles": [
    [
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    ]
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/users")! 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()
DELETE displayvideo.users.delete
{{baseUrl}}/v2/users/:userId
QUERY PARAMS

userId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/users/:userId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/v2/users/:userId")
require "http/client"

url = "{{baseUrl}}/v2/users/:userId"

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}}/v2/users/:userId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/users/:userId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/users/:userId"

	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/v2/users/:userId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v2/users/:userId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/users/:userId"))
    .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}}/v2/users/:userId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v2/users/:userId")
  .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}}/v2/users/:userId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/v2/users/:userId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/users/:userId';
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}}/v2/users/:userId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/users/:userId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/users/:userId',
  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}}/v2/users/:userId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/v2/users/:userId');

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}}/v2/users/:userId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/users/:userId';
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}}/v2/users/:userId"]
                                                       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}}/v2/users/:userId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/users/:userId",
  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}}/v2/users/:userId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/users/:userId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/users/:userId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/users/:userId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/users/:userId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/v2/users/:userId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/users/:userId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/users/:userId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/users/:userId")

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/v2/users/:userId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/users/:userId";

    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}}/v2/users/:userId
http DELETE {{baseUrl}}/v2/users/:userId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v2/users/:userId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/users/:userId")! 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 displayvideo.users.get
{{baseUrl}}/v2/users/:userId
QUERY PARAMS

userId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/users/:userId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/users/:userId")
require "http/client"

url = "{{baseUrl}}/v2/users/:userId"

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}}/v2/users/:userId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/users/:userId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/users/:userId"

	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/v2/users/:userId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/users/:userId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/users/:userId"))
    .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}}/v2/users/:userId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/users/:userId")
  .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}}/v2/users/:userId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/users/:userId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/users/:userId';
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}}/v2/users/:userId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/users/:userId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/users/:userId',
  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}}/v2/users/:userId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/users/:userId');

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}}/v2/users/:userId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/users/:userId';
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}}/v2/users/:userId"]
                                                       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}}/v2/users/:userId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/users/:userId",
  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}}/v2/users/:userId');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/users/:userId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/users/:userId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/users/:userId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/users/:userId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/users/:userId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/users/:userId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/users/:userId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/users/:userId")

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/v2/users/:userId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/users/:userId";

    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}}/v2/users/:userId
http GET {{baseUrl}}/v2/users/:userId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/users/:userId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/users/:userId")! 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 displayvideo.users.list
{{baseUrl}}/v2/users
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/users");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v2/users")
require "http/client"

url = "{{baseUrl}}/v2/users"

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}}/v2/users"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v2/users");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/users"

	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/v2/users HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v2/users")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/users"))
    .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}}/v2/users")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v2/users")
  .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}}/v2/users');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v2/users'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/users';
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}}/v2/users',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v2/users")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v2/users',
  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}}/v2/users'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v2/users');

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}}/v2/users'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/users';
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}}/v2/users"]
                                                       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}}/v2/users" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/users",
  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}}/v2/users');

echo $response->getBody();
setUrl('{{baseUrl}}/v2/users');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v2/users');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v2/users' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/users' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v2/users")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/users"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/users"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/users")

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/v2/users') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v2/users";

    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}}/v2/users
http GET {{baseUrl}}/v2/users
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v2/users
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/users")! 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 displayvideo.users.patch
{{baseUrl}}/v2/users/:userId
QUERY PARAMS

userId
BODY json

{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v2/users/:userId");

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  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/v2/users/:userId" {:content-type :json
                                                              :form-params {:assignedUserRoles [{:advertiserId ""
                                                                                                 :assignedUserRoleId ""
                                                                                                 :partnerId ""
                                                                                                 :userRole ""}]
                                                                            :displayName ""
                                                                            :email ""
                                                                            :name ""
                                                                            :userId ""}})
require "http/client"

url = "{{baseUrl}}/v2/users/:userId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\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}}/v2/users/:userId"),
    Content = new StringContent("{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\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}}/v2/users/:userId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v2/users/:userId"

	payload := strings.NewReader("{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\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/v2/users/:userId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 212

{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v2/users/:userId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v2/users/:userId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\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  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v2/users/:userId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v2/users/:userId")
  .header("content-type", "application/json")
  .body("{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  assignedUserRoles: [
    {
      advertiserId: '',
      assignedUserRoleId: '',
      partnerId: '',
      userRole: ''
    }
  ],
  displayName: '',
  email: '',
  name: '',
  userId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/v2/users/:userId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/users/:userId',
  headers: {'content-type': 'application/json'},
  data: {
    assignedUserRoles: [{advertiserId: '', assignedUserRoleId: '', partnerId: '', userRole: ''}],
    displayName: '',
    email: '',
    name: '',
    userId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v2/users/:userId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"assignedUserRoles":[{"advertiserId":"","assignedUserRoleId":"","partnerId":"","userRole":""}],"displayName":"","email":"","name":"","userId":""}'
};

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}}/v2/users/:userId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "assignedUserRoles": [\n    {\n      "advertiserId": "",\n      "assignedUserRoleId": "",\n      "partnerId": "",\n      "userRole": ""\n    }\n  ],\n  "displayName": "",\n  "email": "",\n  "name": "",\n  "userId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v2/users/:userId")
  .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/v2/users/:userId',
  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({
  assignedUserRoles: [{advertiserId: '', assignedUserRoleId: '', partnerId: '', userRole: ''}],
  displayName: '',
  email: '',
  name: '',
  userId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v2/users/:userId',
  headers: {'content-type': 'application/json'},
  body: {
    assignedUserRoles: [{advertiserId: '', assignedUserRoleId: '', partnerId: '', userRole: ''}],
    displayName: '',
    email: '',
    name: '',
    userId: ''
  },
  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}}/v2/users/:userId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  assignedUserRoles: [
    {
      advertiserId: '',
      assignedUserRoleId: '',
      partnerId: '',
      userRole: ''
    }
  ],
  displayName: '',
  email: '',
  name: '',
  userId: ''
});

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}}/v2/users/:userId',
  headers: {'content-type': 'application/json'},
  data: {
    assignedUserRoles: [{advertiserId: '', assignedUserRoleId: '', partnerId: '', userRole: ''}],
    displayName: '',
    email: '',
    name: '',
    userId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v2/users/:userId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"assignedUserRoles":[{"advertiserId":"","assignedUserRoleId":"","partnerId":"","userRole":""}],"displayName":"","email":"","name":"","userId":""}'
};

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 = @{ @"assignedUserRoles": @[ @{ @"advertiserId": @"", @"assignedUserRoleId": @"", @"partnerId": @"", @"userRole": @"" } ],
                              @"displayName": @"",
                              @"email": @"",
                              @"name": @"",
                              @"userId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v2/users/:userId"]
                                                       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}}/v2/users/:userId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v2/users/:userId",
  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([
    'assignedUserRoles' => [
        [
                'advertiserId' => '',
                'assignedUserRoleId' => '',
                'partnerId' => '',
                'userRole' => ''
        ]
    ],
    'displayName' => '',
    'email' => '',
    'name' => '',
    'userId' => ''
  ]),
  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}}/v2/users/:userId', [
  'body' => '{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v2/users/:userId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'assignedUserRoles' => [
    [
        'advertiserId' => '',
        'assignedUserRoleId' => '',
        'partnerId' => '',
        'userRole' => ''
    ]
  ],
  'displayName' => '',
  'email' => '',
  'name' => '',
  'userId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'assignedUserRoles' => [
    [
        'advertiserId' => '',
        'assignedUserRoleId' => '',
        'partnerId' => '',
        'userRole' => ''
    ]
  ],
  'displayName' => '',
  'email' => '',
  'name' => '',
  'userId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v2/users/:userId');
$request->setRequestMethod('PATCH');
$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}}/v2/users/:userId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v2/users/:userId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/v2/users/:userId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v2/users/:userId"

payload = {
    "assignedUserRoles": [
        {
            "advertiserId": "",
            "assignedUserRoleId": "",
            "partnerId": "",
            "userRole": ""
        }
    ],
    "displayName": "",
    "email": "",
    "name": "",
    "userId": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v2/users/:userId"

payload <- "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v2/users/:userId")

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  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\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/v2/users/:userId') do |req|
  req.body = "{\n  \"assignedUserRoles\": [\n    {\n      \"advertiserId\": \"\",\n      \"assignedUserRoleId\": \"\",\n      \"partnerId\": \"\",\n      \"userRole\": \"\"\n    }\n  ],\n  \"displayName\": \"\",\n  \"email\": \"\",\n  \"name\": \"\",\n  \"userId\": \"\"\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}}/v2/users/:userId";

    let payload = json!({
        "assignedUserRoles": (
            json!({
                "advertiserId": "",
                "assignedUserRoleId": "",
                "partnerId": "",
                "userRole": ""
            })
        ),
        "displayName": "",
        "email": "",
        "name": "",
        "userId": ""
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v2/users/:userId \
  --header 'content-type: application/json' \
  --data '{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}'
echo '{
  "assignedUserRoles": [
    {
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    }
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
}' |  \
  http PATCH {{baseUrl}}/v2/users/:userId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "assignedUserRoles": [\n    {\n      "advertiserId": "",\n      "assignedUserRoleId": "",\n      "partnerId": "",\n      "userRole": ""\n    }\n  ],\n  "displayName": "",\n  "email": "",\n  "name": "",\n  "userId": ""\n}' \
  --output-document \
  - {{baseUrl}}/v2/users/:userId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "assignedUserRoles": [
    [
      "advertiserId": "",
      "assignedUserRoleId": "",
      "partnerId": "",
      "userRole": ""
    ]
  ],
  "displayName": "",
  "email": "",
  "name": "",
  "userId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v2/users/:userId")! 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()